-
Notifications
You must be signed in to change notification settings - Fork 66
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
BlazeposeDepthai.py -3 throws GLFW Error #5
Comments
Can you tell me the version of open3d you are using ? |
|
I have installed the same version as yours but can't reproduce the problem.
|
Doing your simpler script line by line in an interactive window I get:
Maybe I'm missing something at the system level for GLX context. I'm really not familiar with GLFW/GLX but this system can use the OpenVINO GPU with the sample C++ code and net[i].setPreferableTarget(cv2.dnn.DNN_TARGET_OPENCL_FP16) in my code to do MobilenetSSD.v2_coco object detection. |
It is not a problem with Open3d. Like you, I am not familiar GLFW/GLX but it is probably a problem on your system. You said you have updated it recently. Have you rebooted after the update ? https://www.reddit.com/r/SolusProject/comments/cmjyxq/opengl_and_minecraft/ |
I searched and seems it happens a lot, in a lot of different applications. When there was a solution, it was rebooting. The updates I installed forced a reboot, but this was before I ran your requirements.txt So I did. Looks like Linux developers are getting Windows Envy with requiring reboots after installation. This is the first time a pip install has ever required a reboot for me. Might be good to add it to your instructions in the readme. Got further, put up a window and said pipeline created then failed at line 604 ht.run(), looked like it may not have found the OAK-D camera, so I ran it without the --show3d option and it seemed to work. Closed it, and retried with --show3d and it seems to be working now. Looks like the OAK-D initialization/startup code isn't 100% reliable yet. Thanks for the help and for sharing this code. I will learn a lot about using my OAK-D from studying and modifying this code. |
All the requirements seemed to have installed OK, and running the basic python3 BlazeposeDepthai.py appears to work, although my OAK-D is at present not mounted where I can get far enough away for a full length body picture (I'll need a USB3 extension cable), I do see some segments being tracked.
But running the python3 BlazeposeDepthai.py -3 I get this error:
~/depthai_blazepose-main$ python3 BlazeposeDepthai.py -3 896 anchors have been created [Open3D WARNING] GLFW Error: GLX: Failed to create context: BadValue (integer parameter out of range for operation) [Open3D WARNING] Failed to create window Traceback (most recent call last): File "BlazeposeDepthai.py", line 591, in <module> ht = BlazeposeDepthai(input_src=args.input, File "BlazeposeDepthai.py", line 165, in __init__ opt.background_color = np.asarray([0, 0, 0]) AttributeError: 'NoneType' object has no attribute 'background_color'
Suggestions?
I've zero experience with the open-3d python package. I'm running on Ubuntu 20.04 with all updates as of a few hours ago.
The text was updated successfully, but these errors were encountered: