Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
dst
Posts: 16
Joined: Mon Jan 21, 2019 10:06 pm

Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by dst »

Hi,
I'm not able to relate these behaviors to an existing ticket or topic so I decided to open a new post.
I'm not able to run it anymore.
.FreeCAD folder as been deleted before to execute the new version.
I must to say that the download from the Freecad site download page is really slow to start (I've a true 100/100 Mbs fiber optic connection).
I managed to save a New file 1 time on dozens.

Thank you in advance for your help.

Bye

Version of FreeCad

OS: Ubuntu 20.04.3 LTS (Budgie:GNOME/budgie-desktop)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)

1. Sometimes it crashes at start with this on the console
nouveau: kernel rejected pushbuf: No such file or directory
nouveau: ch6: krec 0 pushes 0 bufs 1 relocs 0
nouveau: ch6: buf 00000000 00000002 00000004 00000004 00000000
nouveau: kernel rejected pushbuf: No such file or directory
nouveau: ch6: krec 0 pushes 0 bufs 1 relocs 0
nouveau: ch6: buf 00000000 00000002 00000004 00000004 00000000
freecad: ../nouveau/pushbuf.c:728: nouveau_pushbuf_data: Assertion `kref' failed.
/tmp/.mount_freecae8TYEQ/AppRun: line 41: 21586 Aborted ${MAIN} "$@"

or this

Program received signal SIGSEGV, Segmentation fault.
nouveau: kernel rejected pushbuf: Invalid argument
nouveau: ch6: krec 0 pushes 1 bufs 14 relocs 0
nouveau: ch6: buf 00000000 00000002 00000004 00000004 00000000
nouveau: ch6: buf 00000001 00000012 00000002 00000002 00000000
nouveau: ch6: buf 00000002 00000012 00000002 00000002 00000000
nouveau: ch6: buf 00000003 00000008 00000002 00000002 00000000
nouveau: ch6: buf 00000004 00000008 00000002 00000002 00000000
nouveau: ch6: buf 00000005 0000000a 00000002 00000002 00000000
nouveau: ch6: buf 00000006 0000000a 00000002 00000002 00000000
nouveau: ch6: buf 00000007 00000006 00000004 00000000 00000004
nouveau: ch6: buf 00000008 00000006 00000004 00000000 00000004
nouveau: ch6: buf 00000009 00000016 00000002 00000000 00000002
nouveau: ch6: buf 0000000a 00000016 00000002 00000000 00000002
nouveau: ch6: buf 0000000b 00000007 00000002 00000002 00000000
nouveau: ch6: buf 0000000c 00000014 00000002 00000002 00000000
nouveau: ch6: buf 0000000d 00000014 00000002 00000002 00000000
nouveau: ch6: psh 00000000 00000161e0 0000016358
nouveau: 0x80000671
nouveau: 0x800004b9
nouveau: 0x80ff0e04
nouveau: 0x200504d0
nouveau: 0x00008006
nouveau: 0x00004001
nouveau: 0x00004303
nouveau: 0x00008006
nouveau: 0x00004001
nouveau: 0x200104d6
nouveau: 0x00004001
nouveau: 0x800103e4
nouveau: 0x20010680
nouveau: 0x00001111
nouveau: 0x2001054f
nouveau: 0x00000000
nouveau: 0x200308e0
nouveau: 0x00010000
nouveau: 0x00000000
nouveau: 0x00860000
nouveau: 0xa01d08e3
nouveau: 0x00000000
nouveau: 0x3f800000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x3f800000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x3f800000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x3f800000
nouveau: 0x3f800000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0xbf800000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x3f800000
nouveau: 0x3f800000
nouveau: 0x00000000
nouveau: 0x200308e0
nouveau: 0x00010000
nouveau: 0x00000000
nouveau: 0x008a0000
nouveau: 0xa00908e3
nouveau: 0x00000000
nouveau: 0xffffffff
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x3f800000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x20024062
nouveau: 0x00000000
nouveau: 0x06200340
nouveau: 0x20024060
nouveau: 0x00000020
nouveau: 0x00000001
nouveau: 0xa009406c
nouveau: 0x00001001
nouveau: 0x58d24908
nouveau: 0x07080000
nouveau: 0x00600000
nouveau: 0x00070020
nouveau: 0xe880077f
nouveau: 0x800003f9
nouveau: 0x03000000
nouveau: 0x00000000
nouveau: 0x200104cd
nouveau: 0x00000000
nouveau: 0x200308e0
nouveau: 0x00010000
nouveau: 0x00000000
nouveau: 0x00900000
nouveau: 0x200208e3
nouveau: 0x00000020
nouveau: 0x0000001a
nouveau: 0x200406c0
nouveau: 0x00000000
nouveau: 0x00224000
nouveau: 0x00000041
nouveau: 0x1000f010
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x46210) [0x7f4d3971a210]
#1 /lib/x86_64-linux-gnu/libdrm_nouveau.so.2(+0x4d0c) [0x7f4d34056d0c]
#2 /lib/x86_64-linux-gnu/libdrm_nouveau.so.2(+0x5391) [0x7f4d34057391]
#3 /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so(+0xc06c53) [0x7f4d2efa7c53]
#4 /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so(+0xc06d4b) [0x7f4d2efa7d4b]
#5 /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so(+0xc084a7) [0x7f4d2efa94a7]
#6 /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so(+0x30c9f3) [0x7f4d2e6ad9f3]
#7 /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Gui.so.5(+0x2acd3b) [0x7f4d3a176d3b]
#8 0x7f4d3a1381ca in QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Gui.so.5+0xba8
#9 /tmp/.mount_freecacFcupb/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x54ca4) [0x7f4d35911ca4]
#10 /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5(+0x17ccec) [0x7f4d3a451cec]
#11 /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5(+0x17de6a) [0x7f4d3a452e6a]
#12 /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5(+0x17ed2b) [0x7f4d3a453d2b]
#13 /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5(+0x17efaf) [0x7f4d3a453faf]
#14 0x7f4d3a464dd4 in QWidgetPrivate::syncBackingStore() from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5+0x66
#15 0x7f4d3a474cd9 in QWidget::event(QEvent*) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5+0x91f
#16 0x7f4d3a51f34f in QMainWindow::event(QEvent*) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5+0xdd
#17 0x7f4d3c3d3e1c in Gui::MainWindow::event(QEvent*) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libFreeCADGui.so+0x7c
#18 0x7f4d3a4497f2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5+0xdc
#19 0x7f4d3a44f31d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Widgets.so.5+0x1ac9
#20 0x7f4d3bff9df9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libFreeCADGui.so+0x89
#21 0x7f4d39c23606 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Core.so.5+0x86
#22 0x7f4d39c2383e in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Core.so.5+0x1da
#23 /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Core.so.5(+0x1dc54c) [0x7f4d39c5254c]
#24 /tmp/.mount_freecacFcupb/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_dispatch+0x27d) [0x7f4d36b5f23d]
#25 /tmp/.mount_freecacFcupb/usr/bin/../lib/./libglib-2.0.so.0(+0x554d1) [0x7f4d36b5f4d1]
#26 /tmp/.mount_freecacFcupb/usr/bin/../lib/./libglib-2.0.so.0(g_main_context_iteration+0x31) [0x7f4d36b5f571]
#27 0x7f4d39c520e8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Core.so.5+0x5e
#28 0x7f4d39c20019 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Core.so.5+0x187
#29 0x7f4d39c23e8f in QCoreApplication::exec() from /tmp/.mount_freecacFcupb/usr/bin/../lib/libQt5Core.so.5+0xfd
#30 0x7f4d3bf83926 in Gui::Application::runApplication() from /tmp/.mount_freecacFcupb/usr/bin/../lib/libFreeCADGui.so+0x15f6
#31 /tmp/.mount_freecacFcupb/usr/bin/freecad(+0x44bf) [0x563730c2b4bf]
#32 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f4d396fb0b3]
#33 /tmp/.mount_freecacFcupb/usr/bin/freecad(+0x47d9) [0x563730c2b7d9]

2. Sometimes in Start workspace doing a File->New
nouveau: kernel rejected pushbuf: No such device
nouveau: ch6: krec 0 pushes 1 bufs 4 relocs 0
nouveau: ch6: buf 00000000 00000002 00000004 00000004 00000000
nouveau: ch6: buf 00000001 00000006 00000004 00000000 00000004
nouveau: ch6: buf 00000002 00000033 00000002 00000000 00000002
nouveau: ch6: buf 00000003 00000041 00000004 00000004 00000000
nouveau: ch6: psh 00000000 00000558b0 0000055958
nouveau: 0x20056080
nouveau: 0x000000d5
nouveau: 0x00000000
nouveau: 0x00000040
nouveau: 0x00000001
nouveau: 0x00000000
nouveau: 0x20046086
nouveau: 0x00000100
nouveau: 0x00000100
nouveau: 0x00000000
nouveau: 0x07a20000
nouveau: 0x800060ae
nouveau: 0x2002608c
nouveau: 0x000000cf
nouveau: 0x00000001
nouveau: 0x20056091
nouveau: 0x00000400
nouveau: 0x00000100
nouveau: 0x00000100
nouveau: 0x00000000
nouveau: 0x089a0000
nouveau: 0x80006223
nouveau: 0x2004622c
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000100
nouveau: 0x00000100
nouveau: 0x20046230
nouveau: 0x00000000
nouveau: 0x00000001
nouveau: 0x00000000
nouveau: 0x00000001
nouveau: 0x20046234
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x00000000
nouveau: 0x200406c0
nouveau: 0x00000000
nouveau: 0x00224000
nouveau: 0x00000070
nouveau: 0x1000f010
freecad: ../nouveau/pushbuf.c:728: nouveau_pushbuf_data: Assertion `kref' failed.
/tmp/.mount_freecahOsUIJ/AppRun: line 41: 22086 Aborted ${MAIN} "$@"

