-
Notifications
You must be signed in to change notification settings - Fork 867
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
NetBeans Crashes with MacOS Sonoma 14.0/1 #6647
Comments
comments on the linked issues indicate that this seems to be JDK distribution dependent. What JDK are you using and have you tried a different vendor? You can also attach the log file which has environment information in it. the NB 20 release candidates use the latest version of FlatLaf: #6581, although I don't remember reading anything about the menu system in the changelog, wouldn't hurt to give it a try. edit: does NetBeans start if you switch to a different look and feel?
|
@mbien You were correct. I ended up deleting the openjdk@21 version installed by HomeBrew and manually installed Amazon Corretto 21 and Netbeans now starts. Many thanks! |
Just a heads up: Not exactly sure, whether this actually is the same problem, since your system spec says Sonoma 14.1, not Sonoma 14.4 / 14.4.1, but there seems to be a problem with the latest Sonoma releases, and all JDKs: The Blog says, that this should be fixed with 14.4.1 and OpenJDK >= 23 PRE, (They couldn't reproduce), but I'm running Netbeans 21 on Open JDK 22, and am still seeing a similar issue, that smells like it. Particularly, after an extended time of using NetBeans, the machine locks up completely, and reboots to the login screen. I've come to the conclusion, that part of the problem is caused by the foreign management software used for the security lockdown of my machine - as a result, the JVM started by the MacOS launcher isn't able to write the JVM dumps for the lack of privileges - which currently limits my options to provide more insight. Another cause might be, that I'm running with Preview Features enabled, because I tinker with the Java String Templates. If somebody has a trick up his sleeves to circumvent this dump problem, or is able to report 'works for me'/'have the same problem', this might help to determine, if this is indeed the same problem. |
I am seeing something similar with:
Netbeans 19 and 20 are fine. Saw the same issue with netbeans 21 |
@philip-lourandos-sgits So I'm not mistaken, the problem is real, and not an 'only me' one. I'm still a bit unsure, whether we are looking at exactly the same problem as the original poster, because he, at least, had a heapdump, and he crashed immediately. Some quick questions:
|
sdkman for the JDK. Downloaded zip file for netbeans from apache
Not as yet. |
Can you replicate with the pkg installer, or ideally the community pkg installer with internal JDK? Those are correctly deep signed and notarized, including the bundled JDK in the community installer. They also are app bundles with a swift launcher. Be good to know if this is specific to unsigned bundles, unsigned native binaries, etc. |
@neilcsmith-net Sure can do. In the meantime, you might take a look at the log snippets I attached. Some context:
in the hopes to have a potential heap dump in a place where I know that I have write permissions. I also called the shell script 'netbeans' directly from a wrapper, redirecting the output into a file sysout.txt.
logdump_2024-06-05-00-30.zip P.S: Maybe we should move this to a separate, new Issue. As it seems to be different problem |
Using the pkg file from netbeans.apache.org yielded the same result. Using the homebrew version appears to be stable |
Did as suggested; removed the whole NB installation, and installed from the pkg. For about a week, it looked like it could be exactly the other way around for me, but no. The Problem seems to be elusive. And again, with the same message on sysout/err:
|
Same problem here. |
Same problem here: System: Mac OS X version 14.5 running on aarch64; UTF-8; de_DE (nb) Pleas open a new issue...it seems there are a lot of people having that problem |
Why ask others to do what you can do yourself?? Please open a new issue with the information required to do so. Also please check if you can replicate with the community installers as that's using a known JDK signed along with the IDE. |
@neilcsmith-net you asked the same question to @gtsh and he told you that it makes no difference, how he installed netbeans. And he already suggested to move this to a new issue... |
@ChMThiel actually, it wasn't the same question, and he didn't check this (at least in the comments and logs above). Let's move this over to the new issue. Thanks for opening. |
Apache NetBeans version
Apache NetBeans 19
What happened
NetBeans immediately crashes on M1 Mac running Sonoma 14.0/1:
Translated Report (Full Report Below)
Process: java [20838]
Path: /usr/local/Cellar/openjdk/21.0.1/libexec/openjdk.jdk/Contents/Home/bin/java
Identifier: java
Version: ???
Code Type: X86-64 (Native)
Parent Process: bash [20603]
Responsible: netbeans [20602]
User ID: 506
Date/Time: 2023-10-31 09:33:23.5979 -0700
OS Version: macOS 14.1 (23B74)
Report Version: 12
Bridge OS Version: 8.1 (21P1069)
Anonymous UUID: 2752008D-E126-8BD7-F59C-84663233EF02
Time Awake Since Boot: 7700 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000000000002c
Exception Codes: 0x0000000000000001, 0x000000000000002c
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: java [20838]
VM Region Info: 0x2c is not in any region. Bytes before following region: 140737487110100
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
shared memory 7fffffed0000-7fffffed1000 [ 4K] r-x/r-x SM=SHM
Application Specific Information:
References to Carbon menus are disallowed with AppKit menu system (see rdar://101002625). Use instances of NSMenu and NSMenuItem directly instead.
How to reproduce
Upgrade M1 MacBook to Sonoma 14.0 or 14.1.
Launch NetBeans
Did this work correctly in an earlier version?
Apache NetBeans 19
Operating System
MacOS Sonoma 14.0 or 14.1
JDK
openjdk version "21.0.1" 2023-10-17
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
Similar error reported with JMeter & VisualVM:
apache/jmeter#6083
oracle/visualvm#528
Are you willing to submit a pull request?
Yes
The text was updated successfully, but these errors were encountered: