-
Notifications
You must be signed in to change notification settings - Fork 166
Crash in Embedded WebKit on macOS 15.4 (ARM64) with Eclipse 4.35.0 #1978
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
Comments
Same for me also on Eclipse 2024-12 (4.34) and 2024-06 (4.32):
Steps to reproduce for me are:
Perhaps a regression introduced in macOS 15.4. Unfortunately this makes Eclipse on Mac unusable when using Webkit in any way. |
Switch zu external Browser (General->Webbrowser) and save often. Then you can work with some crashes. |
This won't help. Webkit is used internally for the Javadoc. Eclipse is crashing for me very minute or so just by working in a Java editor. |
Same problem for me.
|
Different way to reproduce
|
I think a key thing here is to ensure that the vertical scroll bar appears in the Javadoc hover and the Javadoc View gets updated. The crash log suggests this may have something to do with it:
|
Temporary fix, so it should no longer crash from the JavaDoc: disable the hover tooltips (Preferences -> Java -> Editor -> Hovers -> Untick Combined Hover) |
Seems to be the only course of action. |
I guess we need to figure out if the crash is only happening with the Javadoc hover popups or in other uses of WebKit on Mac. I'm testing a simple Browser component snippet and can't make it crash.
|
It might be worth opening an issue at WebKit. But I don't know if they might throw it back to SWT/JDT UI/another component here. As this only seems to be triggered when using Javadoc hover popups it might be something that could be worked around in that component. Could someone advise on best course of action? |
Thanks! Perhaps you could add a link to this report there? |
Yes, it is now. Thanks @jschmied |
Our primary macOS team at SAP has filed an incident with Apple regarding this issue. We received feedback from them that they are currently working on a solution. Here’s a quote from the incident that I obtained from my colleague:
Hopefully, the version 15.4.1 (or however it will be called) will be released as soon as possible. |
The bug at https://bugs.webkit.org/show_bug.cgi?id=290985 has been changed to a "Security" issue. This means that it's not accessible to anyone not on the cc list. I'm on the cc list of the bug and the last response was a pull request from an Apple engineer on 4 April. |
Thanks for the update - please keep us informed. |
Workaround is to switch off Java->Editors->Hover-> "combined hover" until we get a bugfix |
Thanks for that - most helpful.
… On 9 Apr 2025, at 17:10, Jürgen Schmied ***@***.***> wrote:
jschmied
left a comment
(eclipse-platform/eclipse.platform.swt#1978)
Workaround is to switch off Java->Editors->Hover-> "combined hover" until we get a bugfix
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
<#1978 (comment)> <https://github.com/notifications/unsubscribe-auth/AE4Z2TRNA5A564AZ7AU2AOL2YVA6BAVCNFSM6AAAAAB2JAOYXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJQGIZDSMJTGU>
jschmied
left a comment
(eclipse-platform/eclipse.platform.swt#1978)
<#1978 (comment)>
Workaround is to switch off Java->Editors->Hover-> "combined hover" until we get a bugfix
—
Reply to this email directly, view it on GitHub <#1978 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AE4Z2TRNA5A564AZ7AU2AOL2YVA6BAVCNFSM6AAAAAB2JAOYXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOJQGIZDSMJTGU>.
You are receiving this because you are subscribed to this thread.
|
I'm seeing the same (or very similar) crash when editing TypeScript (Wild Web Developer with generic code editor). Unfortunately, I can't work out exactly what is causing the crash, but it is every few 10s of seconds :-(. The stack trace is similar to above so hopefully the same cause. It only started with the update to Sequoia 15.4. |
I'm having this issue and, while otherwise sporadic, I can trigger it with 100% reproducibility when clicking "Open description of rule" in the hover panel of a Sonarlint/SonarQube issue (in both JavaScript or Java code) The description pane opens momentarily with content partially rendered before Eclipse closes. Nothing is registered in the Eclipse error log |
If you navigate to the location of the |
Gotcha - thanks.
|
Just a heads up that the crash is still happening in macOS Sequoia 15.4.1 released today. |
Yes, we received confirmation from Apple that 15.4.1 does not include any WebKit fixes. Similarly, 15.5 beta 1 or 2 also lacks a fix. Apple appears to anticipate a fix in the next beta or the one after that, unless there are any unforeseen circumstances. @Phillipus: Since you can still access the WebKit bug - Can you see/observe any information about the root cause of the issue? For our tooling, the workaround ‘disable combined hover’ is not applicable, and we are actively seeking an alternative solution. |
Last change on webkit bug on 2025-04-04, no further information. |
As @jschmied says, the last update was on 2025-04-04 with a pull request from an Apple Engineer. Other than that and an assigned internal Radar number there's no commentary on the issue. |
Same for me. It's as if setting it can't be undone. I also tried deleting the Eclipse |
Thanks to all for the report and diagnosis above. I've had exactly the same problem following an upgrade to Sequoia 15.4.1 with an older version of the IDE: Eclipse IDE for Java Developers (includes Incubating components) (no such problem with any version of MacOS prior to this). The explanation and work-around given above work for me - thanks so much for this: I would have been utterly lost without it. |
Edit: After a few days, it did crash again, so I reapplied the |
Per Apple this issue should be fixed in macOS 15.5, which just went RC and should release next week. Please test! |
For my old and trusty Eclipse (2021-09 - 4.21.0):
|
I had to use
So it depends on the Eclipse package type you have selected for installation. The macOS error report shows it too (in addition to the Info.plist file mentioned above)
|
I discovered another option that works to stop the crash:
or
If this key is present in your This explains why I was unable to re-create the crash when I deleted my So the crash is triggered by the combination of the following in
So, yet another way to workaround the crash is to simply delete the |
Actually, don't do that as it's set back to the value of I don't know if there's something in the native Mac SWT code that sets this key but I think it should not be set to |
Not fixed in macOS 15.5 released today. Still crashes. (Workaround still works). |
Let's be clear about this. Eclipse can crash when using hover tooltips and the JavaDoc view if
As the Here's what I've done now since macOS 15.5:
The |
Interesting findings, @Phillipus! Until now, I couldn’t reproduce the issue on my machine(s). However, in all Eclipse .plist files, the After manually adding both keys with the value Unfortunately, this issue also occurs on macOS 15.5. So, it seems that the initial issue hasn’t been resolved. |
You only need to add this one key to get it to crash:
Before macOS 15.5 I observed it being created when I opened an Open File dialog in Eclipse, and then quit Eclipse (I think that's when the
|
https://nvd.nist.gov/vuln/detail/CVE-2025-31257 should be fixed in 18.5 |
I think you mean 15.5. But it isn't fixed in macOS 15.5 if Eclipse's
See #1978 (comment) I added a comment to this effect in the WebKit Bugzilla. |
And to prove that this is absolutely reproducible I did this:
And then did some JavaDoc hovering and then opened the JavaDoc View in Eclipse for the attached crash... |
on 15.5 I deleted ~/Library/Preferences/.plist file
Now it is crashing all the time. So I will have to delete .plist again.. |
You don't have to do that. The original workaround is still valid:
|
LOL dude, THANK YOU SO MUCH! I was going through the EXACT. SAME. BULLSHIT. issue. I swear to god, I was THIS close to yeeting my damn computer out the window. But then I saw your comment and ran this magical incantation: defaults write WebKitCacheModelPreferenceKey -int 0 AND HOLY CRAP, IT ACTUALLY WORKED?! Been smooth sailing ever since. You literally saved my computer (and probably my hands from being broken from smashing it). Seriously, you're a legend. Thanks a million! 😂👍 |
Please note that The credit for this discovery goes to @filipnavara in his comment here. |
What is the effective difference between the temporary fix suggested by @ivy-lli (Apr 2nd):
versus @filipnavara suggestion (Apr 24th):
So far I have just tried the former -- and no crashes! |
You won't see any JavaDoc hover tooltips at all with that (unless with a modifier key). |
Thanks! Does it matter which folder one needs to execute the
command? |
No. The command adds that key and value to the |
Well, I ran the defaults ... command and checked the org.eclipse.platform.ide.plist file and WebKitCacheModelPreferenceKey = 0;. In addition, I reset the Combined Hover check mark, figuring that I didn't need it to be unset. I'm beginning to think that unsetting the Combined Hover may be more reliable than the defaults... command. |
Please read the whole thread. It is important that you find the correct ID for your eclipse application, otherwise it will not work. #1978 (comment) The workaround about disabling the JavaDoc hover is only an option to at least make Eclipse work again. However, if you write a lot of Java code, the dev experience is very bad with it. |
@leerho - if you read the thread you'll see that the key that works is WebKitUsesPageCachePreferenceKey not WebKitCacheModelPreferenceKey:
See #1978 (comment) and #1978 (comment) |
@ivy-lli , @Phillipus |
@Phillipus Yet the recommended fix refers to the key: WebKitUsesPageCachePreferenceKey At the moment my org.eclipse.platform.ide.plist file contains:
Do I need to delete and/or modify the WebKitCacheModelPreferenceKey ? |
No. You can delete it if you want but it will eventually be added again (when running Eclipse). |
My Eclipse is still crashing, even with my org.eclipse.platform.ide.plist file containing: WebKitCacheModelPreferenceKey = 1; In the entire ~/Library/Preferences/ folder there must be over 200 plist files and only two of them start with org.eclipse... I am running on: MacOS Sequoia 15.5, MacBook M4 Pro |
eclipsecrash.txt
System Info:
OS: macOS 15.4 (Sonoma)
Architecture: Apple Silicon (ARM64)
JVM: Eclipse OpenJ9 VM 21.0.6.0 (build openj9-0.49.0, JRE 21 Mac OS X aarch64-64-Bit 20250121_371 (JIT enabled, AOT enabled)
Eclipse: 4.35.0 (Build ID: 4.35.0.20250306-0811)
SWT Library: libswt-pi-cocoa-4968r13.jnilib
System Integrity Protection: Enabled
Crash Summary:
The Eclipse application crashes with a SIGABRT due to EXC_BAD_ACCESS (null pointer dereference) in the main UI thread.
The crash originates in the WebKit engine via the SWT Cocoa integration, specifically in layout management:
Steps to Reproduce:
Launch Eclipse 4.35.0 on macOS 15.4 using an ARM64 JDK.
Interact with the editor window (key, mouse)
Eclipse abruptly terminates with a crash report indicating SIGABRT and JVM abort. (about every 20 min)
Crash Report Snippet:
The text was updated successfully, but these errors were encountered: