JungWhoNam / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
0 stars 0 forks source link

errors from ospExamples via X-Server - error 65544: X11: RandR gamma ramp support seems broken #7

Closed ghost closed 1 year ago

ghost commented 1 year ago
error 65544: X11: RandR gamma ramp support seems broken
error 65544: Linux: Failed to watch for joystick connections in /dev/input: No such file or directory
error 65544: Linux: Failed to open joystick device directory /dev/input: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

I am running ospExamples inside a docker container using X-Server to show the GUI. When I run provided GUI examples, e.g., ospExamples, I get following errors. But despite the errors, the application runs fine.

Docker Image FROM ubuntu:18.04 gcc (Ubuntu 7.5.0-3ubuntu1\~18.04) 7.5.0 g++ (Ubuntu 7.5.0-3ubuntu1\~18.04) 7.5.0

ghost commented 1 year ago
error 65544: X11: RandR gamma ramp support seems broken
error 65544: Linux: Failed to watch for joystick connections in /dev/input: No such file or directory
error 65544: Linux: Failed to open joystick device directory /dev/input: No such file or directory

According to this comment, this is a bug in glfw 3.2. According to version history, the bug was addressed in 3.3. In fact, this error only appears in OSPRay (uses glfw 3.2.1) and does not appear in OSPRay Studio (uses 3.3.4).

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Please see this comment and this. In short, export LIBGL_ALWAYS_INDIRECT=1 fixes the libGL errors.