View Issue Details

IDProjectCategoryView StatusLast Update
0001708PartDesignBugpublic2014-12-16 11:22
ReporterProject23D Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionno change required 
OSUbuntu 64 bitOS Version14.04 Unity 
Product Version0.14 
Summary0001708: FreeCAD Crashes chronically when sketching to face on newly made box
DescriptionFreeCAD is crashing every time I attempt to create a sketch on a box, with no other tabs or objects

This has never happened until last night.

I haven't changed any of the defaults

I have a couple test macros, but haven't used them recently.

Been using freecad for two and half weeks now.

program crashed before and after OS package update
Steps To ReproduceOpen FreeCAD
Workbench -> Parts Design
Create new empty document
Create Geometry -> box
Rotate to bottom view
Select bottom face -> create sketch on face...program "grays" then crashes
Additional InformationComputer:
load average: 0.16 0.10 0.20
CPU Intel dual-core T4400 @ 2.2GHz
RAM usage: 1.5GB of 3.8GB
Model: Dell Insprion 1545 laptop

well I would copy/paste what the crash reporter gives me, but now I don't get the dialog box anymore..
TagsNo tags attached.
FreeCAD Information

Activities

wmayer

2014-08-24 09:22

administrator   ~0004996

Last edited: 2014-08-24 09:23

It would be good to post the stacktrace of the crash. The steps:
Open a terminal window and enter the stuff below
gdb freecad
run
# let it crash
bt

Now copy&paste the output.

Then you should also paste the exact version information which you get from the About FreeCAD dialog in the Help menu.

Project23D

2014-08-28 13:08

reporter   ~0005015

This GDB was configured as "x86_64-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"...
Reading symbols from freecad...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/freecad
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
FreeCAD 0.14, Libs: 0.14R2935 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2011
  ##### #### ### ####
  # # # # # #
  # ## #### #### # # # # #
  #### # # # # # # # ##### # #
  # # #### #### # # # # #
  # # # # # # # # # ## ## ##
  # # #### #### ### # # #### ## ## ##

[New Thread 0x7fffdf393700 (LWP 7797)]
[New Thread 0x7fffdeb92700 (LWP 7798)]
[New Thread 0x7fffdde6b700 (LWP 7799)]
[New Thread 0x7fffdd66a700 (LWP 7800)]
[New Thread 0x7fffdce69700 (LWP 7801)]
[Thread 0x7fffdce69700 (LWP 7801) exited]
[New Thread 0x7fffdce69700 (LWP 7803)]
[Thread 0x7fffdd66a700 (LWP 7800) exited]
freecad: SoCoordinateElement.cpp:178: const SbVec3f& SoCoordinateElement::get3(int) const: Assertion `index >= 0 && index < this->numCoords' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff4af1f89 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb)

Project23D

2014-08-28 13:11

reporter   ~0005016

this was from a computer with a fresh install (last night) of Ubuntu 14.04 and freecad was the first (this morning) program installed.

wmayer

2014-08-28 14:09

administrator   ~0005018

Last edited: 2014-08-28 14:11

OK, the relevant information is this:
> freecad: SoCoordinateElement.cpp:178: const SbVec3f& SoCoordinateElement::get3(int) const: Assertion `index >= 0 && index < this->numCoords' failed.
There was a number passed that is out of range.

Since your version 0.14 R2935 seems a bit old (our official release was 0.14.3702) the chance is high that this bug is already fixed. The official Ubuntu package was never an official release from us and I don't know why they put this into the repos (http://packages.ubuntu.com/trusty/freecad).

Thus, I recommend to either use the stable 0.14 version from our PPA or even the daily build.

Latest stable: https://launchpad.net/~freecad-maintainers/+archive/ubuntu/freecad-stable/+files/freecad_0.14.3702-1ppa1~trusty1_amd64.deb or add this to your sources.list file:
"deb http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu trusty main"

And this is the entry for the daily build:
"deb http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu trusty main"

mat_fr

2014-11-09 10:03

reporter   ~0005292

Last edited: 2014-11-09 10:17

