-
Notifications
You must be signed in to change notification settings - Fork 30
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 #34
Comments
Receiving same issue. Has there been a resolution? Pi4 Segfault appearing in this portion of code: Appears to be slightly more stable when nthreads=2 (skips my image if all tags are detected) and crashes if nthreads=1. Thanks, |
This is related to either filesize or ratio of resolution. Attached is some minimum reproducible code. I tried as-is (file size 2028 x 1520 which maybe isn't a standard) and mostly consistently was able to get 10 loops before the segmentation error. I then reduced the resolution to 720x480 and was able to get 1000+ loops without issue. The image I tested with is here: https://neoconinc-my.sharepoint.com/:i:/g/personal/ashepherd_neoconhfx_com/ETLrI41fyORAswLsMXFJPmYBRIDx9CtF4ZF-K4tqyGcSeQ?e=ph8BwU `import cv2 for z in range(1,50):
next ` |
I'm on a Raspberry Pi 4 and my solution to fixing this was to optimize my code so as to not run anything unnecessarily in a while loop. For me this was setting at_detector once at the start. I also ran the optimizations mentioned above, but they didn't help me as much as refactoring my code. |
I receive a segmentation fault when using this library on a Raspberry Pi 4 and python 3.7. When the entire script exits a seg fault pops up. I've attached the following gdb excerpt:
The library works fine on windows with the same code, any ideas what would be causing this on a Pi 4?
The text was updated successfully, but these errors were encountered: