Summary: | graphics/lightzone does not start | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Lars Henrik Ørn <larshenrikoern> |
Component: | Individual Port(s) | Assignee: | Yuri Victorovich <yuri> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | uzsolt |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Lars Henrik Ørn
2024-06-13 21:37:19 UTC
^Triage: assign to maintainer (committer). I can't reproduce the problem on 14.1 STABLE. The JDK version is slightly different. $ /usr/local/bin/lightzone Starting LightZone version 4.1.8 ... with options : openjdk version "1.8.0_422" OpenJDK Runtime Environment (build 1.8.0_422-b05) OpenJDK 64-Bit Server VM (build 25.422-b05, mixed mode) XPath set is empty This is LightZone 4.1.8 () Running Java version 1.8.0_422 (amd64) Verifying Libraries Initializing Engine Utilities Max Memory: 12859736064 Total Memory: 402653184 Running on 8 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 ... after this the GUI works as expected. /usr/local/lib/gcc13/libstdc++.so.6 is used on my system. Lars, Do you still see the problem on the current 14.1-STABLE? Hi Yuri Yes the error still persists. But in the meantime some things has been updated. So here is the output when starting from a shell on 14-STABLE. Lightzone was some years ago my preferred photoeditor. So it would be nice to get it going agin Starting LightZone version 4.1.8 ... with options : openjdk version "1.8.0_422" OpenJDK Runtime Environment (build 1.8.0_422-b05) OpenJDK 64-Bit Server VM (build 25.422-b05, mixed mode) XPath set is empty This is LightZone 4.1.8 () Running Java version 1.8.0_422 (amd64) Undersøger system biblioteker java.lang.UnsatisfiedLinkError: /usr/local/lib/lightzone/libJAI.so: /usr/local/lib/gcc12/libstdc++.so.6: version GLIBCXX_3.4.32 required by /usr/local/lib/lightzone/libLCJNI.so not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850) at java.lang.Runtime.loadLibrary0(Runtime.java:843) at java.lang.System.loadLibrary(System.java:1136) at com.lightcrafts.app.Application.verifyLibraries(Application.java:1709) at com.lightcrafts.app.Application.main(Application.java:2182) at com.lightcrafts.platform.Launcher.init(Launcher.java:43) at com.lightcrafts.platform.linux.LinuxLauncher.main(LinuxLauncher.java:11) java.lang.UnsatisfiedLinkError: /usr/local/lib/lightzone/libfbf.so: /usr/local/lib/gcc12/libstdc++.so.6: version GLIBCXX_3.4.32 required by /usr/local/lib/lightzone/libfbf.so not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850) at java.lang.Runtime.loadLibrary0(Runtime.java:843) at java.lang.System.loadLibrary(System.java:1136) at com.lightcrafts.app.Application.verifyLibraries(Application.java:1709) at com.lightcrafts.app.Application.main(Application.java:2182) at com.lightcrafts.platform.Launcher.init(Launcher.java:43) at com.lightcrafts.platform.linux.LinuxLauncher.main(LinuxLauncher.java:11) java.lang.UnsatisfiedLinkError: /usr/local/lib/lightzone/libLCJPEG.so: /usr/local/lib/gcc12/libstdc++.so.6: version GLIBCXX_3.4.32 required by /usr/local/lib/lightzone/libLCJNI.so not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850) at java.lang.Runtime.loadLibrary0(Runtime.java:843) at java.lang.System.loadLibrary(System.java:1136) at com.lightcrafts.app.Application.verifyLibraries(Application.java:1709) at com.lightcrafts.app.Application.main(Application.java:2182) at com.lightcrafts.platform.Launcher.init(Launcher.java:43) at com.lightcrafts.platform.linux.LinuxLauncher.main(LinuxLauncher.java:11) java.lang.UnsatisfiedLinkError: /usr/local/lib/lightzone/libLCTIFF.so: /usr/local/lib/gcc12/libstdc++.so.6: version GLIBCXX_3.4.32 required by /usr/local/lib/lightzone/libLCJNI.so not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850) at java.lang.Runtime.loadLibrary0(Runtime.java:843) at java.lang.System.loadLibrary(System.java:1136) at com.lightcrafts.app.Application.verifyLibraries(Application.java:1709) at com.lightcrafts.app.Application.main(Application.java:2182) at com.lightcrafts.platform.Launcher.init(Launcher.java:43) at com.lightcrafts.platform.linux.LinuxLauncher.main(LinuxLauncher.java:11) java.lang.UnsatisfiedLinkError: /usr/local/lib/lightzone/libLinux.so: /usr/local/lib/gcc12/libstdc++.so.6: version GLIBCXX_3.4.32 required by /usr/local/lib/lightzone/libLinux.so not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850) at java.lang.Runtime.loadLibrary0(Runtime.java:843) at java.lang.System.loadLibrary(System.java:1136) at com.lightcrafts.platform.linux.LinuxPlatform.loadLibraries(LinuxPlatform.java:183) at com.lightcrafts.app.Application.verifyLibraries(Application.java:1718) at com.lightcrafts.app.Application.main(Application.java:2182) at com.lightcrafts.platform.Launcher.init(Launcher.java:43) at com.lightcrafts.platform.linux.LinuxLauncher.main(LinuxLauncher.java:11) Starter makinens tilbehør Max Memory: 34208743424 Total Memory: 1073741824 Running on 20 processors Malformed memory size text: For input string: "" Allocating 0MB for the image cache. Åbner biblioteker Skanner farve profiler Gendanner indstillinger Starter log Skanner gemte dokumenter Åbner... Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /usr/local/lib/lightzone/libLCFileUtil.so: /usr/local/lib/gcc12/libstdc++.so.6: version GLIBCXX_3.4.32 required by /usr/local/lib/lightzone/libLCJNI.so not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1850) at java.lang.Runtime.loadLibrary0(Runtime.java:843) at java.lang.System.loadLibrary(System.java:1136) at com.lightcrafts.utils.file.FileUtil.<clinit>(FileUtil.java:608) at com.lightcrafts.ui.browser.folders.FolderTreeNode.<init>(FolderTreeNode.java:68) at com.lightcrafts.ui.browser.folders.FolderTreeNode.createRoot(FolderTreeNode.java:54) at com.lightcrafts.ui.browser.folders.FolderTreeModel.<init>(FolderTreeModel.java:22) at com.lightcrafts.ui.browser.folders.FolderTree.<init>(FolderTree.java:30) at com.lightcrafts.ui.browser.folders.FolderBrowserPane.<init>(FolderBrowserPane.java:41) at com.lightcrafts.ui.browser.ctrls.FolderCtrl.<init>(FolderCtrl.java:20) at com.lightcrafts.app.ComboFrame.<init>(ComboFrame.java:174) at com.lightcrafts.app.Application.createNewComboFrame(Application.java:1495) at com.lightcrafts.app.Application.openEmpty(Application.java:571) at com.lightcrafts.app.Application$11.run(Application.java:2223) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 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:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) 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) (In reply to Lars Henrik Ørn from comment #4) Hi Lars, Why do you have lightzone using gcc12? gcc13 has been a default gcc version since 2023-11-07. Could you please update all packages and try again? Yuri Hi Yuri I am building everything myself using poudriere from the ports main branch updated almost daily. And has almost no options i my make.conf Sample here ; CPUTYPE=alderlake ALLOW_MAKE_JOBS=yes MAKE_JOBS_NUMBER=4 CCACHE_DIR=/build/ccache WITH_CCACHE_BUILD=yes DISABLE_LICENSES=yes OPTIONS_SET+=LANG_DA OPTIONS_SET+=MANPAGES OPTIONS_SET+=NONFREE OPTIONS_SET+=OPTIMIZED_CFLAGS OPTIONS_SET+=THEMES OPTIONS_UNSET+=DEBUG games_stockfish_SET=BMI2 www_firefox_UNSET=ALSA www_firefox_UNSET=PULSEAUDIO www_firefox_UNSET=SNDIO www_waterfox_UNSET=ALSA www_waterfox_UNSET=PULSEAUDIO www_waterfox_UNSET=SNDIO -------------- So ggc12 might be chosen because of a secondary dependency depending upon that. But it might as well be that the version of LightZone in the ports is very old. I have for different reasons made rebuild of everything several times in the last months. But it has not solved this problem Than you for your interest Lars H (In reply to Lars Henrik Ørn from comment #6) gcc version is determined by the default that is set in the ports tree. What does this command print?: > cd /usr/ports/graphics/lightzone && make -V GCC_DEFAULT Hi again That was fast :-) It says: lars@amati:~ $ cd /usr/ports/graphics/lightzone && make -V GCC_DEFAULT 13 So version gcc13 Thank you for your work with this Lars H (In reply to Lars Henrik Ørn from comment #8) I don't understand then why does it use gcc12. Poudriere-built package is supposed to use gcc13. Does the lightzone depend on gcc12 or gcc13? Please remove gcc12. Hi agian I have not installed gcc12 manually.These are the packages depending on it pkg query %ro gcc12 graphics/darktable graphics/rawtherapee They are the best alternatives to Lightzone right now. Removing them creates a chicken/egg problem. Have a nice day Lars H (In reply to Lars Henrik Ørn from comment #10) I see. I will look into this tomorrow. It looks like lightzone erroneously uses gcc12 when it is installed. I confirm that LightZone promiscuously links to gcc12 by mistake when gcc12 is installed. LightZone should work for you if you would uninstall gcc12 with all packages that depend on it. I will fix this problem in the graphics/lightzone port. Hi again What happens if Lightzone gets updated to a never version (hint: try with Lightzone 4.2.4) ?? As far I know it is not working in prebuilt packages either.So Lightzone must have almost no users because you have to be very determined to get it working.And when it did the last time i got it to work there were problems with menus collapsing among other things. So maybe Lightzone is to broken on FreeBSD to keep it in ports. And as an photographer removing Darktable makes things quite bad. But thank you for time and help. Just ask if I can do anything more Lars H A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=10e6520abef913ffe31ad0b01840b354f49cf8a8 commit 10e6520abef913ffe31ad0b01840b354f49cf8a8 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-08-18 10:26:26 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-08-18 10:33:11 +0000 graphics/lightzone: Force-link to the default GCC libs Current default is GCC13, but it was linking to /usr/local/lib/gcc12/libstdc++.so.6 when GCC12 was also installed. PR: 279723 graphics/lightzone/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) This problem should be fixed now. Lars, I suspect that LightZone has very few users in general. Please note that it has very few stars in GitHub for such an old app. They chose to use technologies not too common for GUI apps - Java and something obscure called IvyBridge. As a result this app might be perpetually buggy due to lack of support and stability of used technologies. I also see the collapsing menus problem. I'll try to update it to the latest version - it might work better. But I am not excited about GUI written in Java. There are just very few such programs, and as a result such technology isn't well supported in general, and doesn't work well for the most part. Did you see the ART image editor graphics/art? It works very well, and is a very nice photo processing GUI app. Best, Yuri Hi Yuri No I have not tried graphis/art. I will do that. Rawtherapee in a more friendly version might be nice. I like Lightzone, because it is giving very unique results because of the way it calculates the exposure. And 15 years ago it nearest competitor was rawtherapee. For a lot years I was very active in its old community. But it is now gone. And development has for many years been on and of. It has only active developer. Thank you for your time. If the new version of Lightzone does not work better, I might suggest to remove it form the ports tree. Thank you and have a nice day Lars H (In reply to Lars Henrik Ørn from comment #17) Hi Lars, I usually don't remove ports that build but malfunction in some way. IMO they should be fixed, reported to the upstream as long as it is alive. I will make an effort to update LightZone and will let you know. Best, Yuri |