oracle / visualvm

VisualVM is an All-in-One Java Troubleshooting Tool
https://visualvm.github.io/
Other
2.79k stars 297 forks source link

StackOverflowError when starting #583

Closed guenhter closed 6 days ago

guenhter commented 1 week ago

Describe the bug After installing visualvm on ubuntu 24.04, running it caused a StackOverflowError

To Reproduce Steps to reproduce the behavior:

  1. Install VisualVM via sudo apt install visualvm
  2. run visualvm

Expected behavior VisualVM starts up.

VisualVM log

> visualvm
Error occurred during initialization of VM
java.lang.StackOverflowError
        at java.security.BasicPermission.init(java.base@11.0.23/BasicPermission.java:107)
        at java.security.BasicPermission.<init>(java.base@11.0.23/BasicPermission.java:130)
        at java.lang.RuntimePermission.<init>(java.base@11.0.23/RuntimePermission.java:420)
        at java.lang.System.setSecurityManager0(java.base@11.0.23/System.java:342)
        at java.lang.System.setSecurityManager(java.base@11.0.23/System.java:333)
        at allow.uninstall(Unknown Source)
        at allow.checkPermission(Unknown Source)
        at java.lang.System.setSecurityManager0(java.base@11.0.23/System.java:342)
        at java.lang.System.setSecurityManager(java.base@11.0.23/System.java:333)
        at allow.uninstall(Unknown Source)
        at allow.checkPermission(Unknown Source)
        at java.lang.System.setSecurityManager0(java.base@11.0.23/System.java:342)
        at java.lang.System.setSecurityManager(java.base@11.0.23/System.java:333)
        at allow.uninstall(Unknown Source)
        at allow.checkPermission(Unknown Source)
        at java.lang.System.setSecurityManager0(java.base@11.0.23/System.java:342)
        at java.lang.System.setSecurityManager(java.base@11.0.23/System.java:333)
        at allow.uninstall(Unknown Source)
        at allow.checkPermission(Unknown Source)
        at java.lang.System.setSecurityManager0(java.base@11.0.23/System.java:342)
        at java.lang.System.setSecurityManager(java.base@11.0.23/System.java:333)
        at allow.uninstall(Unknown Source)
        at allow.checkPermission(Unknown Source)
        at java.lang.System.setSecurityManager0(java.base@11.0.23/System.java:342)
        at java.lang.System.setSecurityManager(java.base@11.0.23/System.java:333)
        at allow.uninstall(Unknown Source)
        ...

Desktop (please complete the following information):

thurka commented 6 days ago

Can you, please, try official VisualVM 2.1.8 build from https://visualvm.github.io/download.html ? Unfortunately we have no control over visualvm builds installed via apt.

guenhter commented 6 days ago

Very interesting. This works. Thx.

thurka commented 6 days ago

I am glad it worked. I guess that you should be able to report this issue to ubuntu.