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 1215 - Problem with getDirectory
Problem with getDirectory
Status: RESOLVED WORKSFORME
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2016-01-13 05:17 CST by Martin Shingler
Modified: 2016-01-26 11:45 CST
2 users (show)

See Also:

Description Martin Shingler 2016-01-13 05:17:08 CST
I have been using a Fiji macro where getDirectory is used to identify the location of a group of files to be processed.
The macro has been in use since May 2014, last update 28 Sep 2015. Now (last few weeks), when the macro gets to the getDirectory statement it just hangs. (It used to do this occasionally, but restarting Fiji fixed it)
The lines of code where this first occurs are:

//Opens file browser and prompts for the location of the images for the Signal/Noise test
  print("Choose the directory where the ||Signal/Noise|| images are stored:");
  print("(Usually [date(yyyy-mm-dd)]\\PAT1\\STD1\\SER2)");
  SigNoiseDir = getDirectory("Choose the Directory") + File.separator;
  print("  ",SigNoiseDir);
  print("");

I can supply the earlier part of the macro if it would help but I do not think that it will be useful. getDirectory works fine with the pre-set directories, but is not offering the choice of directory and I cannot use the preset directories for the data.

It used to work brilliantly, but no more. Is it a version problem with Java? As far as I am aware, I have followed the syntax OK. I would be grateful for a solution. Thank you, Martin.

Information about your version of Java:

  os.arch => x86
  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) Client 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: UP_TO_DATE

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: C:\FIJI-(~1/java/win32/jdk1.6.0_24//jre
  imagej.dir => C:\FIJI-(~1

Information about the version of each plugin:

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

Files not up-to-date:
  6029c661 (LOCAL_ONLY) 20160113101735 macros/RunAtStartup.ijm
Comment 1 Martin Shingler 2016-01-13 05:29:20 CST
I have just tried it on my laptop (over Wi-Fi but accessing the same files/directories on the network and it runs fine.) The laptop and the desktop both state that Fiji is up to date.
Comment 2 Martin Shingler 2016-01-20 07:30:57 CST
Curious. The Fiji auto update suggested an update of: ij-1.50e.jar to ij-1.50e.jar (yes, the same!) and since then the problem has gone away.
Comment 3 Curtis Rueden 2016-01-26 11:45:00 CST
Very strange to hear. But glad the problem is solved for you. Since we have no way to reproduce, I am closing for now. But we can reopen if the problem crops up in a reproducible way for others.