Firefox crashing in Jetson Orin Nx wth Jetpack 5.1

This was working fine… until - I think - I messed up trying to install torch, torchvision and torchaudio, now I get this when I launch firefox:

jetson@jetson:~$ firefox
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: drmGetDevices2 failed (t=0.799151) [GFX1-]: glxtest: drmGetDevices2 failed

and then if I try to access some url:

Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Bus error (core dumped)

and closes.

I’ve tried also to get some info using debug flag, but it’s not been helpful so far

jetson@jetson:~$ MOZ_GFX_DEBUG=1 firefox
GLX_TEST: childgltest start
GLX_TEST: get_pci_status start
GLX_TEST: get_pci_status finished
GLX_TEST: x11_egltest start
GLX_TEST: get_egl_status start
GLX_TEST: get_egl_gl_status start
GLX_TEST: get_egl_gl_status finished
GLX_TEST: get_egl_status finished with return: 1
GLX_TEST: get_xrandr_info start
GLX_TEST: get_xrandr_info finished
GLX_TEST: x11_egltest finished
VENDOR
NVIDIA Corporation
RENDERER
NVIDIA Tegra Orin (nvgpu)/integrated
VERSION
OpenGL ES 3.2 NVIDIA 35.3.1
TFP
TRUE
WARNING
drmGetDevices2 failed
DRM_RENDERDEVICE
drm-nvdc
DDX_DRIVER
NVIDIA-0;
TEST_TYPE
EGL
GLX_TEST: childgltest finished
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: drmGetDevices2 failed (t=0.832309) [GFX1-]: glxtest: drmGetDevices2 failed

Any help will be appreciated.

Hi @javiercurutchet

How did you try to install torch and the other packages?

Could you please take a look at the PyTorch for Jetson post?

Regards!
Eduardo Salazar
Embedded SW Engineer at RidgeRun

Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

Hi,

Initially, I tried to do it just using

pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118

I tried to install different versions this way. Then, as you suggest, I used PyTorch for Jetson… and I managed to get torch and torchvision going, but not torchaudio. And also something messed up and Firefox crashes.