FreeCAD crashes - Bug?

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!
schloeri
Posts: 28
Joined: Wed Apr 20, 2016 5:48 pm

FreeCAD crashes - Bug?

Postby schloeri » Wed Apr 20, 2016 6:00 pm

Hello everybody,

Since version 0.17 I cannot use FreeCAD any longer. When I start FreeCAD I can open an existing file. With one file I cannot even click on the part in the 3D, with another file I can click on the parts in the 3D but when clicking on the part in the tree view FreeCAD crashes.
Running from the console I get "Speicherzugriffsfehler" ... "Memory access error".
Versions:
FreeCAD OS: "openSUSE 13.2 (Harlequin) (x86_64)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.7402 (Git) (Packman)
Build type: Release
Branch: master
Hash: 3e941f2b8742c895e7ad3ef1b30d7eae73ae4eca
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.18-dev

Linux kernel 3.16.7

Am I correct here or do I need to post that problem anywhere else?

Cheers, Stefan
jobermayr
Posts: 88
Joined: Fri Dec 02, 2011 4:39 pm
Location: Bavaria that's near Germany

Re: FreeCAD crashes - Bug?

Postby jobermayr » Wed Apr 20, 2016 7:03 pm

Please do

Code: Select all

$ sudo zypper in FreeCAD-debuginfo glibc-debuginfo
$ gdb /usr/bin/FreeCAD -batch -ex "run"
-ex "bt full" -ex "q"
let FreeCAD crash and
provide output then.

It seems it is openSUSE 13.2 only. On 13.1 and Tumbleweed it seems to work properly.
schloeri
Posts: 28
Joined: Wed Apr 20, 2016 5:48 pm

Re: FreeCAD crashes - Bug?

Postby schloeri » Wed Apr 20, 2016 8:21 pm

thanks for the reply.

FreeCAD 0.16 worked well on my openSuSE 13.2 system.

I installed the packages and ran the command. I did the same where FreeCAD 0.17 crashes. It did not terminate as without running under the gdb command but it stalled. The output of gdb is massive and it does not stop so I can only post the lines of just before I <Ctrl><C> the gdb command. The output gdb started with

Code: Select all

warning: /etc/gdbinit.d/gdb-heap.py: Datei oder Verzeichnis nicht gefunden
Got object file from memory but can't read symbols: File truncated.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
FreeCAD 0.17, Libs: 0.17R7402 (Git) (Packman)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Fasteners workbench Loaded
[New Thread 0x7fffcb680700 (LWP 3109)]
[New Thread 0x7fff8ad7d700 (LWP 3110)]
[New Thread 0x7fff89ee5700 (LWP 3111)]
[New Thread 0x7fff83fff700 (LWP 3112)]
[New Thread 0x7fff837fe700 (LWP 3113)]
[New Thread 0x7fff82ffd700 (LWP 3114)]
And it permanently generated lines such as

Code: Select all

#2813 any<boost::any const> (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x21f282>, this=0x55c09a8) at /usr/include/boost/any.hpp:72
No locals.
#2814 holder (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x2164e0>, this=0x55c09a0) at /usr/include/boost/any.hpp:175
No locals.
#2815 any<boost::any const> (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x21f282>, this=0x55c0988) at /usr/include/boost/any.hpp:72
No locals.
#2816 holder (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x2164e0>, this=0x55c0980) at /usr/include/boost/any.hpp:175
No locals.
#2817 any<boost::any const> (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x21f282>, this=0x55c0968) at /usr/include/boost/any.hpp:72
No locals.
#2818 holder (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x2164e0>, this=0x55c0960) at /usr/include/boost/any.hpp:175
No locals.
#2819 any<boost::any const> (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x21f282>, this=0x55c0948) at /usr/include/boost/any.hpp:72
No locals.
#2820 holder (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x2164e0>, this=0x55c0940) at /usr/include/boost/any.hpp:175
No locals.
#2821 any<boost::any const> (value=<unknown type in /usr/lib/debug/usr/lib64/FreeCAD/lib/libFreeCADApp.so.debug, CU 0x1db99f, DIE 0x21f282>, this=0x55c0928) at /usr/include/boost/any.hpp:72
No locals.
I hope this helps as I am not into debugging.

Cherrs, Stefan
User avatar
sgrogan
Posts: 5634
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD crashes - Bug?

Postby sgrogan » Wed Apr 20, 2016 9:04 pm

Hello schloeri! Welcome to FreeCAD and the forum :)
First, thanks for the quality of your 2 first posts. You provided the necessary information in a clear and concise manner. And the help forum is the perfect place to triage potential bugs.

I'm not on openSuSE, so this might be a wild goose chase. But what version of libboost are you using?
schloeri
Posts: 28
Joined: Wed Apr 20, 2016 5:48 pm

Re: FreeCAD crashes - Bug?

Postby schloeri » Wed Apr 20, 2016 9:18 pm

thanks, I do what I can :)

The libboost libraries (date_time, filesystem, iostreams, program_options, python, regex, signals, system, thread) are version 1.54.0
User avatar
sgrogan
Posts: 5634
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD crashes - Bug?

Postby sgrogan » Wed Apr 20, 2016 10:01 pm

schloeri wrote:thanks, I do what I can :)
Thanks again, shot in the dark worked. Nasty bug in libboost 1.54. Older and newer versions work. Not sure how to fix but this is definitely the problem.
schloeri
Posts: 28
Joined: Wed Apr 20, 2016 5:48 pm

Re: FreeCAD crashes - Bug?

Postby schloeri » Wed Apr 20, 2016 10:41 pm

ok, thanks for the hint.

Interestingly that library version runs on my computer since February 2015. I have been using FreeCAD since then so something must have changed within FreeCAD
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCAD crashes - Bug?

Postby NormandC » Wed Apr 20, 2016 11:27 pm

Hello Stefan,
schloeri wrote:FreeCAD OS: "openSUSE 13.2 (Harlequin) (x86_64)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.7402 (Git) (Packman)
This version brings many disruptive changes to the Part Design workbench (it includes what devs and regular users call "PartDesignNext", since it's the next generation for this workbench), and there are many bugs to fix, as it is the early start of the 0.17 development cycle, and many things don't work like they used to. Theses changes are the reason why Boost 1.55+ is required.

Unless you want to experiment the new features and participate in bug hunting, it is best to stay with 0.16.6700, which was released just last week. Even better would be to have both installed on your system, 0.16 for regular work and 0.17 for testing.
schloeri
Posts: 28
Joined: Wed Apr 20, 2016 5:48 pm

Re: FreeCAD crashes - Bug?

Postby schloeri » Thu Apr 21, 2016 12:15 am

ok, let me try to downgrade to FreeCAD 0.16

In the meantime I did install libboost 1.56 and 1.58 (not beside each other).
FreeCAD would not start at all. I then did symbolic linking from all libboost-*.1.54.0 to libboost-*.1.5(6 or 8).0. At least FreeCAD did start but no luck with opening a file -> crash. I went back to libboost 1.54

I just saw when starting FreeCAD that the internal console prints

Code: Select all

Unhandled std::exception caught in GUIApplication::notify.
The error message is: Keine Berechtigung
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCAD crashes - Bug?

Postby NormandC » Thu Apr 21, 2016 12:17 am

schloeri wrote:In the meantime I did install libboost 1.56 and 1.58 (not beside each other).
FreeCAD would not start at all.
You cannot simply change the Boost version, you need to recompile FreeCAD with a specific Boost version.