-
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #46
Comments
@adamstambouli Are you using one of the binaries from releases? |
@blenderskool oh gotcha! Yes I'm happy to contribute although I'm not familiar with Rust. Do you have any advice/tips on which changes I should be making? |
I don't think it should require any rust code changes. Try the following steps:
|
So the good news is that building the binary runs successfully on Apple Silicon. I used: cargo build --release --target aarch64-apple-darwin Bad news is that the segfault still there: ./target/aarch64-apple-darwin/release/pigmnts ~/Downloads/test.png Creating a palette of 5 colors from /Users/xxx/Downloads/test.png
⠹
[1] 20568 segmentation fault ./target/aarch64-apple-darwin/release/pigmnts ~/Downloads/test.png It's possible this is an Apple Silicon issue since Rust doesn't fully support it as a target: rust-lang/rust#73908 |
Hmm, could you share the image file you are using? I'll test it on my amd64 machine to see if it's an issue with our code. |
Yeah no problem, here it is. |
@adamstambouli Sorry, I was asking for the the image file you were using. I'll see if there's some edge case that went unhandled with the image you had used. |
oh 😆 here are a few sample images that cause segfaults: pigmnts-sample-images.zip pigmnts arsenal-away-23-24.webp
Creating a palette of 5 colors from arsenal-away-23-24.webp
⠹
[1] 38020 segmentation fault pigmnts arsenal-away-23-24.webp pigmnts united-third-23-24.png
Creating a palette of 5 colors from united-third-23-24.png
⠹
[1] 38063 segmentation fault pigmnts united-third-23-24.png pigmnts en.wikipedia.org_wiki_Liverpool_F.C..png
Creating a palette of 5 colors from en.wikipedia.org_wiki_Liverpool_F.C..png
⠋
[1] 38250 segmentation fault pigmnts en.wikipedia.org_wiki_Liverpool_F.C..png |
@adamstambouli Seems like this is an M1 specific issue since all the images worked fine on my x64 machine. Yet to build on M1 and test it. |
@blenderskool thanks for investigating! Please feel free to triage this issue as you wish - it's ok if you close it and add M1 support to the roadmap if others are interested in the functionality. |
Hey!
I'm getting a segmentation fault on a M1 Macbook Pro running Sonoma 14.0.
Any logs I can check to see how to fix this?
The text was updated successfully, but these errors were encountered: