mynttt / UpdateTool

A tool to update the IMDB ratings for Plex libraries that contain movies/series and use the IMDB agent to receive ratings
GNU General Public License v3.0
256 stars 12 forks source link

Error in GUI Tool MAC OS #110

Closed DannMendis closed 9 months ago

DannMendis commented 1 year ago

Amazing tool. I am getting an error on MacMini with

MacOS: Ventura 13.3 (22E252) Gui Tool Version: updatetool-gui-mac-1.0.7.jar Installed Java Version: java -version openjdk version "11.0.19" 2023-04-18 OpenJDK Runtime Environment Temurin-11.0.19+7 (build 11.0.19+7) OpenJDK 64-Bit Server VM Temurin-11.0.19+7 (build 11.0.19+7, mixed mode)

Error: Unable to load Java

Screenshot 2023-07-10 at 11 31 26 am
DannMendis commented 1 year ago

Note: I have installed Java and I can see that from terminal.

DannMendis commented 1 year ago

Any help on this?

mynttt commented 1 year ago

@DannMendis What happens when you run it as java -jar updatetool-gui-mac-1.0.7.jar from the terminal? Does it report errors?

DannMendis commented 9 months ago

@mynttt Below is the error. Note that I am using Silicon Mac.

macminibeast@MacMiniBeast /Applications % Java -jar updatetool-gui-mac-1.0.7.jar Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib: dlopen(/Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib, 0x0001): tried: '/Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib' (no such file), '/Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) java.lang.UnsatisfiedLinkError: /Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib: dlopen(/Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib, 0x0001): tried: '/Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib' (no such file), '/Users/macminibeast/.openjfx/cache/13/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418) at java.base/java.lang.Runtime.load0(Runtime.java:852) at java.base/java.lang.System.load(System.java:2025) at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:214) at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:194) at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:135) at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:53) at com.sun.prism.es2.ES2Pipeline.lambda$static$0(ES2Pipeline.java:68) at java.base/java.security.AccessController.doPrivileged(AccessController.java:319) at com.sun.prism.es2.ES2Pipeline.<clinit>(ES2Pipeline.java:50) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:421) at java.base/java.lang.Class.forName(Class.java:412) at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:218) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:91) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124) at java.base/java.lang.Thread.run(Thread.java:1583) Loading library prism_sw from resource failed: java.lang.UnsatisfiedLinkError: /Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib: dlopen(/Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib, 0x0001): tried: '/Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib' (no such file), '/Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) java.lang.UnsatisfiedLinkError: /Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib: dlopen(/Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib, 0x0001): tried: '/Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib' (no such file), '/Users/macminibeast/.openjfx/cache/13/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418) at java.base/java.lang.Runtime.load0(Runtime.java:852) at java.base/java.lang.System.load(System.java:2025) at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:214) at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:194) at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:135) at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:53) at com.sun.prism.sw.SWPipeline.lambda$static$0(SWPipeline.java:42) at java.base/java.security.AccessController.doPrivileged(AccessController.java:319) at com.sun.prism.sw.SWPipeline.<clinit>(SWPipeline.java:41) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:421) at java.base/java.lang.Class.forName(Class.java:412) at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:218) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:91) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124) at java.base/java.lang.Thread.run(Thread.java:1583) Graphics Device initialization failed for : es2, sw Error initializing QuantumRenderer: no suitable pipeline found java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280) at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:244) at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:260) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124) ... 1 more Exception in thread "main" java.lang.RuntimeException: No toolkit found at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:272) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:267) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:158) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:1583) macminibeast@MacMiniBeast /Applications %

DannMendis commented 9 months ago

If Unable to fix, any way to give the data directory in my Silicon Mac from another PC? Reason is it's working on my old MAC.

mynttt commented 9 months ago

This had someone to do with the JavaFX dependency embedded to the GUI. I've updated it to a newer version that should work with Silicon Mac: https://github.com/mynttt/UpdateTool/releases/tag/g1.0.8

DannMendis commented 8 months ago

I am still getting the same error with latest Jar. Please have a look.

macminibeast@MacMiniBeast Downloads % java -jar updatetool-gui-mac-1.0.8.jar Mar 03, 2024 8:44:53 AM com.sun.javafx.application.PlatformImpl startup WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @4d5804c6' Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib: dlopen(/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib, 0x0001): tried: '/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib' (no such file), '/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) java.lang.UnsatisfiedLinkError: /Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib: dlopen(/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib, 0x0001): tried: '/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib' (no such file), '/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_es2.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418) at java.base/java.lang.Runtime.load0(Runtime.java:852) at java.base/java.lang.System.load(System.java:2025) at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:217) at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:197) at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:138) at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:54) at com.sun.prism.es2.ES2Pipeline.lambda$static$0(ES2Pipeline.java:63) at java.base/java.security.AccessController.doPrivileged(AccessController.java:319) at com.sun.prism.es2.ES2Pipeline.(ES2Pipeline.java:52) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:421) at java.base/java.lang.Class.forName(Class.java:412) at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:218) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:92) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125) at java.base/java.lang.Thread.run(Thread.java:1583) Loading library prism_sw from resource failed: java.lang.UnsatisfiedLinkError: /Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib: dlopen(/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib, 0x0001): tried: '/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib' (no such file), '/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) java.lang.UnsatisfiedLinkError: /Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib: dlopen(/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib, 0x0001): tried: '/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib' (no such file), '/Users/macminibeast/.openjfx/cache/19.0.2.1+1/aarch64/libprism_sw.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418) at java.base/java.lang.Runtime.load0(Runtime.java:852) at java.base/java.lang.System.load(System.java:2025) at com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:217) at com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:197) at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:138) at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:54) at com.sun.prism.sw.SWPipeline.lambda$static$0(SWPipeline.java:43) at java.base/java.security.AccessController.doPrivileged(AccessController.java:319) at com.sun.prism.sw.SWPipeline.(SWPipeline.java:42) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:421) at java.base/java.lang.Class.forName(Class.java:412) at com.sun.prism.GraphicsPipeline.createPipeline(GraphicsPipeline.java:218) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:92) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125) at java.base/java.lang.Thread.run(Thread.java:1583) Graphics Device initialization failed for : es2, sw Error initializing QuantumRenderer: no suitable pipeline found java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:283) at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:253) at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:268) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:659) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:679) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:95) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125) ... 1 more Exception in thread "main" java.lang.RuntimeException: No toolkit found at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:280) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:659) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:679) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196) at java.base/java.lang.Thread.run(Thread.java:1583) macminibeast@MacMiniBeast Downloads %

DannMendis commented 1 month ago

Not sure why this closed as issue is still at present (even in latest)