You are not logged in.

#1 2024-03-07 17:48:34

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

[Solved]FreeCAD MESA-LOADER: amdgpu_va_get error fixed with LD_PRELOAD

If any one tries to start FreeCAD and get the below errors:

 /tmp/.mount_freecaiw0xef
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib/dri, suffix _dri)
failed to load driver: iris
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib/dri, suffix _dri)
failed to load driver: swrast
A3 available
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
QGLXContext: Failed to create dummy context
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
/tmp/.mount_freecaiw0xef/AppRun: line 52: 185160 Aborted                 (core dumped) "./$name" "$@"

I searched the web for similar issues and found the following:
FreeCAD not starting
Apperently the Mesa drivers have changed something in the newer releases but instead of installing the previous version suggests starting FreeCAD with the following prompt.

 LD_PRELOAD=/usr/lib/libdrm_amdgpu.so.1 ./FreeCAD-0.21.2-Linux-x86_64.AppImage 

Hopefully that helps if any one struggles.

Offline

#2 2024-03-09 10:38:49

slaesh
Member
Registered: 2024-03-09
Posts: 1

Re: [Solved]FreeCAD MESA-LOADER: amdgpu_va_get error fixed with LD_PRELOAD

thanks for sharing, facing the same issue.. couldnt find any "like button", so.. thanks! wink

Offline

#3 2024-04-24 16:45:48

Rio6
Member
Registered: 2016-01-16
Posts: 16

Re: [Solved]FreeCAD MESA-LOADER: amdgpu_va_get error fixed with LD_PRELOAD

This fixed it for me too! Thanks a lot smile

Offline

#4 2024-05-12 21:09:36

_alexmyself
Member
From: france
Registered: 2005-09-18
Posts: 90

Re: [Solved]FreeCAD MESA-LOADER: amdgpu_va_get error fixed with LD_PRELOAD

Thanks you so much... this mesa problem occurs at many distribs and hit not only freecad.

For peoples running freecad in qemu / vm with graphics from virtio family it works too if pointed to virtio "driver" or whatever thing it is:

/usr/lib/x86_64-linux-gnu/dri/virtio_gpu_dri.so

or

/usr/lib/dri/virtio_gpu_dri.so

The first path is from debian testing, but should be easily found in any distrib,
the second one is kind of a default one for mesa, i've seen many places where peoples had symlinked it to their distrib standard dri/ path to resolves the mesa problem.

Offline

#5 2024-05-14 12:20:50

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,086

Re: [Solved]FreeCAD MESA-LOADER: amdgpu_va_get error fixed with LD_PRELOAD

It doesn't look like a mesa problem, but a problem with Appimages .

Best solution : use the freecad package provided by your distro .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB