Fiji starts with a warning log dialog

192 views
Skip to first unread message

Yili Zhao

unread,
Dec 28, 2014, 7:52:44 PM12/28/14
to fiji-...@googlegroups.com
Hi,
  I download the latest Fiji continuous release win64 version, every time I start Fiji, it will come with a warning log dialog with these messages:

  2014-12-29 8:42:06 java.util.prefs.WindowsPreferences <init>
  Warning: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

  After I running Fiji (ImageJ-win64.exe) as Administrator, there is no this warning log dialog with next Fiji starting.

  Is this problem related to Windows 7 UAC?

Jayanta Bordoloi

unread,
Jan 2, 2015, 7:02:00 PM1/2/15
to fiji-...@googlegroups.com
Same problem here....to add trouble whenever I open images they appear very dark and colors are completely distorted.

Curtis Rueden

unread,
Jan 5, 2015, 5:11:37 PM1/5/15
to Jayanta Bordoloi, Fiji Developers
Hi Yili,

> Warning: Could not open/create prefs root node Software\JavaSoft\Prefs
> at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

Apparently, this is a general problem with the Java Preferences API on some versions of Windows. If you could find any further information on it via web searches, it would be most appreciated. While you can certainly avoid the issue by either A) running as Administrator once; or B) manually creating one or more registry keys in the right place, it would be best to avoid those annoying solutions in favor of a fix in the code.

So feel free to file an issue at:

And file a PR with a fix if you are feeling ambitious.

The code which like triggers the issue is:

You can see that we always request user nodes, which means that administrator privileges are not supposed to be required...

Regards,
Curtis

--
--
Please avoid top-posting, and please make sure to reply-to-all!
 
Mailing list web interface: http://groups.google.com/group/fiji-devel

---
You received this message because you are subscribed to the Google Groups "Fiji-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fiji-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Curtis Rueden

unread,
Jan 5, 2015, 5:19:13 PM1/5/15
to Jayanta Bordoloi, Fiji Developers
Hi Jayanta,

> whenever I open images they appear very dark and colors are completely
> distorted.

Sounds like a separate issue from the one Yili reported.

What file format? Are you using Bio-Formats? (Do you see a "Bio-Formats Import Options" dialog pop up?) If so, do you have the "Autoscale" option checked?

What happens if you hit Shift+C to bring up the Brightness/Contrast dialog after the file opens and click the Auto button? If you have a composite image, you may need to move the C slider and press Auto at each channel position. Or manually set the display range for each channel using the Set button.

Regards,
Curtis

P.S. Further reading:


On Fri, Jan 2, 2015 at 6:02 PM, Jayanta Bordoloi <jkbor...@gmail.com> wrote:

Mark Hiner

unread,
Jan 6, 2015, 4:13:57 PM1/6/15
to Curtis Rueden, Jayanta Bordoloi, Fiji Developers
Best,
Mark

Yili Zhao

unread,
Jan 7, 2015, 10:36:33 PM1/7/15
to fiji-...@googlegroups.com, jkbor...@gmail.com, ctru...@wisc.edu
Hi Curtis,
  I did a we search, and found the problem origin description:

  Root cause: In a Windows installation with Java 7 version 21 or later, the Windows Preferences classes in Oracle's JVM try to read from the Windows Registry key: HKEY_LOCAL_MACHINE\Software\JavaSoft\Prefs . Since the key has not been created by the Java installer (as was the case in previous versions of Java), these classes try to create them and fail due to insufficient privileges. This is displayed on the Java console as seen above in the warning message.

Workaround: This warning message can be safely ignored. But if you want to remove it completely the easiest workaround is starting HIPE at least once as administrator.

Side effects: The attempt to read this Registry key does not affect the behaviour of HIPE, since HIPE stores the user preferences in the CURRENT_USER hive of the Windows Registry.


So I think this problem is not related to Fiji. Instead, it is related to JDK 7 installer.



在 2015年1月6日星期二UTC+8上午6时11分37秒,Curtis Rueden写道:

Curtis Rueden

unread,
Jan 8, 2015, 6:32:53 PM1/8/15
to Yili Zhao, Fiji Developers, Jayanta Bordoloi
Hi Yili,

Thanks for the additional information.

While it might still be good to address this issue somehow, for the time being it is moot because I reverted the annoying stdout/stderr console logging. So at least people won't see that message on startup anymore, even though it is still happening.

Regards,
Curtis

Reply all
Reply to author
Forward
0 new messages