Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lightzone crashes on scanning a directory for pictures #124

Closed
meisam opened this issue Jul 6, 2014 · 11 comments
Closed

Lightzone crashes on scanning a directory for pictures #124

meisam opened this issue Jul 6, 2014 · 11 comments

Comments

@meisam
Copy link

meisam commented Jul 6, 2014

I am running LighZone on xubunt 14.04 with Oracle/Sun Java 1.7.0_60, and gcc 4.8.2
. LightZone crashes when it scans a directory for pictures. This happens both on the binary files downloaded form the LighZone project website and from on the latest commit on the master branch. The 4.1.0~beta9 (441f3c6) commit seems to be working fine.

This is the stack trace
java.lang.NoClassDefFoundError: Could not initialize class com.lightcrafts.utils.xml.XMLUtil
at com.lightcrafts.image.types.JPEGImageType.getXMP(JPEGImageType.java:620)
at com.lightcrafts.image.types.JPEGImageType.readMetadata(JPEGImageType.java:763)
at com.lightcrafts.image.ImageInfo.getMetadata(ImageInfo.java:300)
at com.lightcrafts.ui.metadata2.MetadataStack.setImage(MetadataStack.java:49)
at com.lightcrafts.ui.metadata2.MetadataStack.(MetadataStack.java:34)
at com.lightcrafts.ui.metadata2.MetadataScroll.setImage(MetadataScroll.java:55)
at com.lightcrafts.app.ComboFrame.setImage(ComboFrame.java:410)
at com.lightcrafts.app.ComboFrame.selectionChanged(ComboFrame.java:421)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:41)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.ImageBrowserMulticaster.selectionChanged(ImageBrowserMulticaster.java:42)
at com.lightcrafts.ui.browser.view.AbstractImageBrowser.notifySelectionChanged(AbstractImageBrowser.java:852)
at com.lightcrafts.ui.browser.view.ImageBrowserSelectionModel.setLeadSelected(ImageBrowserSelectionModel.java:27)
at com.lightcrafts.ui.browser.view.AbstractImageBrowser.setSelectedFiles(AbstractImageBrowser.java:514)
at com.lightcrafts.app.ComboFrame$8.run(ComboFrame.java:1122)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Git bisect gives a2d5f99 (Fixed #119) as the commit that is causing the problem but the stack trace that I am getting from is different:

java.lang.NoClassDefFoundError: javax/help/HelpSetException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at com.lightcrafts.platform.Platform.(Platform.java:405)
at com.lightcrafts.platform.linux.LinuxLauncher.main(LinuxLauncher.java:35)
Caused by: java.lang.ClassNotFoundException: javax.help.HelpSetException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 4 more

@ktgw0316
Copy link
Owner

ktgw0316 commented Jul 8, 2014

You need to install javahelp2 package to fix the java.lang.NoClassDefFoundError: javax/help/HelpSetException. Could you check again with the git bisect after that?

@albuntu
Copy link

albuntu commented Jul 8, 2014

The same problem for me: LZ crashes after choosing a new picture directory.
Javahelp2 was installed.

Messages:
java: symbol lookup error: /opt/lightzone/libLCMS.so: undefined symbol: cmsOpenProfileFromMem

Java:
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

@meisam
Copy link
Author

meisam commented Jul 8, 2014

@ktgw0316 javahelp2 is installed on my system.

@madanyang
Copy link

Reverting the fix for #118 in other words commit c478030 results a working lightzone but it is not the solution.

@ktgw0316
Copy link
Owner

@madanyang
I updated the jnisrc/lcms/GNUmakefile in 074a7cf. Could you test if that solve the problem?

@madanyang
Copy link

@ktgw0316 yes this solves the problem

@ktgw0316
Copy link
Owner

@madanyang thanks!

@ktgw0316
Copy link
Owner

@markmaas Please upgrade to the latest 4.1.0~beta13 and try again.

@buzzvertising
Copy link

The same problem for me: LZ crashes when trying to open picture file.

Messages:
$ lightzone
Starting LightZone version 4.1.0 beta11 ...
with options :
This is LightZone 4.1.0beta11 ()
Verifying Libraries
Initializing Engine Utilities
Max Memory: 508887040
Total Memory: 22097920
Running on 2 processors
Allocating 0MB for the image cache.
Loading Classes
Scanning Color Profiles
Restoring Preferences
Starting Logging
Scanning Saved Documents
Opening...
Light Crafts JAI Library - 02/05/07
escape@escape-Latitude-D620:
$ lightzone
Starting LightZone version 4.1.0 beta11 ...
with options :
This is LightZone 4.1.0~beta11 ()
Verifying Libraries
Initializing Engine Utilities
Max Memory: 508887040
Total Memory: 22032384
Running on 2 processors
Allocating 0MB for the image cache.
Loading Classes
Scanning Color Profiles
Restoring Preferences
Starting Logging
Scanning Saved Documents
Opening...
Light Crafts JAI Library - 02/05/07
Opening /home/escape/Documents/Echipe/raw/P1040070.JPG
java: symbol lookup error: /opt/lightzone/libLCMS.so: undefined symbol: cmsOpenProfileFromMem

$java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu1)
OpenJDK Client VM (build 24.65-b04, mixed mode, sharing)

Javahelp2 is installed.

@ktgw0316
Copy link
Owner

ktgw0316 commented Dec 9, 2014

Why are you still using the older beta?

@buzzvertising
Copy link

True. I've installed the beta13 and everything is ok. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants