View Issue Details

IDProjectCategoryView StatusLast Update
0003899TechDrawBugpublic2019-03-28 14:13
Reporterfabianinostroza Assigned Towandererfan  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version0.18 
Summary0003899: FreeCAD crashes on insertion of new default page (TechDraw)
DescriptionOn insertion of new default page in the techdraw workbench FreeCAD crashes.
If a document already contains a techdraw page and it is open by the last version FreeCAD also crashes.

Steps To Reproduce1. Open FreeCAD
2. Create a new document
3. Switch to the TechDraw workbench and "Insert a new default drawing page"
4. Crash.

Console output
FreeCAD 0.18, Libs: 0.18R16079 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Sheet Metal workbench loaded
A3 not available
freecad-daily: src/intel/genxml/gen7_pack.h:72: __gen_uint: Assertion `v <= max' failed.
Abortado
Additional InformationThis version doesn't crash
OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git) AppImage
Build type: None
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Spanish/Chile (es_CL)

This version crashes
OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16079 (Git) AppImage
Build type: Release
Branch: master
Hash: 6363c90a20b296ab69d7b52230009928199d90df
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Spanish/Chile (es_CL)
TagsNo tags attached.
FreeCAD Information

Activities

Kunda1

2019-03-10 21:48

administrator   ~0012877

Moved to 'TechDraw' and pinging @wandererfan

wandererfan

2019-03-11 12:35

manager   ~0012885

Can anybody confirm this? It doesn't happen with this freecad-daily:

OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16079 (Git)
Build type: Release
Branch: master
Hash: 6363c90a20b296ab69d7b52230009928199d90df
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

wandererfan

2019-03-11 12:53

manager   ~0012886

Similar error here: Crash when opeing python console on latest dev version

And here: Debian Bug report logs - #922346

More of the same on google.

Looks to be an issue with mesa??

wandererfan

2019-03-11 17:47

manager   ~0012887

Link to Forum discussion.

wandererfan

2019-03-11 19:39

manager   ~0012888

Can't duplicate on this AppImage version (Qt5/Py3):

OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16079 (Git) AppImage
Build type: Release
Branch: master
Hash: 6363c90a20b296ab69d7b52230009928199d90df
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

wandererfan

2019-03-11 22:19

manager   ~0012889

Can't duplicate on this Appimage either (NOTE: same version as OP):
OS: Linux Mint 19 Tara
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16079 (Git) AppImage
Build type: Release
Branch: master
Hash: 6363c90a20b296ab69d7b52230009928199d90df
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

fabianinostroza

2019-03-12 01:51

reporter   ~0012891

This is the backtrace I get when FreeCAD crashes
>>> bt
#0  0x00007ffff4e028bb in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff4ded535 in __GI_abort () at abort.c:79
0000002  0x00007ffff4ded40f in __assert_fail_base (fmt=0x7fffe9505c32 "%s%s%s:%u: %s%sLa declaración `%s' no se cumple.\n%n", assertion=0x7fffe4cdc14c "v <= max", file=0x7fffe4cdd18c "src/intel/genxml/gen7_pack.h", line=72, function=<optimized out>) at assert.c:92
0000003  0x00007ffff4dfb0f2 in __GI___assert_fail (assertion=0x7fffe4cdc14c "v <= max", file=0x7fffe4cdd18c "src/intel/genxml/gen7_pack.h", line=72, function=0x7fffe4cdd7e8 "__gen_uint") at assert.c:101
0000004  0x00007fffe4a254ec in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
0000005  0x00007fffe45e5c01 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
0000006  0x00007fffe45d0e2c in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
0000007  0x00007fffe4777eac in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
0000008  0x00007fffe477778b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
0000009  0x00007fffe4704765 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
0000010 0x00007ffff76e492e in  ()
0000011 0x0000000000000000 in  ()

Should I compile a debug version of FreeCAD (any tip)?

fabianinostroza

2019-03-12 04:27

reporter   ~0012893

Last edited: 2019-03-12 04:28

There is a FreeCAD package in the debian repositories, it didn't crash.
I built a debug version from git master and it didn't crash.

Then tried the AppImage and now it doesn't crash.
Tomorrow will investigate what caused the change (maybe some build dependency?).

wandererfan

2019-03-13 12:04

manager   ~0012905

Consensus (see Forum discussion) seems to be that this is a Mesa issue. Doesn't look like it can be corrected in FreeCAD.

wandererfan

2019-03-16 11:27

manager   ~0012915

Possibly related forum disucssion

fabianinostroza

2019-03-17 13:44

reporter   ~0012926

I've checked the package update changelog on my system and there was an update to the package
libgl1-mesa-glx
that fixed the following bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922346 (same assertion message).

I'm not using wayland.

Why the 0.17 AppImage didn't trigger the bug?

wandererfan

2019-03-20 13:28

manager   ~0012929

"Why the 0.17 AppImage didn't trigger the bug?"

I don't know. The AppImages have a lot of libraries included that override the system libraries. Maybe different versions in the v0.17 AppImage vs the v0.18 AppImage?

I don't know very much about AppImages.

Should this ticket be closed?

wandererfan

2019-03-28 14:12

manager   ~0012973

I'm closing this one since it appears to be something outside of FreeCAD that is causing the problem.

If there are objections, we can reopen it.

wandererfan

2019-03-28 14:13

manager   ~0012974

Closed. Not fixable within FreeCAD.

Issue History

Date Modified Username Field Change
2019-03-10 21:44 fabianinostroza New Issue
2019-03-10 21:47 Kunda1 Project FreeCAD => TechDraw
2019-03-10 21:48 Kunda1 Note Added: 0012877
2019-03-10 22:18 wmayer Assigned To => wandererfan
2019-03-10 22:18 wmayer Status new => assigned
2019-03-11 12:35 wandererfan Note Added: 0012885
2019-03-11 12:53 wandererfan Note Added: 0012886
2019-03-11 17:47 wandererfan Note Added: 0012887
2019-03-11 19:39 wandererfan Note Added: 0012888
2019-03-11 22:19 wandererfan Note Added: 0012889
2019-03-11 22:20 wandererfan Status assigned => feedback
2019-03-12 01:51 fabianinostroza Note Added: 0012891
2019-03-12 01:51 fabianinostroza Status feedback => assigned
2019-03-12 04:27 fabianinostroza Note Added: 0012893
2019-03-12 04:28 fabianinostroza Note Edited: 0012893
2019-03-13 12:04 wandererfan Note Added: 0012905
2019-03-16 11:27 wandererfan Note Added: 0012915
2019-03-17 13:44 fabianinostroza Note Added: 0012926
2019-03-20 13:28 wandererfan Note Added: 0012929
2019-03-28 14:12 wandererfan Status assigned => resolved
2019-03-28 14:12 wandererfan Resolution open => no change required
2019-03-28 14:12 wandererfan Note Added: 0012973
2019-03-28 14:13 wandererfan Status resolved => closed
2019-03-28 14:13 wandererfan Note Added: 0012974