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)
jetson.utils – PyCamera_New()
jetson.utils – PyCamera_Init()
[gstreamer] initialized gstreamer, version 220.127.116.11
[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
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