Hi everyone,
My application is a mix of ROS2, tensorrt inference and PyQT GUI for industrial. We decided to go with Jetpack 5 although it’s not official yet, but we don’t want to deal with the hassle of ROS2 and multiple packages on Ubuntu 18.
I encountered some problem while working with Jetpack 5:
# Problem 1
ImportError: /usr/lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block
# Problem 2
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)
No XVisualInfo for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)
Falling back to using screens root_visual.
I found the solution for those two are applying the below exports
export LD_PRELOAD=$LD_PRELOAD:/lib/aarch64-linux-gnu/libGLdispatch.so.0
export QT_XCB_GL_INTEGRATION=none
What I want to ask are:
- Do those patches solve the root cause of the problems or they are just work around solutions? Meaning Nvidia is working on fixing these problems completely?
- The funny thing is if I put those exports to
~/.bashrc
and use Startup Application of Ubuntu to automatically launch our software after user login, I still see the launching failure because of problem 1 in our log file. If I put the exports into an.sh
file and place it into/etc/profile.d
, our software can run successfully, but our Realsense camera fails to start Deep stream (RGB stream works fine). The consequence failure only happen if I usereboot
. Power cycle make our pipeline starts and then work fine. I am greatly appreciated if you can read through and give me your thought on the problem.
And sorry for my bad explanation. If you have any questions, feel free to let me know.
Thank you all and have a great day.