-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix segfault crash in easy_thresh.py #62
Comments
@jpanikulam wrote it, can you post the output leading up to the crash (maybe add some extra prints)? Did you play around with the opencv stuff? If that's not broken it could be change in the sklearn version that breaks KMeans? |
Here's all the output I get:
It crashes in a cv2.waitKey loop to keep the program alive so you can move around the visual threshold. Maybe it is OpenCV and some other GUI library conflicting? Some wacky threading stuff going on... Here's the backtrace I get
|
I think you're right, have you looked at the file (https://github.com/uf-mil/SubjuGator/blob/master/perception/sub8_perception/sub8_vision_tools/visual_threshold_tools.py), this script makes calls there and it does GUI stuff. I've never touched that file or library so I can't help much there. Side note, that visual threshold tool file should prolly be moved into mil common |
There's a really nice python tool called easy_thresh we ported from Subjugator. It seems to be broken on ros kinetic / 16.04. It still runs fine on my 14.04/Indigo system. After selecting a region to threshold, the 3D plot of the colors in this region opens briefly, then crashes, with a segmentation fault being reported in the terminal that opened it and no other errors. I tried my hand at fixing it, but it uses several libraries I have no experience with. Does anyone know who originally wrote this?
The text was updated successfully, but these errors were encountered: