Closed mjhuurre closed 8 years ago
Hello,
Same here, also on Ubuntu 15.10. Although, I found a workaround: if I resize/maximize the window after the exception is thrown, the second time the image can be loaded and I'm able to edit it. But it's very frustrating, because I cannot return to 'Browse' mode. Also, the "Done" button that was before is missing. Is this intentional? I have to click 'Save' then select a name ...._lzn.jpg, press enter , etc instead of just pressing "Done" ?
ps: The same thing happens with Lightzone 4.1.3. The sjavaame thing happens with java8 or java7 (openjdk from Ubuntu's repositories).
_ps2: This happens only with the OpenJDK. It works with Oracle Java 1.8.065.
Stack trace: Opening /home/vlad/Downloads/various pictures/936322_10151610668750325_604293772_n.jpg Exception in thread "AWT-EventQueue-1" java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966) at java.util.LinkedList$ListItr.next(LinkedList.java:888) at com.lightcrafts.model.ImageEditor.ImageEditorDisplay.reshape(ImageEditorDisplay.java:61) at java.awt.Component.setBounds(Component.java:2263) at java.awt.Component.move(Component.java:2111) at java.awt.Component.setLocation(Component.java:2100) at com.lightcrafts.ui.mode.ModeOverlay.doUnderlayLayout(ModeOverlay.java:264) at com.lightcrafts.ui.mode.ModeOverlay.doLayout(ModeOverlay.java:231) at java.awt.Container.validateTree(Container.java:1695) at java.awt.Container.validateTree(Container.java:1704) at java.awt.Container.validateTree(Container.java:1704) at java.awt.Container.validateTree(Container.java:1704) at java.awt.Container.validateTree(Container.java:1704) at java.awt.Container.validateTree(Container.java:1704) at java.awt.Container.validateTree(Container.java:1704) at java.awt.Container.validateTree(Container.java:1704) at java.awt.Container.validateTree(Container.java:1704) at java.awt.Container.validate(Container.java:1630) at javax.swing.JLayeredPane.addImpl(JLayeredPane.java:232) at java.awt.Container.add(Container.java:973) at javax.swing.JRootPane.setContentPane(JRootPane.java:626) at javax.swing.JFrame.setContentPane(JFrame.java:698) at com.lightcrafts.app.ComboFrame.showEditorPerspective(ComboFrame.java:711) at com.lightcrafts.app.ComboFrame.setDocument(ComboFrame.java:629) at com.lightcrafts.app.Application.show(Application.java:1525) at com.lightcrafts.app.Application.access$000(Application.java:76) at com.lightcrafts.app.Application$1.documentInitialized(Application.java:219) at com.lightcrafts.app.DocumentInitializer$3.run(DocumentInitializer.java:109) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(AtkWrapper.java:697) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Opening /home/vlad/Downloads/various pictures/yoga-on-the-beach-238012.jpg Exception in thread "AWT-EventQueue-1" java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966) at java.util.LinkedList$ListItr.next(LinkedList.java:888) at com.lightcrafts.model.ImageEditor.ImageEditorDisplay.reshape(ImageEditorDisplay.java:61) at java.awt.Component.setBounds(Component.java:2263) at java.awt.Component.resize(Component.java:2186) at java.awt.Component.setSize(Component.java:2175) at java.awt.Component.resize(Component.java:2215) at java.awt.Component.setSize(Component.java:2206) at com.lightcrafts.ui.mode.ModeOverlay.doUnderlayLayout(ModeOverlay.java:265) at com.lightcrafts.ui.mode.ModeOverlay.getTransform(ModeOverlay.java:220) at com.lightcrafts.ui.editor.ModeManager.getOverlayTransform(ModeManager.java:382) at com.lightcrafts.ui.editor.ModeManager.getInitialCropBounds(ModeManager.java:521) at com.lightcrafts.ui.editor.ModeManager.setUnderlayBounds(ModeManager.java:402) at com.lightcrafts.ui.editor.ModeManager.access$500(ModeManager.java:37) at com.lightcrafts.ui.editor.ModeManager$3.componentResized(ModeManager.java:142) at com.lightcrafts.model.ImageEditor.ImageEditorDisplay.reshape(ImageEditorDisplay.java:62) at java.awt.Component.setBounds(Component.java:2263) at java.awt.Component.move(Component.java:2111)
Can confirm that the resize/maximize allows me to edit photo, although it appeared zoomed to '1:1' instead of 'fit'.
$ java -version
java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.15.10.1)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)
ps2: This happens only with the OpenJDK. It works with Oracle Java 1.8.0_65.
Oh well, probably time to feel the embrace of Oracle...
ps2: This happens only with the OpenJDK. It works with Oracle Java 1.8.0_65.
Oh well, probably time to feel the embrace of Oracle...
Yep, working with
ubuntu@hauki:~$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
ubuntu@hauki:~$ javac -version
javac 1.8.0_66
but IMHO should not depend on proprietary Java version.
Yup, of course it shouldn't depend on Oracle Java. Especially since it's hard to install it on Ubuntu, not something that any user can do. Let's hope someone fixes this bug.
Thanks for the reports, I've just fixed it.
When trying to open a photo for editing (using mouse click), I get a empty (black) window with a menu. Only way out is either with killing the LightZone process, or when started with CLI, hitting CTLR+C.
When I start LightZone using command line, I get following output:
Like said, menu is working and if I try File|Exit I get:
... and LightZone won't quit.
Currently unable to edit photos in any way. I cannot return to browse mode. Using Ubuntu 15.10; Linux hauki 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Problem with LightZone or somewhere else? As far I can now tell the computer is working normally.