NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1238 - Update crashes Fiji
Update crashes Fiji
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P4 normal
Assigned To: ImageJ Bugs Mailing List
: 1246
Depends on:
Blocks:
 
Reported: 2016-03-07 07:29 CST by Giovanni
Modified: 2016-03-15 08:11 CDT
3 users (show)

See Also:

Description Giovanni 2016-03-07 07:29:22 CST
After updating Fiji, the program does not start anymore (stops before showing the GUI).
In debug mode it stops before loading the plugins, i.e. the last line is 
[DEBUG] Discovered user interface: org.scijava.ui.swing.mdi.SwingMdiUI
In order to reproduce the error, I downloaded the last 64-bit release and, without adding plugins and update sites, I tried to launch the update and select only subsets of components. It comes out that the program can not restart after the update of
jars/imagej-legacy.jar
Updating only its dependencies does not give any problem.

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.8.0_66
  java.vendor => Oracle Corporation
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.8.0_66-b18
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 25.66-b18
  java.vm.vendor => Oracle Corporation
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.8
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: C:\IMAGIN~1\Fiji.app/java/win64/jdk1.8.0_66//jre
  imagej.dir => C:\IMAGIN~1\Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20160121055533)
Fiji: http://update.fiji.sc/ (last check:20160114142236)
Java-8: http://sites.imagej.net/Java-8/ (last check:20160121051645)
Comment 1 Mark Hiner 2016-03-07 08:12:31 CST
Can you check your temporary directory[1] and see if there is a file called "ImageJ-xxxx-_0-7.stub", where "xxxx" is your user name?

If so, try deleting that file and restarting Fiji.

This file is created by the "Single Instance Listener" function of ImageJ, to ensure only one instance is running at a time. I think there is a bug where it isn't deleted after updating, so when you restart afterwards it tries to connect to a "running instance" that doesn't actually exist.

If you're not able to find this file or directory please let me know.

[1] http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/where-is-the-temporary-folder/44a039a5-45ba-48dd-84db-fd700e54fd56
Comment 2 Giovanni 2016-03-07 09:26:14 CST
It worked! In the Temp directory I found a version of the file dated 18/02/2016. After removing it, I could run Fiji. I also tried to reinstall it from scratch, and to launch the update, and it worked fine after that.

Thanks.
Comment 3 Mark Hiner 2016-03-07 09:44:20 CST
Thanks for testing and reporting back, Giovanni.

I'll try to figure out a more robust way to implement the single instance feature, since it's both confusing and frustrating that the temp file didn't get deleted.

I'll leave this issue open until it is universally fixed.

Thanks again!
Comment 4 Mark Hiner 2016-03-15 08:00:36 CDT
I believe this is fixed in the 0.19.2 release[1]



[1] https://github.com/imagej/imagej-legacy/releases/tag/imagej-legacy-0.19.2
Comment 5 Mark Hiner 2016-03-15 08:00:56 CDT
*** Bug 1246 has been marked as a duplicate of this bug. ***
Comment 6 Mark Hiner 2016-03-15 08:11:00 CDT
(In reply to Mark Hiner from comment #1)
> Can you check your temporary directory[1] and see if there is a file called
> "ImageJ-xxxx-_0-7.stub", where "xxxx" is your user name?
> 
> [1]
> http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/
> where-is-the-temporary-folder/44a039a5-45ba-48dd-84db-fd700e54fd56

Note also that the temp directory is often hidden, as can be the .stub file itself. To see hidden files on Windows please see:

http://www.howtogeek.com/howto/windows-vista/show-hidden-files-and-folders-in-windows-vista/