View Issue Details

IDProjectCategoryView StatusLast Update
0002971TechDraw[FreeCAD] Bugpublic2017-04-28 11:22
ReportersankeyAssigned To 
Status confirmedResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Product Version[FreeCAD] 0.17 
Target Version[FreeCAD] 0.17Fixed in Version 
Summary0002971: hiding foreground TechDraw page from Python causes segfault
DescriptionIf a TechDraw page is open in a window in the foreground, and I try to close (hide) it from the Python console, or by running a Python macro, FreeCAD segfaults.
Steps To Reproduce1. Create a new document
2. Create an empty TechDraw page
3. Try to hide it from the python console:

obj = FreeCAD.ActiveDocument.getObject("Page")

Then FreeCAD segfaults:

Program received signal SIGSEGV, Segmentation fault.
#0  [0xb774ad2c]
#1  0xb5b46ced in QWidget::mapToParent(QPoint const&) const from /usr/lib/i386-linux-gnu/

0xb5b46d6b in QWidget::mapTo(QWidget*, QPoint const&) const from /usr/lib/i386-linux-gnu/

/usr/lib/i386-linux-gnu/ [0xb5d48d71]
/usr/lib/i386-linux-gnu/ [0xb5d4a326]
0000005  0xb5b47057 in QWidgetPrivate::syncBackingStore() 
from /usr/lib/i386-linux-gnu/
0xb5b5b626 in QWidget::event(QEvent*) from /usr/lib/i386-linux-gnu/
0xb5f85112 in QMainWindow::event(QEvent*) from /usr/lib/i386-linux-gnu/
0xb718125b in Gui::MainWindow::event(QEvent*) from /usr/lib/freecad-daily/lib/

0xb5afc64a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/i386-linux-gnu/

0xb5b03951 in QApplication::notify(QObject*, QEvent*) from /usr/lib/i386-linux-gnu/

0000011  0xb6ec6b7d in 
Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-daily/lib/

0xb584457a in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/i386-linux-gnu/

0xb5848266 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /usr/lib/i386-linux-gnu/

0000014  0xb5848595 
in QCoreApplication::sendPostedEvents(QObject*, int) from /usr/lib/i386-linux-gnu/

/usr/lib/i386-linux-gnu/ [0xb5876f91]
0000016  /lib/i386-linux-gnu/ 
0000017  /lib/i386-linux-gnu/ 
0000018  /lib/i386-linux-gnu/ 
0000019  0xb58770f5 
in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/i386-linux-gnu/

/usr/lib/i386-linux-gnu/ [0xb5bb9b66]
0xb5842c5d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/i386-linux-gnu/

0xb5842fee in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/i386-linux-gnu/

0xb58495f6 in QCoreApplication::exec() from /usr/lib/i386-linux-gnu/
0xb5afa4e4 in QApplication::exec() from /usr/lib/i386-linux-gnu/
0000025  0xb6e7cd69 
in Gui::Application::runApplication() from /usr/lib/freecad-daily/lib/
freecad-daily(main+0x645) [0x804a985]
0000027  /lib/i386-linux-gnu/ [0xb538d637]

freecad-daily() [0x804bc58]
Additional InformationOS: Ubuntu 16.04.1 LTS
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.10476 (Git)
Build type: None
Branch: master
Hash: b6150097e9cf4d7b0f5ad71f2f8750f2e7aac0d9
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0


related to 0002972 confirmed TechDraw PDF export from Python can only make PDFs of a Page in foreground 


2017-03-18 21:06sankeyNew Issue


2017-03-18 21:10

reporter   ~0008649

I can't figure out how to paste the backtrace without mantis doing something weird to it, so i'll just try attaching it.

bt.txt (2,642 bytes)
Program received signal SIGSEGV, Segmentation fault.
#0  [0xb7737d2c]
#1  0xb5b33d7f in QWidget::mapTo(QWidget*, QPoint const&) const from /usr/lib/i386-linux-gnu/
#2  /usr/lib/i386-linux-gnu/ [0xb5d35d71]
#3  /usr/lib/i386-linux-gnu/ [0xb5d37326]
#4  0xb5b34057 in QWidgetPrivate::syncBackingStore() from /usr/lib/i386-linux-gnu/
#5  0xb5b48626 in QWidget::event(QEvent*) from /usr/lib/i386-linux-gnu/
#6  0xb5f72112 in QMainWindow::event(QEvent*) from /usr/lib/i386-linux-gnu/
#7  0xb716e25b in Gui::MainWindow::event(QEvent*) from /usr/lib/freecad-daily/lib/
#8  0xb5ae964a in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/i386-linux-gnu/
#9  0xb5af0951 in QApplication::notify(QObject*, QEvent*) from /usr/lib/i386-linux-gnu/
#10  0xb6eb3b7d in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad-daily/lib/
#11  0xb583157a in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/i386-linux-gnu/
#12  0xb5835266 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) from /usr/lib/i386-linux-gnu/
#13  0xb5835595 in QCoreApplication::sendPostedEvents(QObject*, int) from /usr/lib/i386-linux-gnu/
#14  /usr/lib/i386-linux-gnu/ [0xb5863f91]
#15  /lib/i386-linux-gnu/ [0xb1a39ee9]
#16  /lib/i386-linux-gnu/ [0xb1a3a189]
#17  /lib/i386-linux-gnu/ [0xb1a3a254]
#18  0xb58640f5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/i386-linux-gnu/
#19  /usr/lib/i386-linux-gnu/ [0xb5ba6b66]
#20  0xb582fc5d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/i386-linux-gnu/
#21  0xb582ffee in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/i386-linux-gnu/
#22  0xb58365f6 in QCoreApplication::exec() from /usr/lib/i386-linux-gnu/
#23  0xb5ae74e4 in QApplication::exec() from /usr/lib/i386-linux-gnu/
#24  0xb6e69d69 in Gui::Application::runApplication() from /usr/lib/freecad-daily/lib/
#25  freecad-daily(main+0x645) [0x804a985]
#26  /lib/i386-linux-gnu/ [0xb537a637]
#27  freecad-daily() [0x804bc58]
bt.txt (2,642 bytes)
2017-03-18 21:10sankeyFile Added: bt.txt
2017-03-20 12:30Kunda1Steps to Reproduce UpdatedView Revisions
2017-03-20 12:31Kunda1ProjectFreeCAD => TechDraw
2017-03-20 12:33Kunda1Relationship addedrelated to 0002972
2017-03-20 12:33Kunda1Severityminor => crash


2017-03-20 12:34

manager   ~0008658

@wandererfan would this ticket be considered TD or general FC ?


2017-04-28 02:26

manager   ~0008791

@wandererfan wrote:
Confirmed, but not surprising. From TechDraw Roadmap

Python Bindings
The python bindings for basic TechDraw functions have fallen behind the C++ functions. The python routines 
need to be reviewed and brought up to date. 
2017-04-28 02:27Kunda1Statusnew => confirmed
2017-04-28 02:27Kunda1Target Version => 0.17
2017-04-28 11:22Kunda1Tag Attached: python

Issue History

Date Modified Username Field Change
2017-03-18 21:06 sankey New Issue
2017-03-18 21:10 sankey File Added: bt.txt
2017-03-18 21:10 sankey Note Added: 0008649
2017-03-20 12:30 Kunda1 Steps to Reproduce Updated View Revisions
2017-03-20 12:31 Kunda1 Project FreeCAD => TechDraw
2017-03-20 12:33 Kunda1 Relationship added related to 0002972
2017-03-20 12:33 Kunda1 Severity minor => crash
2017-03-20 12:34 Kunda1 Note Added: 0008658
2017-04-28 02:26 Kunda1 Note Added: 0008791
2017-04-28 02:27 Kunda1 Status new => confirmed
2017-04-28 02:27 Kunda1 Target Version => 0.17
2017-04-28 11:22 Kunda1 Tag Attached: python