Resolved Linux stack traces

Discussion in 'Developer Support' started by Exia, Feb 9, 2016.

  1. Exia

    Joined:
    Nov 3, 2013
    Messages:
    597
    Likes Received:
    244
    Here is a thread for Linux specific errors:
    Code (Text):
    1. java.lang.UnsatisfiedLinkError: sun.tools.attach.WindowsAttachProvider.tempPath()Ljava/lang/String;
    2.     at sun.tools.attach.WindowsAttachProvider.tempPath(Native Method)
    3.     at sun.tools.attach.WindowsAttachProvider.isTempPathSecure(ep:159)
    4.     at sun.tools.attach.WindowsAttachProvider.listVirtualMachines(ep:55)
    5.     at com.sun.tools.attach.VirtualMachine.list(cl:168)
    6.     at nul.iIIIIIiIIiIi.if(ibc:49)
    7.     at nul.IiiiIIiIiiIi.initialize(nsb:201)
    8.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    9.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    10.     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    11.     at nul.IIIIiiiiIiII.if(uo:124)
    12.     at nul.IIIIiiiiIiII.if(uo:89)
    13.     at nul.IiiiIIiIiiIi.<init>(nsb:236)
    14.     at nul.IiiiIIiIiiIi.<init>(nsb:81)
    15.     at nul.IiiIIIiiiIIi.if(wnb:43)
    16.     at nul.IiiIiIiiIIiI.if(iqb:4356)
    17.     at nul.IiiIiIiiIIiI.call(iqb:17202)
    18.     at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    19.     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    20.     at java.lang.Thread.run(Thread.java:745)


     
  2. Best Answer:
    Post #16 by Exia, Feb 26, 2016
  3. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,327
    Likes Received:
    755
    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.
     
  4. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,521
    Likes Received:
    1,039
    Now would be a good time as any to set up a couple local VMs.
     
  5. Exia

    Joined:
    Nov 3, 2013
    Messages:
    597
    Likes Received:
    244
    Is there some reason you can't use:
    Code (Text):
    1. System.getProperty("os.name")
    ?
     
  6. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,327
    Likes Received:
    755
    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.
     
    Exia likes this.
  7. Exia

    Joined:
    Nov 3, 2013
    Messages:
    597
    Likes Received:
    244
    Code (Text):
    1.  
    2. java.lang.reflect.InvocationTargetException
    3.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    4.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    5.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    6.     at java.lang.reflect.Method.invoke(Method.java:498)
    7.     at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
    8.     at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
    9.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    11.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    12.     at java.lang.reflect.Method.invoke(Method.java:498)
    13.     at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
    14. Caused by: java.lang.RuntimeException: Exception in Application start method
    15.     at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
    16.     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
    17.     at java.lang.Thread.run(Thread.java:745)
    18. Caused by: java.awt.AWTException: TrayIcon couldn't be displayed.
    19.     at sun.awt.X11.XTrayIconPeer.<init>(XTrayIconPeer.java:268)
    20.     at sun.awt.X11.XToolkit.createTrayIcon(XToolkit.java:1146)
    21.     at java.awt.TrayIcon.addNotify(TrayIcon.java:691)
    22.     at java.awt.SystemTray.add(SystemTray.java:276)
    23.     at com.runemate.boot.Boot.start(gcc:72)
    24.     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
    25.     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
    26.     at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    27.     at java.security.AccessController.doPrivileged(Native Method)
    28.     at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    29.     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    30.     at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
    31.     at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
    32.     ... 1 more
    33. Exception running application com.runemate.boot.Boot
    34.  
     
  8. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,327
    Likes Received:
    755
    @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.
     
  9. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,521
    Likes Received:
    1,039
    No idea but I can research later. @Exia distro and desktop environment please.


    Sent from my iPhone using Tapatalk
     
  10. Exia

    Joined:
    Nov 3, 2013
    Messages:
    597
    Likes Received:
    244
    ubuntu 14.04 stock with unity
     
  11. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,521
    Likes Received:
    1,039
  12. Cloud

    Cloud The Developer

    Joined:
    Jul 28, 2013
    Messages:
    2,327
    Likes Received:
    755
    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.
    --- Double Post Merged, Feb 12, 2016 ---
    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.
     
  13. Exia

    Joined:
    Nov 3, 2013
    Messages:
    597
    Likes Received:
    244
    Not using a VM at all, it's natively installed.

    Will do when I get home.
     
  14. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,879
    Likes Received:
    820
    The icon appears in Arch w/ KDE but it has no menu.
     
  15. Exia

    Joined:
    Nov 3, 2013
    Messages:
    597
    Likes Received:
    244
    Even when running as root, I get:
    Code (Text):
    1. java.io.IOException: Cannot run program "/home/john2/RuneMate/cache/window_info.sh": error=13, Permission denied
    2.     at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    3.     at nul.IIiIIIiIiiii.enum(qsb:79)
    4.     at nul.iiIIiiiIiiIi.enum(eh:23)
    5.     at nul.iiIIiiiIiiIi.enum(eh:168)
    6.     at nul.iiIIiiiIiiIi.enum(eh:50)
    7.     at nul.IIiIiIiIIIII.enum(nic:135)
    8.     at nul.iiIIIIiIiIiI.initialize(gvb:205)
    9.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    10.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    11.     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    12.     at nul.IIiIIiiIiiII.enum(um:177)
    13.     at nul.IIiIIiiIiiII.enum(um:47)
    14.     at nul.iiIIIIiIiIiI.<init>(gvb:211)
    15.     at nul.iiIIIIiIiIiI.<init>(gvb:201)
    16.     at nul.iIiiiIiiiIIi.enum(bpb:168)
    17.     at nul.iIiIIIiIiIII.enum(vsb:15491)
    18.     at nul.iIiIIIiIiIII.call(vsb:10207)
    19.     at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    20.     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    21.     at java.lang.Thread.run(Thread.java:745)
    22. Caused by: java.io.IOException: error=13, Permission denied
    23.     at java.lang.UNIXProcess.forkAndExec(Native Method)
    24.     at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    25.     at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    26.     at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    27.     ... 19 more
    28. java.io.IOException: Cannot run program "/home/john2/RuneMate/cache/window_info.sh": error=13, Permission denied
    29.     at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    30.     at nul.IIiIIIiIiiii.enum(qsb:79)
    31.     at nul.iiIIiiiIiiIi.enum(eh:23)
    32.     at nul.iiIIiiiIiiIi.enum(eh:168)
    33.     at nul.iiIIiiiIiiIi.enum(eh:50)
    34.     at nul.IIiIiIiIIIII.enum(nic:135)
    35.     at nul.iiIIIIiIiIiI.initialize(gvb:205)
    36.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    37.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    38.     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
    39.     at nul.IIiIIiiIiiII.enum(um:177)
    40.     at nul.IIiIIiiIiiII.enum(um:47)
    41.     at nul.iiIIIIiIiIiI.<init>(gvb:211)
    42.     at nul.iiIIIIiIiIiI.<init>(gvb:201)
    43.     at nul.iIiiiIiiiIIi.enum(bpb:168)
    44.     at nul.iIiIIIiIiIII.enum(vsb:15491)
    45.     at nul.iIiIIIiIiIII.call(vsb:10207)
    46.     at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
    47.     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    48.     at java.lang.Thread.run(Thread.java:745)
    49. Caused by: java.io.IOException: error=13, Permission denied
    50.     at java.lang.UNIXProcess.forkAndExec(Native Method)
    51.     at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    52.     at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    53.     at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    54.     ... 19 more
    Still cannot find any instances either.
     
  16. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,521
    Likes Received:
    1,039
    Try navigating to "/home/john2/RuneMate/cache/window_info.sh" and running superuser.
     
  17. Exia

    Joined:
    Nov 3, 2013
    Messages:
    597
    Likes Received:
    244
    Can we resolve this thread since Linux is now officially supported?
     

Share This Page

Loading...