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 839 - broken plugin action bar (icons missing)
broken plugin action bar (icons missing)
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2014-07-07 08:43 CDT by Jürgen Gluch
Modified: 2014-08-27 09:10 CDT
3 users (show)

See Also:

Description Jürgen Gluch 2014-07-07 08:43:17 CDT
after my update of Fiji (Windows 7 64bit) the icons on my custom
action bar do not show up. Only the text ist shown. The macros work
like before. Unfortunately the build in demo bar shows icons, but any
test to call a separate custom action bar with icons loaded from file
fails. Any idea whats broken?

I uploaded a "sample image" as advised in the mailing list: fiji-win64-20140707032800.zip
Then I copied the subfolder /icon/ in the ActionBar folder, same location as original data.

If the action bar is started by this line of macro code:
  run("Action Bar","/plugins/ActionBar/_test.txt");
it shows up, works correct, bu the icon is missing and the text label is displayed.

Same con on an older Fiji at the same computer (IJ 1.48r) works as usual. So I don#t think it is related to a system wide error in my Win64 or Java.

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  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:\data\Software\Portable\FIJI-W~1\Fiji.app/java/win64/jdk1.6.0_24//jre
  imagej.dir => C:\data\Software\Portable\FIJI-W~1\Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20140702184308)
Fiji: http://fiji.sc/update/ (last check:20140702114334)

Files not up-to-date:
  4498144f (LOCAL_ONLY) 20140704164828 plugins/ActionBar/_GoemonsBar.ijm
  411691fe (LOCAL_ONLY) 20140707151534 plugins/ActionBar/_test.txt
  6b8a0ed5 (LOCAL_ONLY) 20140707124104 plugins/ActionBar/action_bar201d.jar
Comment 1 jerome 2014-08-06 10:44:37 CDT
I can confirm that after a recent FIJI/IMAGEJ2 update, actionbars cannot fnd their icons any more. In the ActionBar plugin, the icon path is built from info in the configuration file and finally looks like this:

"icons/_test/test.png"
then I used the following to get it's URL:
imageURL = Action_Bar.class.getResource(imgLocation);
This used to work fine and return a valid URL for the icon located in plugins/ActionBar/icons/_test/test.png but now returns NULL.

Thanks for any pointer about how I could work around this while also keeping it working with IJ1.

Jerome
Comment 2 jerome 2014-08-27 09:10:16 CDT
Something changed about how classes are loaded in Fiji, and the classloader getResource(resource) method can't find resources relative to the class location.
A version of ActionBar with a workaround of this feature can be found at http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:action_bar:start&#downloads

Jerome.