Freecad crash after pushing new document button

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
tiagojanz

Freecad crash after pushing new document button

Post by tiagojanz »

Hi all,
Freecad crash after pushing new document button.
Im using ubuntu Jaunty.

thanks
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Freecad crash after pushing new document button

Post by yorik »

Hi,
Could you try to run freecad from a terminal?
Open a terminal window, and type "freecad" (without the quotes). This way, when freecad crashes, probably an error message will appear on the terminal. That error message could inform us better on what happened...
Yorik
wmayer
Founder
Posts: 20317
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Freecad crash after pushing new document button

Post by wmayer »

Hi,

it would also be interestng to know whether you built the binaries from the sources or you installed the package from the SF download section. In case you built the sources the best way would be to start FreeCAD with the debugger gdb because then we'll know exactly the source file and line where the crash happens.

Werner
tiagojanz

Re: Freecad crash after pushing new document button

Post by tiagojanz »

Hi,
sorry for the delay


FreeCAD 0.7, Libs: 0.7R1786
(c) Juergen Riegel, Werner Mayer 2001-2009
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

No module named MeshGui

After I push the new document button

freecad: SoFieldContainer.cpp:825: static SoFieldContainer* SoFieldContainer::checkCopy(const SoFieldContainer*): Assertion `copiedinstances' failed.
Abnormal program termination...


I did download from sourceforge the binary version.

And Im running a AMD64 with Jaunty
wmayer
Founder
Posts: 20317
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Freecad crash after pushing new document button

Post by wmayer »

I assume you're using Jaunty 32-bit.

I just downloaded the package from SF and installed it on my virtual machine with Jaunty but everything works fine for me.

The error message you get is related to the Coin3d library package. There are two strange points:
* when I set a breakpoint in the method SoFieldContainer::checkCopy, start FreeCAD in the debugger and press the "New" button this code doesn't get executed at all

* the line number 825 doesn't match to the method SoFieldContainer::checkCopy. It's the line 803 for Coin-2.5.0, but it's in fact 825 for Coin-3.0.0

What packages for Coin have you installed on your system? Here it is 2.5.0-2. Do you have further Coin installations? Maybe built directly from sources? It seems that FreeCAD uses the binaries of Coin.3.0 instead of the 2.5 version.
tiagojanz

Re: Freecad crash after pushing new document button

Post by tiagojanz »

No, Im using Jaunty 64, I am not sure what libs I have installed since dont know how to build from source, I've just clicked the .deb and voilá. well no quite, at first I had some trouble cause of a dependecy, but after that it was all good.
How do I check about that coin thing?
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Freecad crash after pushing new document button

Post by yorik »

hm if you use a 64bit distribution, the 32bit package you picked on sourceforge won't work I think.
I have a 64bit package on my site that works on Jaunty:
http://yorik.orgfree.com/archive/packag ... _amd64.deb

Be sure to download and install this pivy package before installing FreeCAd itself.
http://yorik.orgfree.com/archive/packag ... _amd64.deb

Any problem just come back here
Cheers
Yorik
tiagojanz

Re: Freecad crash after pushing new document button

Post by tiagojanz »

I have installed everything as you told and for each one of the packages the installer said it was a reinstall.
The issue its still there.

Some aditional info, this is not a clean install of jaunty, I have the same system since gutsy.

At startup the message "No module named Meshgui" appears in the left bottom corner.
wmayer
Founder
Posts: 20317
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Freecad crash after pushing new document button

Post by wmayer »

Doing a dist-upgrade shouldn't damage your system but I think there are different library versions installed than FreeCAD was built for. Yorik can you please tell us which package versions (full name) do you have installed of the following libs:

* Python
* OpenCascade
* Qt
* Coin3D
* ODE
* SoQt
* Xerces-C++
* zlib
* boost
* OpenCV

I think Coin3D is the most interesting here because there we got the crash.

If you're familiar with the command line you can use dpkg or -- if not -- the Gui frontend Synaptic to find out the version numbers.
tiagojanz

Re: Freecad crash after pushing new document button

Post by tiagojanz »

Python - 2.5 and 2.6
OpenCascade - 6.3 but there some libs 6.2.7
Qt - 4.5
Coin3D - 2.5.0-2
ODE - didn't found
SoQt - 1.6.1-6
Xerces C++ - 2.8.0-3
zlib - 1.1.2.3.3
boost - 1.35.0
OpenCV - 1.0.0.6
Post Reply