Page 1 of 1

Freecad Crashes!

PostPosted: Dec 10th, '17, 10:20
by pedro
Hi!
I was happy to find Freecad in the repos, but i'm sorry to say that it crashes on me on my first youtube tutorial.
How to make a cut:
https://www.youtube.com/watch?v=TLf2KVrtGew&t=255s

When trying to make a cut (using the "part" workbench), the whole application crashes and dissapear from the screen.

This is the output if I start freecad in Terminal:

Code: Select all
$ /usr/bin/FreeCAD %F
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   #### 
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

File format not supported: %F
SIGSEGV signal raised
/usr/bin/FreeCAD: rad 2: 17743 Segmenteringsfel        (minnesutskrift skapad) LD_LIBRARY_PATH=/usr/lib64/freecad/lib /usr/lib64/freecad/bin/FreeCAD "$@"

Re: Freecad Crashes!

PostPosted: Dec 10th, '17, 15:26
by doktor5000
You should run freecad via gdb as explained in https://wiki.mageia.org/en/Debugging_software_crashes and for that you will need to add or enable debug media, and install -debuginfo packages as shown in gdb via debuginfo-install.
Afterwards please report that as a bug, after searching if it hasn't been reported yet already: https://wiki.mageia.org/en/How_to_report_a_bug_properly
For completeness's sake and also to allow others to follow up on that bug report, please also post the link to it here in the thread, thanks.

Re: Freecad Crashes!

PostPosted: Dec 16th, '17, 17:47
by pedro
I dont really understand how to do this debugging. I tried to start Freecad with gdb, but freecad did not start at all.

Code: Select all
$ gdb /usr/bin/FreeCAD %F
GNU gdb (GDB) 7.12-16.mga6 (Mageia release 6)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-mageia-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
"/usr/bin/FreeCAD": not in executable format: Filformatet känns inte igen
/home/pedro/%F: Filen eller katalogen finns inte.
(gdb)

Re: Freecad Crashes!

PostPosted: Dec 17th, '17, 00:29
by doktor5000
You're not supposed to run freecad with further arguments, better try without the %F which is usually a placeholder for a file that is handed over as an argument to freecad.

Best take a look at https://www.freecadweb.org/wiki/Debugging#For_Linux and also take a look at the wiki page for debugging linked above.
Maybe it's easier to start freecad like you normally would, then attach gdb to it, then reproduce the crash and generate the backtrace in gdb.

Re: Freecad Crashes!

PostPosted: Dec 17th, '17, 16:33
by pedro
doktor5000 wrote:You're not supposed to run freecad with further arguments, better try without the %F which is usually a placeholder for a file that is handed over as an argument to freecad.

Best take a look at https://www.freecadweb.org/wiki/Debugging#For_Linux and also take a look at the wiki page for debugging linked above.
Maybe it's easier to start freecad like you normally would, then attach gdb to it, then reproduce the crash and generate the backtrace in gdb.


I run FreeCAD with the %F argument becouse I took it from the start menu.

I was checking out the link, but as I understand it I need to compile a "debug build of FreeCAD" ? and thats a bit over my head :) I guess I could manage the the rest of the task though,

For Linux

Linux Debugging ---->

Prerequisites:

software package gdb installed
a debug build of FreeCAD (at this time only available by building from source)
a FreeCAD model that causes a crash

Steps: Enter the following in your terminal window:

$ cd FreeCAD/bin
$ gdb FreeCAD

GNUdebugger will output some initializing information. The (gdb) shows GNUDebugger is running in the terminal, now input:

(gdb) handle SIG33 noprint nostop
(gdb) run

FreeCAD will now start up. Perform the steps that cause FreeCAD to crash or freeze, then enter in the terminal window:

(gdb) bt

This will generate a lengthy listing of exactly what the program was doing when it crashed or froze. Include this with your problem report.

Re: Freecad Crashes!

PostPosted: Dec 18th, '17, 00:48
by doktor5000
We have debug packages available via our repos, and if you would run it via gdb then gdb will tell you automatically which debug packages to install.