-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Segmentation fault (core dumped) #1596
Comments
@oliverfindl Do you have any svg files examples? |
Hello @TrySound, I also tried my project on different PC, but got same error.
Here are some logs. Terminal output:
Stack trace from debug log:
There are no mentions about SVGO, but downgrading to v2.6.1 solves this issue for me. Thanks. |
Try to pass |
Hello @TrySound, I got it somehow fixed on both my PCs. I tried: First PC:
Second PC:
I have no idea where this issue was coming from. I purged Thanks. |
Thanks. Looks like using dynamic import for config loading is buggy. This looks related nodejs/node#35889 |
Closing this issue as resolved. Thanks. |
Not quite resolved. We just found workaround. |
Hello @TrySound, I was looking into commit 7111c52, responsible for ESM support and you could preserve previous (working) approach in case of Lines 16 to 40 in 7601b17
E.g.: let config;
if (path.extname(configFile) === ".cjs") {
config = require(configFile);
} else {
// try ... catch
} This might solve this issue at least for non-ESM users. Unfortunately, its not a solution, just a workaround. Thanks. |
Hello @TrySound, I encountered this issue again. It took up 4 cycles of renaming Thanks. |
Ref #1596 At the moment dynamic import may randomly fail with segfault. To workaround this for some users .cjs extension is loaded exclusively with require.
Ref #1596 At the moment dynamic import may randomly fail with segfault. To workaround this for some users .cjs extension is loaded exclusively with require.
Thanks. |
Does it work for you? |
Tried to build my project a few times without any issue. If I will encounter this issue again, I will report it here. Thanks. |
Hi. |
svg parse the config file throw the exception ` svgo.config.cjs |
Describe the bug
I upgraded SVGO from version 2.3.1 to 2.7.0 and got error
Segmentation fault (core dumped)
. I tried multiple versions of SVGO and I'm encountering this issue only in version 2.7.0. Version 2.6.1 works fine. During upgrade process I changed mysvgo.config.js
from:To:
To Reproduce
Steps to reproduce the behavior:
I'm encountering this issue using svgo-loader for webpack. My webpack module rule:
Expected behavior
No errors.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: