-
Notifications
You must be signed in to change notification settings - Fork 26
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 / free(): invalid pointer / Check failed: !backing_store->is_wasm_memory(). #21
Comments
I haven't had any issues, could it be that you have an older package-lock? Perhaps a repo with the project giving those errors, because I cannot seem to replicate :( |
Well, there are no pull requests at the moment. Currently, I do not have the ability to test anything. When a pull request arrives I will merge and publish. |
I was testing this PR: #20 . https://github.com/rip3rs add Raspberry Pi 4 compatibility. I've tested exactly the same package.json and code on raspberry 2, it's working like a charm. Here the package.json:
I've reset package-lock and node_module:
The code below reproduce the error:
Changing delay between renders seems to not reduce error occurence.
Version of the raspberry: Raspberry Pi 4B, 2 GB RAM, WiFi & BT
|
I have recently started having problems of segmentation fault. I believe this has to do with the other module that this repo is using. The RPI 4 is strange... I will be looking into this as soon as I get some free time (can take some time :( ) |
I'm trying to define which party of the code is causing problem with my very fresh experience in c++ ! i've updated the code like that, to see exactly which line cause the bug, and i got different lines involved for each message:
Error 1:
Error 2:
Error 3:
|
if you change from PWM to PCM it seems to disappear the segmentation fault. |
I don't know how to activate PCM, but i try to use GPIO 21 (PIN 40) known as PCM GPIO, and i still have segmentation fault. |
Hello,
I've try your PR (adding dependency in package.json: "rpi-ws281x": "git+https://github.com/meg768/rpi-ws281x.git#master"), this is working 1 time on 10,
I got 'segmentation fault' or 'free(): invalid pointer' error randomly.
segmentation fault
Or
/home/pi/christmas/node_modules/rpi-ws281x/index.js:100
addon.render(pixels, this.map);
^
Error: Size of pixel mapping does not match.
at Module.render (/home/pi/christmas/node_modules/rpi-ws281x/index.js:100:19)
at Timeout._onTimeout (/home/pi/christmas/random-red-white.js:27:20)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
free(): invalid pointer
Aborted
Or
Fatal error in , line 0
Check failed: !backing_store->is_wasm_memory().
#FailureMessage Object: 0xbe8e5c30
Illegal instruction
Maybe linked from #12 or #11
Let me know how i can help, i'm very unfamilliar with c++
The text was updated successfully, but these errors were encountered: