-
Notifications
You must be signed in to change notification settings - Fork 865
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 22 crashes on MAC (14.5) #7560
Comments
please add JDK |
As mentioned in the linked discussion, i'm not able to give you a crash dump or log becaus nothing is written... Product Version: Apache NetBeans IDE 22 System: Mac OS X version 14.5 running on aarch64; UTF-8; de_DE (nb) |
the JVM should leave a crash dump on the same drive the process was started from (or home folder). I am not sure if mac behaves differently, but there should be a crash file somewhere. Running NB from shell might also reveal a few additional log lines. FlatLAF had a mac specific regression in 3.4 but we still use 3.3 so that can't be the cause JFormDesigner/FlatLaf#826 To exclude that this is specific to homebrew packages, please check if this also happens with the community installers which bundle a JDK runtime which is only visible to NB. |
Hi @mbien, thank you very much! It is probably the case... I see a lot of component peers opened when process crash (only crash GUI, java process stay alive and need to be killed manually). also, macOS topbar was corrupted every time then NetBeans crash: And only returns to normal after restart... I will change LAF and report here if it stops to crash (to me it is a daily routine). There is someway to manually update FlatLAF in my NetBeans 22? |
@mbien I tried your suggestion and switched preferred Look & Fell from FlatLaf-Dark to Mac Os-X. |
wouldn't bother to try to to patch a NB release, I opened an update PR #7565 here is a dev buld: https://github.com/apache/netbeans/actions/runs/9911652425/artifacts/1696152788 (expires in 7 days) |
@mbien Sadly FlatLaf 3.4.1 appears to crash too... I just downloaded flatLaf demo (3.4.1) and in some seconds, with a frozen popup on theme list, WindowServer was crashed (like NetBeans 22 with FlatLaf 3.3 does). WindowServer log:
|
@dyorgio interesting. Thats on latest zulu 21 and Sonoma 14.5 (#6647 (comment))? cc @DevCharly |
@dyorgio if you're testing the FlatLaf demo, could you try disabling the native library via the system property and see if that's affecting this? https://www.formdev.com/flatlaf/system-properties/#:~:text=menuBarEmbedded%20.&text=Specifies%20whether%20FlatLaf%20native%20library,depend%20on%20the%20native%20library. |
@mbien yes, I could reproduce it every time in few seconds using latest zulu 21 and Sonoma 14.5 And stops if I disable native with this way: java -Dflatlaf.useNativeLibrary=false -jar flatlaf-demo-3.4.1.jar |
Thanks @dyorgio - good to know! Please find the location of the NetBeans userdir (see About window if you're unsure). Find Does this stop the crash from happening? |
@neilcsmith-net Yes, no more crashes... How I said in another issue, to me appears to be something relative with popups and menus. Without native library popups now are squares, with native it was rounded, |
Just updated a mac mini M1 to macOS 14.5 to test this issue. I wonder what's different on my Mac 😕
@dyorgio if I understand you correctly, the FlatLaf Demo starts normally, If the Java process crashes, there should be a file
Understood. At the moment I've no idea what's wrong... |
…NativeMacLibrary_setWindowRoundedBorder() for apache/netbeans#7560
@dyorgio @ChMThiel I've added some NSLog() calls to the code that sets the rounded popup border in FlatLaf. Then move mouse over themes list (on right side) and wait until a tooltip is shown. |
@DevCharly
|
Thanks. Log shows that FlatLaf native code to enable rounded popup corners is executed successfully. And there is no |
no logfiles... seems a hard crash of OS, mouse, keyboard and screen freezes, no interaction possible...after a while system restarts |
😮 And you used a OpenJDK installed by Homebrew, right? I'm not familiar with Homebrew, but as I understand the OpenJDK Formula, it downloads the OpenJDK source code and compiles it locally, using currently installed Xcode, right? Have you tried a binary JDK? |
Same logs here:
Im my case system not crash, but frozen by 15-20 seconds... @DevCharly hs_err_pid*.log is not present because java process don't terminate, it still alive and needs to be killed manually. |
@dyorgio ok, that's good. There is a JDK tool to create thread dumps of running Java processes. |
Maybe an important detail: My MacBook is a M3 Pro model (more gpu cores). Process was with 1GB of RAM consumption. Last App logs:
JStack:
|
@dyorgio thank's for the dump. I'll have a look...
That's too much. @dyorgio how much memory is used after startup? And does it increase when tooltips are shown? |
@DevCharly No, it only increases when process crashes WindowServer. |
I updated #7565 to bundle FlatLaf 3.5 which @DevCharly just released. It disables the rounded popups on mac. dev build for testing purposes is here: https://github.com/apache/netbeans/actions/runs/9965729754/artifacts/1708622944 |
Short update from my side: after spending more than a day in trying to reproduce the problem, without success, I gave up and disabled rounded popup border for macOS 14.4+ in FlatLaf 3.5. Older macOS versions still use it. Hope that a solution can be found in the future... |
@DevCharly I was just comparing your native code to the Jetbrains implementation, and without really understanding the jni/cocoa specifics I was wondering why the
|
@remcopoelstra it is just a macro. Before compilation it is replaced by a piece of code (catch exception in this case) |
@remcopoelstra The resulting code looks like this: ...
return TRUE;
} @catch( NSException *ex ) {
NSLog( @"Exception: ... );
}
return FALSE; |
@dyorgio @DevCharly I understand now, sorry about that. I am also not able to reproduce this on my MacOS systems so I was curious about the code. |
please someone verify that updating to flatlaf 3.5 is resolving this issue: #7560 (comment) |
Apache NetBeans version
Apache NetBeans 22
What happened
see discussion in #6647
Language / Project Type / NetBeans Component
No response
How to reproduce
#6647
Did this work correctly in an earlier version?
No / Don't know
Operating System
Mac Sonoma 14.5
JDK
22.0.1
Apache NetBeans packaging
Other
Anything else
No response
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: