fail on call to "display = jetson.utils.glDisplay()", jetson tx2

prior to the error, I successfully upload networks and successfully call the built-in camera
with the command:
camera = jetson.utils.gstCamera(opt.width, opt.height, opt.camera)
(using the default settings).

then comes the call to:
display = jetson.utils.glDisplay()
with the error output below.

The loaded networks are one of the detection networks and a custom Keras (h5) model.

The issue seems to be caused by a combination of the Keras model and the camera since when I load a different one everything works, and when I run the Keras network without the camera (on an image) it works too.
at the time of the call to jetson.utils.glDisplay(), there is more than 2GB of free memory (viewed via jtop)

Output error:

jetson.utils – PyCamera_New()
jetson.utils – PyCamera_Init()
[gstreamer] initialized gstreamer, version 1.14.4.0
[gstreamer] gstCamera attempting to initialize with GST_SOURCE_NVARGUS, camera 0
[gstreamer] gstCamera pipeline string:
nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=30/1, format=(string)NV12 ! nvvidconv flip-method=2 ! video/x-raw ! appsink name=mysink
[gstreamer] gstCamera successfully initialized with GST_SOURCE_NVARGUS, camera 0
camera ready
jetson.utils – PyDisplay_New()
jetson.utils – PyDisplay_Init()
[OpenGL] glDisplay – X screen 0 resolution: 1920x1080
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 40
Current serial number in output stream: 41

help is appreciated

Hi,

It looks like your GL libraries are somehow making some issue.

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

Have you manually installed any GL related library?
If yes, would you mind to reset the environment to JetPack default and try it again?

Thanks

Thanks for the quick reply.
I haven’t installed it manually but will try anything - does it mean to reinstall the entire thing or any specific command for this?

Hi,

YES. Please reflash the device and re-install all the packages from JetPack installer.
Please let us know the results.

Thanks.

Thank you @AastaLLL
At the moment I have a workaround so won’t reinstall the JetPack, but if I do will update here