3. Switching to Part Design a File->New gives
freecad: ../nouveau/pushbuf.c:728: nouveau_pushbuf_data: Assertion `kref' failed.
/tmp/.mount_freecatAjXNt/AppRun: line 41: 22229 Aborted ${MAIN} "$@"

and File->Open
freecad: ../nouveau/pushbuf.c:728: nouveau_pushbuf_data: Assertion `kref' failed.
/tmp/.mount_freeca3V2btn/AppRun: line 41: 22334 Aborted ${MAIN} "$@"
chrisb
Veteran
Posts: 54213
Joined: Tue Mar 17, 2015 9:14 am

Re: Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by chrisb »

Please put the log output in code tags for improved readability.
Did you look at the Known OS specific issues, especially those about the graphics card driver?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
dst
Posts: 16
Joined: Mon Jan 21, 2019 10:06 pm

Re: Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by dst »

chrisb wrote: Fri Nov 12, 2021 1:46 pm Please put the log output in code tags for improved readability.
Did you look at the Known OS specific issues, especially those about the graphics card driver?
Thank you for the quick reply.
I made
unset QT_PLUGIN_PATH
Result: same behavior

Then
MESA_LOADER_DRIVER_OVERRIDE=i965
Result: same behaviour

Then
LIBGL_DRI3_DISABLE=true ./freecad.AppImage
Result: same behavior

Best regards
D
wmayer
Founder
Posts: 20309
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by wmayer »

In case it doesn't crash immediately each time you start it, then go to the preferences and under View > 3D Viewer activate the option "Use Software OpenGL".
dst
Posts: 16
Joined: Mon Jan 21, 2019 10:06 pm

Re: Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by dst »

wmayer wrote: Fri Nov 12, 2021 3:08 pm In case it doesn't crash immediately each time you start it, then go to the preferences and under View > 3D Viewer activate the option "Use Software OpenGL".
Thank you very much, Preferences > Display > 3D Viewer activate the option "Use Software OpenGL" solved the problem. ;) (just to let it more "no brainer").

Could you please point me what line I posted (if any) gave you the insight?
Best regards
D
wmayer
Founder
Posts: 20309
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by wmayer »

Could you please point me what line I posted (if any) gave you the insight?
Not a specific line but the fact that the nouveau driver causes problems. On my system I use the nouveau driver too and I get random crashes when the Start page is loaded -- and built with Qt's web engine module. When it's built with the Qt Webkit module everything works fine for me.

A while ago a forum member gave me the tip to activate the software OpenGL option and that indeed fixed the issue.

See: https://forum.freecadweb.org/viewtopic. ... 95#p457695
trezvy
Posts: 41
Joined: Sat Jan 24, 2015 10:34 am

Re: Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by trezvy »

wmayer wrote: Fri Nov 12, 2021 3:08 pm In case it doesn't crash immediately each time you start it, then go to the preferences and under View > 3D Viewer activate the option "Use Software OpenGL".
What if it does crash immediately?
User avatar
onekk
Veteran
Posts: 6208
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by onekk »

trezvy wrote: Sat Aug 20, 2022 10:56 pm ...
What if it does crash immediately?
You are asking a question for a very old thread.

Better to make a new post trying to supply some more info if this is your problem.

Important things would be:

- OS version from which you are running FreeCAD (FC)
- What FC version you are using (obviously if you could not start FC even a AppImage version as example will suffice)
- Error issued during launch, this are usually obtained launching FC with a terminal or the Command Prompt or Shell on Windows.
- use the code tag <\> for eventual error codes as they are more readable.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Crashes on latest AppImage Ubuntu 20.04.3 LTS

Post by GeneFC »

trezvy wrote: Sat Aug 20, 2022 10:56 pm What if it does crash immediately?
There was a method posted fairly recently (past month?) that explains how to change to software OpenGL through the command line.

I don't know exactly where to find it, but perhaps someone reading this will remember.

Gene
Post Reply