-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
[pulsar-next] Pulsar sometimes crashes on reload #1215
Comments
OK, I dipped my toes into this one today by updating my dev environment on Windows and running I'm able to reproduce the crash on the second window reload (typically), so the next step is finding the crash dump data for analysis. This article looks great, except that it says my crash dumps will be in a location where they are not. When I get more time to work on this, I'll hopefully get as far as figuring out where they're being stored. (If they're being stored.) So far I can ascertain it's not in |
Amazingly, I think this already got fixed because of work I did ~6 months ago. To figure out what was crashing on Windows, I dropped in the Sentry integration I'd used successfully on macOS, then reloaded until I got a crash; I think it even happened on the first try. I was able to ascertain that that crash was happening somewhere inside My understanding is that, when a window “reloads” in Electron, the teardown of one page overlaps with the setup of the next. Each page load is a separate context in the same process, much like worker threads that use the same library. (This is exactly why modules need to be context-aware to be used in an Electron renderer process — native code will be loaded once but will be called from multiple contexts and cannot share state.) But context-awareness wasn't the problem here. Imagine that each page is the equivalent of a Node worker thread. In this case, what tripped up Luckily, N-API has envisioned this situation. I contributed this fix to Why wasn't Pulsar already using this fix? Because it's also a bug that Pulsar tries to create a new file watcher in the midst of a terminating environment, and I thought I'd been able to prevent the crash by being more thoughtful about file-watcher cleanup — hence I didn't have an immediate need to update to the fixed After installing the latest @Purple-Fox-Coder, another rolling release binary should be available soon; let me know if it solves the issue for you. If so, I can close this ticket. |
(The fix is in cf06e8e.) |
Thanks in advance for your bug report!
What happened?
Pulsar version
1.124.2025020900-next
Which OS does this happen on?
🪟 Windows
OS details
Windows 11
Which CPU architecture are you running this on?
x86_64/AMD64
What steps are needed to reproduce this?
Additional Information:
No response
The text was updated successfully, but these errors were encountered: