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 with Node version 13 but not with version 12 #151
Comments
Hi @Kylir, thanks for reaching out! May I ask about your particular setup? CI is running fine latest versions, but I do not have info about any prior release for node v13. Can you elaborate on what some segfaults means? Best regards Simon |
Sure! More than happy to help. My system is Linux Manjaro (5.4.40-1-MANJARO). When using Node v13.5.0, Any I suspected some kind of problem with opencv4nodejs on my set-up, so I tried to install it in a separate project. The build went OK, no errors. I didn't try to use it though. Switching to Node v12.16.2 solved all my issues it seems. How can I give more info on the Seg fault? |
Hi, @Kylir did all the issues stop on 12.16.2 permanently for you? The segmentation fault issue occurs when I use any of the
I can see the project uses a prebuilt version of opencv. When looking at the documentation for opencv4nodejs, I see where it's recommended to use a dockerized version of opencv when running the application inside docker. @s1hofmann Is there a recommended way to use nut-js inside docker? |
Hi @wilforlan 👋 , may I ask which Docker image you're using? |
I'm currently using |
Hi @wilforlan 👋 , I noticed the image you mentioned mounts the X socket but does not set the E.g.
Regardless the outcome, X display handling needs some additional error handling, I'll open a separate issue for that 👍 |
Hi @s1hofmann, I'm actually already setting the display in my Dockerfile like so
This issue still occurs after setting this, so I used a seg-fault handler module and I got this (see screenshot below) |
@wilforlan Ok, so at the moment I'm not sure what's causing this issue. I'm running |
Okay. Can you share some part of the Dockerfile that might seem relevant? |
I'm using an image which provides a full containerized UI. |
Closed due to inactivity. Feel free to reopen if there are any updates |
I wanted to share with who may be interested.
With NodeJS version 13 on Linux (Manjaro) I experienced some Segmentation Fault while using Nut.js - Especially the
screen
functions.Switching to Node version 12 solved the issue.
I'm more than happy to do any testing if needed.
The text was updated successfully, but these errors were encountered: