LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2024, 01:39 PM   #1
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Rep: Reputation: Disabled
FreeCAD not starting


Hi again,

maybe not the right forum to ask this but every once-in-a-while, after a 'slackpkg-upgrade-all', a few other packages stops working.

I know, i am using the 'current' version which is under continuous development and libraries change with certain risks.

This time it's the turn of FreeCAD. When launched from application menu,the splash screen starts, it seems to lad but then it disappear and nothing else happens.

When I launch the appimage from console, i get this error:
Code:
FreeCAD 0.21.2, Libs: 0.21.2R33771 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2023
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

MESA-LOADER: failed to open nouveau: /usr/lib64/dri/nouveau_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: nouveau
MESA-LOADER: failed to open nouveau: /usr/lib64/dri/nouveau_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: nouveau
MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: undefined symbol: amdgpu_va_get_start_addr (search paths /usr/lib64/dri, suffix _dri)
failed to load driver: swrast
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_FreeCAGKHK1G/AppRun: line 43: 22852 Aborted                 ${MAIN} "$@"
bash-5.2$
I know that slackware doesn't support appimages however, it has always worked so far (similarly to other appimage packages that I use regularly, and still do).

Can anyone help?

Thanks
 
Old 02-05-2024, 02:28 PM   #2
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Searching the net I learned that a slackware 15 user solved a similar issue switching from 'wayland' to 'X11'.

This captured my attention, as I don't even know what X-system my slackware-current is running so, I run 'echo $XDG_SESSION_TYPE and it returned:
Code:
bash-5.2$ echo $XDG_SESSION_TYPE
tty
bash-5.2$
TeleTYpewriter? wasn't that a thing of the past? What do I actually start by launching 'startx'?

Last edited by however; 02-05-2024 at 02:29 PM.
 
Old 02-06-2024, 01:02 AM   #3
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,013

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Those error messages seem really messy...

To run FreeCAD you will need working hardware accelerated OpenGL.

The error messages seem to indicate that you are using the nouveau driver which is the opensource driver for nVidia cards. However, it complains about missing symbols which seem to be for an AMD GPU.

What kind of GPU do you have? Which driver are you trying to use with that GPU?

regards Henrik
 
Old 02-06-2024, 01:07 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,047

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
probably it is similar:
https://community.clearlinux.org/t/m...nitialize/9386
 
1 members found this post helpful.
Old 02-06-2024, 04:00 AM   #5
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by henca View Post
Those error messages seem really messy...

To run FreeCAD you will need working hardware accelerated OpenGL.

The error messages seem to indicate that you are using the nouveau driver which is the opensource driver for nVidia cards. However, it complains about missing symbols which seem to be for an AMD GPU.

What kind of GPU do you have? Which driver are you trying to use with that GPU?

