-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Random segmentation fault errors #20072
Comments
Thanks for the report @oscarotero, I do believe this is actually caused by N-API integration. We'll try to look into fixing this. Any chance you could provide a boiled down reproduction? |
After removing the Deno's cache folder, the segmentation fault error has gone but the Deno panick error is still there. To reproduce it, clone the following repo, go to The panick error is related with the following line https://github.com/lumeland/lume.land/blob/lightningcss/_includes/styles/reset.css#L1. After removing it, it works fine. |
I don't know if this is related, but running the tests, sometimes
If I run again the tests, they run complete without issues. |
@oscarotero I believe this is purely a race condition in our implementation of "thread safe functions" for Node-API. We wanted to rewrite them for some time now. We'll try to look into the problem next week. |
Great, thanks! |
@oscarotero we found the culprit and should fix it shortly, however with your reproduction we are always getting |
@bartlomieju Great! Thank you! |
@oscarotero that's strange, since the PR in question is #20324 and it hasn't landed yet. Anyway, I'll land it in the coming days. Let me know if you encounter any more problems. |
Okay, the panick error still happens randomly (even on canary). |
Hi again. It happens randomly, once every 3-4 builds. I don't know if it's an issue from Deno or Lightningcss (It doesn't happen with postcss). I've created this branch https://github.com/lumeland/lume.land/tree/lightningcss if you want to take a look. |
Hi again. |
More errors. |
I'm having a similar problem with |
napi_threadsafe_function was rewritten in #24101 and shouldn't hit this case anymore. Let us know if you run into additional issues. |
For a long time I'm getting random errors running Lightningcss plugin on Lume:
The Lightningcss library is run via napi and for some weird reason, Deno panick when I add some specific
@import
rules in my CSS file.Sorry, I cannot be more specific because it doesn't always happen, so I wasn't able to reproduce this error consistently. I think it didn't happen with the wasm version of Lightningcss, so I suspect it's something related with napi.
The text was updated successfully, but these errors were encountered: