[SOLVED] freecad0.20 continuously crashing when launching
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
[SOLVED] freecad0.20 continuously crashing when launching
Hello everyone,
I already posted this on a thread that I didn't notice was "solved" (https://forum.freecadweb.org/viewtopic. ... 1&start=10)
Since Freecad-0.19, freecad crashes on opening. With freecad 0.19 the crash would happen about 3-5 times before getting the lucky shot. Now, I am running freecad 0.20 appimage and it's almost a 15min trying (even up to 20 attempts) before I manage to work with it. Something that never happened on 0.19 was the complete full-red screen (sometimes yellow).
Once it opens, I have no such issues during modelling.
I am running it on
Linux Slackware current
KDE Plasma 5.25.3
Intel Xeon 12 core
32GiB RAM
Graphics Nvidia geForce GTX1000 6GB
Graphic drivers: OpenGL (the Nvidia drivers mess up my system big time)
Does anyone have any suggestions at all (all suggestions are welcome)?
regards
I already posted this on a thread that I didn't notice was "solved" (https://forum.freecadweb.org/viewtopic. ... 1&start=10)
Since Freecad-0.19, freecad crashes on opening. With freecad 0.19 the crash would happen about 3-5 times before getting the lucky shot. Now, I am running freecad 0.20 appimage and it's almost a 15min trying (even up to 20 attempts) before I manage to work with it. Something that never happened on 0.19 was the complete full-red screen (sometimes yellow).
Once it opens, I have no such issues during modelling.
I am running it on
Linux Slackware current
KDE Plasma 5.25.3
Intel Xeon 12 core
32GiB RAM
Graphics Nvidia geForce GTX1000 6GB
Graphic drivers: OpenGL (the Nvidia drivers mess up my system big time)
Does anyone have any suggestions at all (all suggestions are welcome)?
regards
- Attachments
-
- 20220802_195823.jpg (526.75 KiB) Viewed 3173 times
Last edited by freenico on Wed Aug 03, 2022 7:53 am, edited 1 time in total.
Re: freecad0.20 continuously crashing when launching
There are some options to e.g. use software opengl etc:
https://wiki.freecadweb.org/Preferences_Editor#Display
Remember to click on the table to expand the descriptions
Also there is a small mentioning here:
https://wiki.freecadweb.org/Frequently_ ... g_properly
Hope it helps
https://wiki.freecadweb.org/Preferences_Editor#Display
Remember to click on the table to expand the descriptions
Also there is a small mentioning here:
https://wiki.freecadweb.org/Frequently_ ... g_properly
Hope it helps
Re: freecad0.20 continuously crashing when launching
Thank you for your reply.a.l wrote: ↑Tue Aug 02, 2022 7:15 pm There are some options to e.g. use software opengl etc:
https://wiki.freecadweb.org/Preferences_Editor#Display
Remember to click on the table to expand the descriptions
Also there is a small mentioning here:
https://wiki.freecadweb.org/Frequently_ ... g_properly
Hope it helps
I changed the settings on freecad (which started after 12 attempts) and didn't make much difference.
Of the 2nd link, I (think) am sure that my OpenGL drivers are installed and working properly (as I don''t have any problems with heavy-graphic-demand packages such as 'inkscape', 'darktable' and/or 'kdenlive'); however, at the end of that page I found a useful reminder on how to debug a software with 'dbg'.
And below it' the debugging msg:
I kinda get around fiddling with my linux box, its kernel, packages, etc... but i am not a developer and I have no idea what that message points to, if anything. or whether< i should report it as a bug to the FreeCAD developers team.Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
#0 /lib64/libc.so.6(+0x40f10) [0x7ffff4c40f10]
#1 /usr/lib64/dri/nouveau_dri.so(+0xa36387) [0x7fffeae36387]
#2 /usr/lib64/dri/nouveau_dri.so(+0xa4c1f4) [0x7fffeae4c1f4]
#3 /usr/lib64/dri/nouveau_dri.so(+0xae0aef) [0x7fffeaee0aef]
#4 /usr/lib64/libdrm_nouveau.so.2(+0x4524) [0x7fffea0aa524]
#5 /usr/lib64/libdrm_nouveau.so.2(+0x4767) [0x7fffea0aa767]
#6 /usr/lib64/libdrm_nouveau.so.2(nouveau_pushbuf_kick+0x10) [0x7fffea0ab320]
#7 /usr/lib64/dri/nouveau_dri.so(+0xae1129) [0x7fffeaee1129]
#8 /usr/lib64/dri/nouveau_dri.so(+0x232e80) [0x7fffea632e80]
#9 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x24d3b9f) [0x7fffd92d3b9f]
#10 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x281506b) [0x7fffd961506b]
#11 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x28150fd) [0x7fffd96150fd]
#12 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x27d8576) [0x7fffd95d8576]
#13 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x27cc9f0) [0x7fffd95cc9f0]
#14 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x3a48335) [0x7fffda848335]
#15 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x3a4e35c) [0x7fffda84e35c]
#16 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x3a4ea12) [0x7fffda84ea12]
#17 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x3a50675) [0x7fffda850675]
#18 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x3a54c35) [0x7fffda854c35]
#19 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x3a54cb9) [0x7fffda854cb9]
#20 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x3a4ba85) [0x7fffda84ba85]
#21 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x1db0be0) [0x7fffd8bb0be0]
#22 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x1dd0f91) [0x7fffd8bd0f91]
#23 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x1dd1caf) [0x7fffd8bd1caf]
#24 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x1dd1e2d) [0x7fffd8bd1e2d]
#25 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x1dcfa21) [0x7fffd8bcfa21]
#26 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x1df1f0f) [0x7fffd8bf1f0f]
#27 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x1e24ebe) [0x7fffd8c24ebe]
#28 /tmp/.mount_FreeCAAnU6ka/usr/lib/python3.9/site-packages/PySide2/../../.././libQt5WebEngineCore.so.5(+0x1e55e6f) [0x7fffd8c55e6f]
#29 /lib64/libc.so.6(+0x90053) [0x7ffff4c90053]
#30 /lib64/libc.so.6(clone+0x40) [0x7ffff4d1cbf0]
#0 /lib64/libc.so.6(+0x40f10) [0x7ffff4c40f10]
#1 /usr/lib64/dri/nouveau_dri.so(+0xa36387) [0x7fffeae36387]
#2 /usr/lib64/dri/nouveau_dri.so(+0xa4c1f4) [0x7fffeae4c1f4]
#3 /usr/lib64/dri/nouveau_dri.so(+0xa4c411) [0x7fffeae4c411]
#4 /usr/lib64/dri/nouveau_dri.so(+0xa4c517) [0x7fffeae4c517]
#5 /usr/lib64/dri/nouveau_dri.so(+0x1c8e58) [0x7fffea5c8e58]
#6 /usr/lib64/libGLX_mesa.so.0(+0x51ed0) [0x7ffff0129ed0]
#7 /usr/lib64/libGLX_mesa.so.0(+0x454d1) [0x7ffff011d4d1]
#8 /tmp/.mount_FreeCAAnU6ka/usr/plugins/xcbglintegrations/libqxcb-glx-integration.so(+0xa2f2) [0x7ffff01d02f2]
#9 0x7ffff571eafc in QOpenGLContext::swapBuffers(QSurface*) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Gui.so.5+0x150
#10 0x7ffff586e285 in QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Gui.so.5+0xc63
#11 /tmp/.mount_FreeCAAnU6ka/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x53a94) [0x7ffff0c63a94]
#12 /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5(+0x17cd1c) [0x7ffff5d7cd1c]
#13 /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5(+0x17de9a) [0x7ffff5d7de9a]
#14 /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5(+0x17ed5b) [0x7ffff5d7ed5b]
#15 /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5(+0x17efdf) [0x7ffff5d7efdf]
#16 0x7ffff5d8fe04 in QWidgetPrivate::syncBackingStore() from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5+0x66
#17 0x7ffff5d9fd09 in QWidget::event(QEvent*) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5+0x91f
#18 0x7ffff5e4a385 in QMainWindow::event(QEvent*) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5+0xdd
#19 0x7ffff5d74822 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5+0xdc
#20 0x7ffff5d7a34d in QApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Widgets.so.5+0x1ac9
#21 0x7ffff728cc49 in Gui::GUIApplication::notify(QObject*, QEvent*) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libFreeCADGui.so+0x89
#22 0x7ffff51abf88 in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Core.so.5+0x86
#23 0x7ffff51ac1c0 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Core.so.5+0x1da
#24 0x7ffff51d8bc1 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Core.so.5+0x33
#25 /tmp/.mount_FreeCAAnU6ka/usr/plugins/platforms/../../lib/libQt5XcbQpa.so.5(+0x59ef4) [0x7ffff0c69ef4]
#26 0x7ffff51a899b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Core.so.5+0x187
#27 0x7ffff51ac811 in QCoreApplication::exec() from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libQt5Core.so.5+0xfd
#28 0x7ffff721175e in Gui::Application::runApplication() from /tmp/.mount_FreeCAAnU6ka/usr/bin/../lib/libFreeCADGui.so+0x1b2e
#29 /tmp/.mount_FreeCAAnU6ka/usr/bin/freecad(+0x67b1) [0x55555555a7b1]
#30 /lib64/libc.so.6(+0x29a37) [0x7ffff4c29a37]
#31 /lib64/libc.so.6(__libc_start_main+0x7c) [0x7ffff4c29aec]
#32 /tmp/.mount_FreeCAAnU6ka/usr/bin/freecad(+0x6af1) [0x55555555aaf1]
[Inferior 1 (process 19560) exited with code 01]
(gdb)
Thanks
edit: after debugging freeCAD, i tried to run it from console and it seemed to start at 1st attempt but then, as I moved the window around, it crashed and the console returned this:
does it mean that my nouveau is the problem?freecad: ../nouveau/pushbuf.c:730: nouveau_pushbuf_data: Assertion `kref' failed.
/tmp/.mount_FreeCAXIWvPw/AppRun: line 42: 19986 Aborted ${MAIN} "$@"
bash-5.1$
Last edited by freenico on Tue Aug 02, 2022 7:51 pm, edited 2 times in total.
Re: freecad0.20 continuously crashing when launching
Seems to me that issue is most likely related to whatever drivers you are using. Are you using the Nouveau drivers? I seem to recall that they have performance/stability issues with accelerated 3d graphics but work well for accelerated 2d.
Based on the SIGSEGV message you received it 100% looks to be related to the nouveau drivers. I'd try to update them to make sure you are using the latest ones, or revisit trying to get the official Nvidia drivers working again.
Based on the SIGSEGV message you received it 100% looks to be related to the nouveau drivers. I'd try to update them to make sure you are using the latest ones, or revisit trying to get the official Nvidia drivers working again.
- adrianinsaval
- Veteran
- Posts: 5541
- Joined: Thu Apr 05, 2018 5:15 pm
Re: freecad0.20 continuously crashing when launching
this does not make sense, opengl is not a driver, you probably meant nouveau, which is an open source driver for nvidia cards.
Again, opengl is not a driver, also I'm not sure I would consider inkscape graphically demanding, kdenlive odes not have GPU acceleration AFAIK so it's not going to be intensive either, no clue about darktable. Besides that note that 3D rendering is a different thing so the fact that some 2D apps work fine is no indication of anything, plus those might not be using opengl at all.
This is most likely a graphics driver issue so there isn't much FreeCAD can do about it, what kind of issues did you get with the proprietary driver? Are you sure those issues are still around? I never had a good experience with the nouveau driver so I'm inclined to recommend using the proprietary driver instead.
Also, are you certain that you have software opengl enabled? with that it should work, you might need to restart FreeCAD for the changes to take effect and if FreeCAD crashed on you the setting might not have been saved. Instead of waiting to get a succesfull launch I suggest running FreeCADCmd instead and running these commands in it to set that preference:
Code: Select all
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/OpenGL").SetBool("UseSoftwareOpenGL", 1)
FreeCAD.saveParameter()
Re: freecad0.20 continuously crashing when launching
Thank you all for the effort and inputs.
Anyway, instead of going through the painstaking installation of the (apparently obsolete/deprecated) nvidia drivers I noticed a "Use Software OpenGL" box under Edit.Preferences>Display>3d View>Rendering which, by default, was unchecked. I tried my luck and checked both OpenGl boxes (https://wiki.freecadweb.org/Preferences_Editor#Display) and now it seems that my FreeCAD starts at 1st launch, every time.
I am a happy bunny now and always praise the free community. Huge thanks go, of course, to the developers for their fantastic work and dedication.
Regards,
yes, I meant the nuveau drivers and not the OpenGL software.adrianinsaval wrote: ↑Tue Aug 02, 2022 8:09 pm this does not make sense, opengl is not a driver, you probably meant nouveau, which is an open source driver for nvidia cards.
Anyway, instead of going through the painstaking installation of the (apparently obsolete/deprecated) nvidia drivers I noticed a "Use Software OpenGL" box under Edit.Preferences>Display>3d View>Rendering which, by default, was unchecked. I tried my luck and checked both OpenGl boxes (https://wiki.freecadweb.org/Preferences_Editor#Display) and now it seems that my FreeCAD starts at 1st launch, every time.
I am a happy bunny now and always praise the free community. Huge thanks go, of course, to the developers for their fantastic work and dedication.
Regards,
Re: [SOLVED] freecad0.20 continuously crashing when launching
Once in a while we have users over here that have difficulties with the nouveau drivers.
Does it make sense to contact them and ask if they can also use FC to test their drivers?
Does it make sense to contact them and ask if they can also use FC to test their drivers?
- adrianinsaval
- Veteran
- Posts: 5541
- Joined: Thu Apr 05, 2018 5:15 pm
Re: freecad0.20 continuously crashing when launching
But that was the first recommendation you got and you claimed it didn't workfreenico wrote: ↑Wed Aug 03, 2022 7:51 am Anyway, instead of going through the painstaking installation of the (apparently obsolete/deprecated) nvidia drivers I noticed a "Use Software OpenGL" box under Edit.Preferences>Display>3d View>Rendering which, by default, was unchecked. I tried my luck and checked both OpenGl boxes (https://wiki.freecadweb.org/Preferences_Editor#Display) and now it seems that my FreeCAD starts at 1st launch, every time.
Anyways, problem solved I guess. Unfortunately I don't think support for those older cards is going to improve, I don't think there's much the nouveau guys can do if Nvidia doesn't opensource their older stuff and Nvidia itself wants you to buy the new shiny thing so they're not going to do anything for older cards.
Re: [SOLVED] freecad0.20 continuously crashing when launching
yes it was, except that i didnt see the checked 'use Software OpenGL' boxadrianinsaval wrote: ↑Wed Aug 03, 2022 10:06 am But that was the first recommendation you got and you claimed it didn't work