Open ivyjsgit opened 1 month ago
I was looking into this issue this morning and from what I can tell it is related to this line.
This issue doesn’t seem to be producible while debugging if that is relevant.
Hmm. I recently added a bunch of weak refs into the AppKit chrome to avoid leaking tabs when closing them, as we had a bunch of Arc magic causing all of our callbacks to hold a strong ref to the web view when creating a tab.
We also no longer strongly hold onto the "current tab".
cc @trflynn89
A possible solution would be to mark this property strong instead of weak. https://github.com/LadybirdBrowser/ladybird/blob/98e1ae49f5288c9f25ad018b13b106369af8f75c/Ladybird/AppKit/UI/LadybirdWebView.mm#L62 But I haven't dealt with ARC for a while so I am not sure if would affect the changes made in https://github.com/LadybirdBrowser/ladybird/commit/598144d09c484c6e8a9c88eb1b885ada3ff6203d.
I'm currently encountering an issue where Ladybird will crash with the following error message
I am on macOS 14.2 on ARM.
To reproduce this crash, do these steps:
youtube.com
wikipedia.org
Expected behavior:
The app does not crash when opening a new tab during step 4
Actual behavior:
The app crashes
Video evidence
https://github.com/LadybirdBrowser/ladybird/assets/34287279/e75aef97-6f2f-4d09-8517-21e88bc40c7c