-
Notifications
You must be signed in to change notification settings - Fork 309
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
VisualVM crashes on macOS 14.0 Sonoma at launch (due to no longer supported Carbon menu APIs) #528
Comments
It does not look to me like VisualVM bug. |
Looks like it could also be a bug in Apple's |
FYI: I am able to run VisualVM 2.1.7 on official build of OpenJDK 21 just fine on macOS 14.0.
|
Hm, that's strange, perhaps the issue only occurs on Apple Silicon/arm64 Macs? |
I have the same problem:
$ sw_vers
ProductName: macOS
ProductVersion: 14.0
BuildVersion: 23A344
$ uname -a
Darwin dev 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:34 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T8103 arm64
$ java -version
openjdk version "21" 2023-09-19
OpenJDK Runtime Environment Homebrew (build 21)
OpenJDK 64-Bit Server VM Homebrew (build 21, mixed mode, sharing)
$ /usr/libexec/PlistBuddy -c "Print:CFBundleName" -c "Print:CFBundleVersion" /Applications/VisualVM.app/Contents/Info.plist
VisualVM
2.1.7 |
I got this error running jmeter and was able to resolve it by updating Java. You may also need to set the JAVA_HOME variable, I created a temporary session for jmeter (you'll need to change this to the application you're using): export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) |
I had the same error. The VisualVM launch script selects the Homebrew OpenJDK.
I workaround the problem by using Temurin 8. |
Temurin 17 and 21 are also fine (installed through Homebrew Cask). But not the normal Homebrew |
So this could be a Homebrew |
So it looks like the Homebrew JDK is incorrectly built. |
It is now clear that this not VisualVM issue. Closing. |
In case anyone else is running into this issue with other applications (It was affecting NetBeans for me), I found the solution in this issue on a different project: apache/jmeter#6083. Ultimately the solution was to use a different distribution of OpenJDK. Amazon Corretto seems to work (at least for NetBeans). |
That's definitely not the ultimate solution. I just tried the Amazon JDK and it does not fix the crash for me (it's a crash in my macOS app). |
I don't think this is simply for Homebrew since I also had this issue in MCreator (A Java-based minecraft mod creator) |
You're awesome @caizixian! ❤️ You've saved my time, i've spending 2 days for this problem. |
Describe the bug
VisualVM crashes on macOS 14.0 Sonoma.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To not crash.
Crash log
Full crash log: visualvm-sonoma-crash.txt
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: