smartroboticslab / mid-fusion

Code for ICRA 2019 work "MID-Fusion Octree-based Object-Level Multi-Instance Dynamic SLAM"
https://arxiv.org/abs/1812.07976
BSD 3-Clause "New" or "Revised" License
54 stars 5 forks source link

Docker Runtime Error (OpenGL) #2

Closed ddkats closed 1 month ago

ddkats commented 2 months ago

Hi @binbin-xu

Thank you for sharing this great work. I attempted to reproduce your results using the cup_bottle dataset, but I used the Docker version. The Docker image builds successfully, but when I try to run it, I get the following error:

New object generated at frame 0, with volume size: 1.285582, with volume resol: 1024, with volume step: 0.001255, class id: 74 printMatrix4 : , with pose [1.000000,0.000000,0.000000,0.617432] [0.000000,1.000000,0.000000,0.603107] [0.000000,0.000000,1.000000,1.137584] [0.000000,0.000000,0.000000,1.000000] 320 240 [320 x 240] max/min x/y/z: 0.915724 1.250000 1.001433 1.299214 1.000000 2.124115 average of vertex: 1.094085 1.207355 1.646293, with the max size 0.562058 New object generated at frame 0, with volume size: 1.405144, with volume resol: 1024, with volume step: 0.001372, class id: 40 printMatrix4 : , with pose [1.000000,0.000000,0.000000,0.391513] [0.000000,1.000000,0.000000,0.504783] [0.000000,0.000000,1.000000,0.943721] [0.000000,0.000000,0.000000,1.000000] objects (id) in this view: 0 1 2 3 0 finished libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 151 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 49 Current serial number in output stream: 48 X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 151 (GLX) Minor opcode of failed request: 24 (X_GLXCreateNewContext) Value in failed request: 0x0 Serial number of failed request: 48 Current serial number in output stream: 49 Makefile:39: recipe for target 'demo_cup_bottle' failed make: *** [demo_cup_bottle] Error 1

Do you have any ideas about what might be causing this issue? Could it be related to permissions for displaying the GUI on the host's screen? I’ve enabled xhost +, but the problem persists.

Thanks!

ddkats commented 1 month ago

Solved. For anyone interested, I made some changes to the Dockerfile. The most significant update was switching the base image from ubuntu:18.04 to nvidia/cudagl:11.4.2-base-ubuntu18.04 to resolve OpenGL/Cuda runtime issues.