Hi,
Just had a similar (I think) issue with FreeCAD 0.14, Libs: 0.14R3702 (Git) on Debian 7:
I made a CAD using a cylinder minus a box to get a flat face, then hollowed it. Made a sketch on the flat face to pocket it. The sketch was linked to the faces edges (external geometry). All went ok.
I made another CAD with a simple box, same size as the previous face, copied/pasted the sketch on the new CAD (I got a warning concerning dependencies to a non selected object, which was expected), then tried to apply it on the newly created box face. FreeCad crashed. Here is gd output:
[New Thread 0x7fffd9080700 (LWP 4061)]
[New Thread 0x7fffd7b69700 (LWP 4062)]
[New Thread 0x7fffd4940700 (LWP 4063)]
[New Thread 0x7fff8fffd700 (LWP 4064)]
[New Thread 0x7fff8f19f700 (LWP 4065)]
[New Thread 0x7fff8d587700 (LWP 4066)]
[New Thread 0x7fff8cd86700 (LWP 4067)]
Lost link to 'Thickness' while loading, maybe an object was not loaded correctly
Lost link to 'Thickness' while loading, maybe an object was not loaded correctly
Lost link to 'Thickness' while loading, maybe an object was not loaded correctly
Lost link to 'Thickness' while loading, maybe an object was not loaded correctly
Lost link to 'Thickness' while loading, maybe an object was not loaded correctly
[Thread 0x7fff8cd86700 (LWP 4067) exited]

Program received signal SIGSEGV, Segmentation fault.
__memmove_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:93
93 ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Aucun fichier ou dossier de ce type.

Last sentence meaning that the memcpy-ssse3-back.S is not found (no such file or directory). I can't find this file on my computer so it might be a dependency problem...

wmayer

2014-11-09 17:17

administrator   ~0005294

> Just had a similar (I think) issue with FreeCAD 0.14
No, it's not. Just look at the error message you and he got. His issue is an assert that failed because an index out of range is passed. This issue seems to be fixed.

Your problem is a segmentation fault because the program accessed a bad area in the RAM. Can you please offer the stack trace please so that we can see where the crash happens? See my first answer what the steps are.

mat_fr

2014-11-09 18:10

reporter   ~0005296

Sorry I had to go on working so I changed the model and went on with a workaround. Now when I try to reproduce the error it doesn't crash anymore...
I'll try to reproduce it and let you know if I get it to crash again (it was systematic with the model I had done).

artboyko2006

2014-11-09 18:38

reporter   ~0005297

Not reproduced at
OS: Ubuntu 12.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4156 (Git)
Branch: master
Hash: d66fc092e1581d3b2ef7b3cbe54197e3309e077b
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
OCC version: 6.7.1

wmayer

2014-12-16 11:22

administrator   ~0005390

The used version is too old and has already been fixed with the official 0.14 release

Issue History

Date Modified Username Field Change
2014-08-23 23:50 Project23D New Issue
2014-08-24 09:22 wmayer Note Added: 0004996
2014-08-24 09:23 wmayer Note Edited: 0004996
2014-08-27 08:05 wmayer Status new => feedback
2014-08-28 13:08 Project23D Note Added: 0005015
2014-08-28 13:08 Project23D Status feedback => new
2014-08-28 13:11 Project23D Note Added: 0005016
2014-08-28 14:09 wmayer Note Added: 0005018
2014-08-28 14:11 wmayer Note Edited: 0005018
2014-08-28 14:12 wmayer Status new => feedback
2014-11-09 10:03 mat_fr Note Added: 0005292
2014-11-09 10:16 mat_fr Note Edited: 0005292
2014-11-09 10:17 mat_fr Note Edited: 0005292
2014-11-09 17:17 wmayer Note Added: 0005294
2014-11-09 18:10 mat_fr Note Added: 0005296
2014-11-09 18:38 artboyko2006 Note Added: 0005297
2014-12-16 11:22 wmayer Note Added: 0005390
2014-12-16 11:22 wmayer Status feedback => closed
2014-12-16 11:22 wmayer Resolution open => no change required