regards Henrik
Thank you for your input.
Sadly, I have been blessed with those nouveau driver for decades (since installing the native NVIDIA drivers it's literally impossible on my system) however, to be honest, it has never been a major issues in fact, as I said in the OP, FreeCAD (and almost any other heavy-graphic demanding packages I have used, including Blender up until the last 'slackpkg upgrade-all') had been working fine for years.


Quote:
Originally Posted by pan64
This gets my suspicions semi-confirmed as I remember MESA being one of the packages being upgraded during the last 'slackpkg upgrade-all'. (since the last MESA upgrade, coincidentally, i 'lost' blender too)

So, I suppose the solution to this is to wait until they (MESA developers) receive enough bug-reports and fix the issue at the (somehow) next upgrade.

Thanks
 
Old 02-08-2024, 12:20 AM   #6
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I had the same problem with the same FreeCAD AppImage, downgrading to mesa-23.3.4-x86_64-1.txz solved the problem.
 
3 members found this post helpful.
Old 02-08-2024, 04:35 AM   #7
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nobodino View Post
I had the same problem with the same FreeCAD AppImage, downgrading to mesa-23.3.4-x86_64-1.txz solved the problem.
Thank you.

Would you be so kind to share the mesa-23.3.4-x86_64-1.txz file?

I have found the source code on mesa website but I can't find the slackbuild anywhere; and, of course, couldn't find it on the web either.

Thanks

p.s.: I tried to do it the old way <unpack && make && make install> but it seems that the old conventional way of compiling && installing a package is disappearing on linux.

Last edited by however; 02-08-2024 at 04:43 AM.
 
Old 02-08-2024, 05:20 AM   #8
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,938

Rep: Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568Reputation: 1568
https://slackware.uk/cumulative/slac...4-x86_64-1.txz
 
3 members found this post helpful.
Old 02-08-2024, 05:33 AM   #9
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
Thanks a million.

I confirm that downgrading to 'mesa-23.3.4-x86_64-1.txz' has solved the issue.

Quote:
Originally Posted by nobodino
I had the same problem with the same FreeCAD AppImage, downgrading to mesa-23.3.4-x86_64-1.txz solved the problem.
Thank you for the tip and,

thanks everyone.
 
1 members found this post helpful.
Old 02-16-2024, 03:08 AM   #10
igorv
LQ Newbie
 
Registered: Feb 2024
Posts: 2

Rep: Reputation: 0
I've faced the same problem. Found another way without downgrading mesa:
LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so.1 ./FreeCAD-0.21.2-Linux-x86_64.AppImage
 
Old 02-16-2024, 05:36 AM   #11
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by igorv View Post
I've faced the same problem. Found another way without downgrading mesa:
HI and thank you for the input.

Quote:
LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so.1 ./FreeCAD-0.21.2-Linux-x86_64.AppImage
Would you be so kind to explain what to do with such fairy complex command line?

If I run it on konsole it starts FreeCAD so,I guess it should be the permanent Application Menu command to start FreeCAD? What will happen at the next upgrade of either MESA or FreeCAD?

Thanks
 
Old 02-16-2024, 08:16 AM   #12
igorv
LQ Newbie
 
Registered: Feb 2024
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by however View Post
Would you be so kind to explain what to do with such fairy complex command line?

If I run it on konsole it starts FreeCAD so,I guess it should be the permanent Application Menu command to start FreeCAD?
Sure, some steps must be done to fill yourself comfortable. (i) make a symlink to the AppImage. It shortens you input and makes it independent from future FreeCAD updates. (ii) If you prefer console, make a bash alias in your .profile/.bashrc file, i.e. alias freecad="LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so /usr/bin/FreeCAD" (Here /usr/bin/FreeCAD is my symlink to the current FreeCAD image). If you use come XWindow Desktop Environment, you may edit the proper .desktop file, namely, the Exec line, i.e. change "Exec=freecad %F" to "Exec=env LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so freecad %F".

Quote:
Originally Posted by however View Post
What will happen at the next upgrade of either MESA or FreeCAD?
On either upgrade you have to check (i) if you still need this workaround, (ii) keep symlinks consistent with new filenames.
 
Old 02-17-2024, 12:39 AM   #13
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I followed your piece of advice, my FreeCAD script is:

Code:
#!/bin/sh
export LD_LIBRARY_PATH=/opt/OpenCASCADE/lib64:$LD_LIBRARY_PATH
export QTWEBENGINE_DISABLE_SANDBOX=1
export LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so.1 
exec /opt/FreeCAD/FreeCAD.AppImage "$@"
Thanks.
 
Old 05-21-2024, 02:21 PM   #14
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 523

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nobodino View Post
I followed your piece of advice, my FreeCAD script is:

Code:
#!/bin/sh
export LD_LIBRARY_PATH=/opt/OpenCASCADE/lib64:$LD_LIBRARY_PATH
export QTWEBENGINE_DISABLE_SANDBOX=1
export LD_PRELOAD=/usr/lib64/libdrm_amdgpu.so.1 
exec /opt/FreeCAD/FreeCAD.AppImage "$@"
Thanks.
Is it the issue with 'current' that justifies all these broken 'pipes'? or just me/my anomalous system?

after solving/overcoming the MESA issues with the script and, after a random 'slackpkg update/upgrade-all', FreeCAD won't launch again, even through the script
Quote:
execvp:Exec format error
(neither on my desktop nor on my laptop)
 
Old 05-22-2024, 02:08 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,047

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
exec format error means it is not an executable on that platform.
what will file /opt/FreeCAD/FreeCAD.AppImage respond?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeCAD does not start - segmentation fault frushiyama Slackware 10 06-21-2017 11:34 PM
[SOLVED] FreeCAD - The system does not support OpenGL mfoley Slackware 18 05-05-2017 01:46 PM
Freecad error "No module named PartGui" coss_cat Linux - Software 0 10-05-2010 03:23 AM
FreeCAD Illegal storage access Linux.tar.gz Linux - Software 6 09-26-2010 01:41 PM
[SOLVED] Starting File System .. Starting File System .. Starting File System .. Starting File rmknox Linux - Newbie 3 08-15-2010 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration