View Issue Details

IDProjectCategoryView StatusLast Update
0001357FreeCADBugpublic2014-03-18 00:06
Reporterfalrus Assigned Towmayer  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSLinuxOS Version3.12.7-2-ARCH
Product Version0.13 
Summary0001357: Freecad fails when sketch being deleted
DescriptionWhen I try to delete sketch "Sketch004002004010003007" from attached file, Freecad fails.
Steps To ReproduceOpen file, delete sketch "Sketch004002004010003007"
TagsNo tags attached.
FreeCAD Information

Relationships

related to 0001480 closedwmayer Crash when editing sketch with Pad hidden 

Activities

falrus

2014-01-16 20:20

reporter  

airsoft_part_base2.fcstd (Attachment missing)

tanderson69

2014-01-16 21:03

developer   ~0004085

This does not crash here. There is a recursive paint error in the terminal output. This has to do with a bug in Qt(we think). As a work around, move the scroll bar off of the bottom in the tree view and it won't crash.

yorik

2014-01-28 20:44

administrator   ~0004128

It doesn't crash for me either. This is my verison of Qt, please check what yours is? (FreeCAD->Help->About FreeCAD->Copy to clipboard)

OS: Debian GNU/Linux testing (jessie)
Platform: 64-bit
Version: 0.14.3064 (Git)
Branch: master
Hash: 69cc7ec90138b3d045085c27085e273eea2c3847
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.6.0

wmayer

2014-03-10 14:56

administrator   ~0004405

This might be a work around: http://forum.freecadweb.org/viewtopic.php?f=3&t=4536&start=10#p48113

tanderson69

2014-03-10 16:28

developer   ~0004408

Last edited: 2014-03-10 16:29

I got setup to debug qt this morning. Found the code where the recursive paint warning was being generated. I will upload the back trace. It is pretty easy to spot the recursion. pointer "0xa4da50" is first scene at entry 56 and is the source of the warning at entry 0. It's hard to get a back trace when this warning isn't generated as every widget on the screen runs through this code. So I am guessing that entries 39-43 are somehow different when the scroll bar is not at the bottom.

It looks like someone has dealt with this before. I forced "MainWindow::showMessage" to use the MetaObject::invokeMethod instead of the direct call. My recursive repaint warnings went away. Wondering if we can just leave the queued connection for all versions of qt?

tanderson69

2014-03-10 16:28

developer  

repaintBacktrace.txt (Attachment missing)

wmayer

2014-03-11 09:18

administrator   ~0004425

OK, chrisf confirmed that this also fixes his crash. http://forum.freecadweb.org/viewtopic.php?f=3&t=4536&sid=b2db7e26de2a788419f32b3610782a46&start=10#p48174

I'll activate the work around for Qt >= 4.6 because with prior versions there was no crash.

Related Changesets

FreeCAD: master 1818d375

2014-03-11 10:27:55

wmayer

Details Diff
+ fixes 0001357: Freecad fails when sketch being deleted Affected Issues
0001357
mod - src/Gui/MainWindow.cpp Diff File

Issue History

Date Modified Username Field Change
2014-01-16 20:20 falrus New Issue
2014-01-16 20:20 falrus File Added: airsoft_part_base2.fcstd
2014-01-16 21:03 tanderson69 Note Added: 0004085
2014-01-28 20:44 yorik Note Added: 0004128
2014-01-28 20:44 yorik Assigned To => yorik
2014-01-28 20:44 yorik Status new => feedback
2014-02-24 15:23 yorik Assigned To yorik =>
2014-03-10 14:56 wmayer Note Added: 0004405
2014-03-10 16:28 tanderson69 Note Added: 0004408
2014-03-10 16:28 tanderson69 File Added: repaintBacktrace.txt
2014-03-10 16:29 tanderson69 Note Edited: 0004408
2014-03-11 09:18 wmayer Note Added: 0004425
2014-03-11 09:39 wmayer Changeset attached => FreeCAD Master master 1818d375
2014-03-11 09:39 wmayer Assigned To => wmayer
2014-03-11 09:39 wmayer Status feedback => closed
2014-03-11 09:39 wmayer Resolution open => fixed
2014-03-18 00:06 wmayer Relationship added related to 0001480