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

Loading 700+ cache freezes the application #5

Open
Kawaxte opened this issue Jul 28, 2023 · 2 comments
Open

Loading 700+ cache freezes the application #5

Kawaxte opened this issue Jul 28, 2023 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Kawaxte
Copy link

Kawaxte commented Jul 28, 2023

When you load a 700+ revision cache, like the 727 cache downloaded from here, the application freezes and you will be unable to click or open anything. When looking in Terminal, there seem to be no Exception messages...or anything at all for that matter.

@lequietriot lequietriot added bug Something isn't working help wanted Extra attention is needed labels Jul 29, 2023
@lequietriot
Copy link
Owner

When you load a 700+ revision cache, like the 727 cache downloaded from here, the application freezes and you will be unable to click or open anything. When looking in Terminal, there seem to be no Exception messages...or anything at all for that matter.

Hi, have you tried running the program with additional arguments like "java -jar -Xmx4g [jar application path]"? I recall having the same issue where it doesn't load or freezes on caches with larger sizes, until I did that to increase memory.

@Kawaxte
Copy link
Author

Kawaxte commented Jul 30, 2023

I am nw getting the following Exception message in Terminal:

C:\Users\<USER>\Music>java -jar -Xmx4g Old-School-RuneScape-Cache-Tools.jar
Jul 30, 2023 8:24:58 PM com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @66d1af89'
Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: jdk/swing/interop/SwingInterOpUtils
        at com.sun.javafx.embed.swing.newimpl.JFXPanelInteropN.postEvent(JFXPanelInteropN.java:36)
        at javafx.embed.swing.JFXPanel.invokeOnClientEDT(JFXPanel.java:986)
        at javafx.embed.swing.JFXPanel$HostContainer.setEmbeddedScene(JFXPanel.java:1033)
        at com.sun.javafx.tk.quantum.EmbeddedScene.setStage(EmbeddedScene.java:122)
        at com.sun.javafx.tk.quantum.GlassStage.setScene(GlassStage.java:95)
        at com.sun.javafx.tk.quantum.EmbeddedStage.setScene(EmbeddedStage.java:62)
        at javafx.stage.Window$12.invalidated(Window.java:1142)
        at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:110)
        at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
        at javafx.stage.Window.setShowing(Window.java:1239)
        at javafx.stage.Window.show(Window.java:1254)
        at com.sun.javafx.stage.EmbeddedWindow.show(EmbeddedWindow.java:71)
        at javafx.embed.swing.JFXPanel.setSceneImpl(JFXPanel.java:335)
        at javafx.embed.swing.JFXPanel.setScene(JFXPanel.java:302)
        at com.application.GUI.lambda$loadCache$40(GUI.java:838)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
        at java.base/java.security.AccessController.doPrivileged(Unknown Source)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: jdk.swing.interop.SwingInterOpUtils
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 22 more

Here is the output of my "java -version" call.

openjdk version "20.0.2" 2023-07-18
OpenJDK Runtime Environment Temurin-20.0.2+9 (build 20.0.2+9)
OpenJDK 64-Bit Server VM Temurin-20.0.2+9 (build 20.0.2+9, mixed mode, sharing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants