Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Linux stack traces

Joined
Nov 3, 2013
Messages
609
Here is a thread for Linux specific errors:
Code:
java.lang.UnsatisfiedLinkError: sun.tools.attach.WindowsAttachProvider.tempPath()Ljava/lang/String;
    at sun.tools.attach.WindowsAttachProvider.tempPath(Native Method)
    at sun.tools.attach.WindowsAttachProvider.isTempPathSecure(ep:159)
    at sun.tools.attach.WindowsAttachProvider.listVirtualMachines(ep:55)
    at com.sun.tools.attach.VirtualMachine.list(cl:168)
    at nul.iIIIIIiIIiIi.if(ibc:49)
    at nul.IiiiIIiIiiIi.initialize(nsb:201)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    at nul.IIIIiiiiIiII.if(uo:124)
    at nul.IIIIiiiiIiII.if(uo:89)
    at nul.IiiiIIiIiiIi.<init>(nsb:236)
    at nul.IiiiIIiIiiIi.<init>(nsb:81)
    at nul.IiiIIIiiiIIi.if(wnb:43)
    at nul.IiiIiIiiIIiI.if(iqb:4356)
    at nul.IiiIiIiiIIiI.call(iqb:17202)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:745)
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
The issue is that it's trying to use all three of the supported attach providers. On windows this works fine but on linux the windows provider is trying to use a method call that doesn't exist. This is something that I need to investigate the best solution for.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,046
The issue is that it's trying to use all three of the supported attach providers. On windows this works fine but on linux the windows provider is trying to use a method call that doesn't exist. This is something that I need to investigate the best solution for.
Now would be a good time as any to set up a couple local VMs.
 
Joined
Nov 3, 2013
Messages
609
Is there some reason you can't use:
Code:
System.getProperty("os.name")
?
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Is there some reason you can't use:
Code:
System.getProperty("os.name")
?
That'll be part of the solution but unfortunately it's not that simple due to how attach providers work. I know how to fix it, it'll just require a tad bit of reflection and I'd rather get these more annoying UX errors out of the way first.
 
Joined
Nov 3, 2013
Messages
609
Code:
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.awt.AWTException: TrayIcon couldn't be displayed.
    at sun.awt.X11.XTrayIconPeer.<init>(XTrayIconPeer.java:268)
    at sun.awt.X11.XToolkit.createTrayIcon(XToolkit.java:1146)
    at java.awt.TrayIcon.addNotify(TrayIcon.java:691)
    at java.awt.SystemTray.add(SystemTray.java:276)
    at com.runemate.boot.Boot.start(gcc:72)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
    ... 1 more
Exception running application com.runemate.boot.Boot
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Code:
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.awt.AWTException: TrayIcon couldn't be displayed.
    at sun.awt.X11.XTrayIconPeer.<init>(XTrayIconPeer.java:268)
    at sun.awt.X11.XToolkit.createTrayIcon(XToolkit.java:1146)
    at java.awt.TrayIcon.addNotify(TrayIcon.java:691)
    at java.awt.SystemTray.add(SystemTray.java:276)
    at com.runemate.boot.Boot.start(gcc:72)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
    ... 1 more
Exception running application com.runemate.boot.Boot
@Arbiter
This was after I fixed attach providers in V1.0.9, any idea why this is happening? We check to make sure the SystemTray is supported before adding the tray icon.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,046
No idea but I can research later. @Exia distro and desktop environment please.


Sent from my iPhone using Tapatalk
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Nice find, looks like it's not something we can properly resolve then. We could at least catch the exception so that the application would continue to run (I'm assuming it doesn't proceed after the exception). We may also have to try to remove the incomplete tray icon based on the links you posted.
 
I've gone ahead and released V1.0.10 which catches and prints this exception instead of letting it crash the JVM. Please let me know if anything does appear in the system tray such as a malformed/unusable tray icon. Also go ahead and let me know of any additional exceptions you encounter while testing on Linux.
 
Joined
Nov 3, 2013
Messages
609
Not using a VM at all, it's natively installed.

Nice find, looks like it's not something we can properly resolve then. We could at least catch the exception so that the application would continue to run (I'm assuming it doesn't proceed after the exception). We may also have to try to remove the incomplete tray icon based on the links you posted.
 
I've gone ahead and released V1.0.10 which catches and prints this exception instead of letting it crash the JVM. Please let me know if anything does appear in the system tray such as a malformed/unusable tray icon. Also go ahead and let me know of any additional exceptions you encounter while testing on Linux.
Will do when I get home.
 
Joined
Nov 3, 2013
Messages
609
Even when running as root, I get:
Code:
java.io.IOException: Cannot run program "/home/john2/RuneMate/cache/window_info.sh": error=13, Permission denied
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at nul.IIiIIIiIiiii.enum(qsb:79)
    at nul.iiIIiiiIiiIi.enum(eh:23)
    at nul.iiIIiiiIiiIi.enum(eh:168)
    at nul.iiIIiiiIiiIi.enum(eh:50)
    at nul.IIiIiIiIIIII.enum(nic:135)
    at nul.iiIIIIiIiIiI.initialize(gvb:205)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    at nul.IIiIIiiIiiII.enum(um:177)
    at nul.IIiIIiiIiiII.enum(um:47)
    at nul.iiIIIIiIiIiI.<init>(gvb:211)
    at nul.iiIIIIiIiIiI.<init>(gvb:201)
    at nul.iIiiiIiiiIIi.enum(bpb:168)
    at nul.iIiIIIiIiIII.enum(vsb:15491)
    at nul.iIiIIIiIiIII.call(vsb:10207)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 19 more
java.io.IOException: Cannot run program "/home/john2/RuneMate/cache/window_info.sh": error=13, Permission denied
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at nul.IIiIIIiIiiii.enum(qsb:79)
    at nul.iiIIiiiIiiIi.enum(eh:23)
    at nul.iiIIiiiIiiIi.enum(eh:168)
    at nul.iiIIiiiIiiIi.enum(eh:50)
    at nul.IIiIiIiIIIII.enum(nic:135)
    at nul.iiIIIIiIiIiI.initialize(gvb:205)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    at nul.IIiIIiiIiiII.enum(um:177)
    at nul.IIiIIiiIiiII.enum(um:47)
    at nul.iiIIIIiIiIiI.<init>(gvb:211)
    at nul.iiIIIIiIiIiI.<init>(gvb:201)
    at nul.iIiiiIiiiIIi.enum(bpb:168)
    at nul.iIiIIIiIiIII.enum(vsb:15491)
    at nul.iIiIIIiIiIII.call(vsb:10207)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 19 more
Still cannot find any instances either.
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,046
Even when running as root, I get:
Code:
java.io.IOException: Cannot run program "/home/john2/RuneMate/cache/window_info.sh": error=13, Permission denied
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at nul.IIiIIIiIiiii.enum(qsb:79)
    at nul.iiIIiiiIiiIi.enum(eh:23)
    at nul.iiIIiiiIiiIi.enum(eh:168)
    at nul.iiIIiiiIiiIi.enum(eh:50)
    at nul.IIiIiIiIIIII.enum(nic:135)
    at nul.iiIIIIiIiIiI.initialize(gvb:205)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    at nul.IIiIIiiIiiII.enum(um:177)
    at nul.IIiIIiiIiiII.enum(um:47)
    at nul.iiIIIIiIiIiI.<init>(gvb:211)
    at nul.iiIIIIiIiIiI.<init>(gvb:201)
    at nul.iIiiiIiiiIIi.enum(bpb:168)
    at nul.iIiIIIiIiIII.enum(vsb:15491)
    at nul.iIiIIIiIiIII.call(vsb:10207)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 19 more
java.io.IOException: Cannot run program "/home/john2/RuneMate/cache/window_info.sh": error=13, Permission denied
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at nul.IIiIIIiIiiii.enum(qsb:79)
    at nul.iiIIiiiIiiIi.enum(eh:23)
    at nul.iiIIiiiIiiIi.enum(eh:168)
    at nul.iiIIiiiIiiIi.enum(eh:50)
    at nul.IIiIiIiIIIII.enum(nic:135)
    at nul.iiIIIIiIiIiI.initialize(gvb:205)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    at nul.IIiIIiiIiiII.enum(um:177)
    at nul.IIiIIiiIiiII.enum(um:47)
    at nul.iiIIIIiIiIiI.<init>(gvb:211)
    at nul.iiIIIIiIiIiI.<init>(gvb:201)
    at nul.iIiiiIiiiIIi.enum(bpb:168)
    at nul.iIiIIIiIiIII.enum(vsb:15491)
    at nul.iIiIIIiIiIII.call(vsb:10207)
    at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 19 more
Still cannot find any instances either.
Try navigating to "/home/john2/RuneMate/cache/window_info.sh" and running superuser.
 
Top