Crash

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
razor49
Posts: 16
Joined: Sun Apr 27, 2014 10:46 am

Crash

Post by razor49 »

Hi

When I try to place a sketch on a solid ,FreeCAD crashes without error, Happens each time , with new or existing parts.
Some existing parts seem be have broken pads and pockets.
This has been happening since Yesterday's nightly build update.

OS: Ubuntu 13.10
Platform: 32-bit
Version: 0.14.3569 (Git)
Branch: master
Hash: ec442507e1a280db0ddb520ee566c788d45a7566
Python version: 2.7.5+
Qt version: 4.8.4
Coin version: 4.0.0a
SoQt version: 1.5.0
wmayer
Founder
Posts: 20300
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Crash

Post by wmayer »

Did the version from Sunday work? Or what was the last version that worked?

Also when running FreeCAD in the debugger you get the stack trace which might help to troubleshoot the problem:
open terminal window and enter

Code: Select all

gdb freecad
run
Let FreeCAD crash and enter

Code: Select all

bt
Besides all this I suspect the culprit is the recently added multi-sampling support for the anti-aliasing. A change from yesterday evening (i.e. the update of today) may fix your crash.
razor49
Posts: 16
Joined: Sun Apr 27, 2014 10:46 am

Re: Crash

Post by razor49 »

Hi

Sundays update was worse, could not open existing designs without crashing,Yesterdays update is an improvement but creating a sketch is a problem.I just noticed that when closing the sketch zooming is totally out of wack. I will run the de bugger now and post results.
razor49
Posts: 16
Joined: Sun Apr 27, 2014 10:46 am

Re: Crash

Post by razor49 »

Debug result;

Program received signal SIGSEGV, Segmentation fault.
0xadef9b4b in u_transfer_map_vtbl ()
from /usr/lib/i386-linux-gnu/libgallium.so.0


Could this be a hardware GPU problem?

(gdb) bt
#0 0xadef9b4b in u_transfer_map_vtbl ()
from /usr/lib/i386-linux-gnu/libgallium.so.0
#1 0xadfa51fd in ?? () from /usr/lib/i386-linux-gnu/libgallium.so.0
#2 0xae2a39ce in _ae_map_vbos ()
from /usr/lib/i386-linux-gnu/libdricore9.2.1.so.1
#3 0xae397910 in ?? () from /usr/lib/i386-linux-gnu/libdricore9.2.1.so.1
#4 0xb563dc0e in cc_glglue_glDrawElements ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#5 0xb5738b7e in SoVertexArrayIndexer::render(cc_glglue const*, int, unsigned int) () from /usr/lib/i386-linux-gnu/libCoin.so.80
#6 0xb57c9c94 in SoIndexedLineSet::GLRender(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#7 0x983ce48c in PartGui::SoBrepEdgeSet::GLRender(SoGLRenderAction*) ()
from /usr/lib/freecad/lib/PartGui.so
#8 0xb577dbd7 in SoNode::GLRenderBelowPath(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#9 0x983ce50c in PartGui::SoBrepEdgeSet::GLRenderBelowPath(SoGLRenderAction*)
() from /usr/lib/freecad/lib/PartGui.so
#10 0xb5794643 in SoSeparator::GLRenderBelowPath(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#11 0xb5794643 in SoSeparator::GLRenderBelowPath(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#12 0xb5793284 in SoSeparator::GLRender(SoGLRenderAction*) ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/i386-linux-gnu/libCoin.so.80
#13 0xb577dd9e in SoNode::GLRenderS(SoAction*, SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#14 0xb54f34ce in SoAction::traverse(SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#15 0xb5679980 in SoChildList::traverse(SoAction*, int, int) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#16 0xb5679b98 in SoChildList::traverse(SoAction*, int) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#17 0xb579a19d in SoSwitch::doAction(SoAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#18 0xb57992a7 in SoSwitch::GLRender(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#19 0xb577dbd7 in SoNode::GLRenderBelowPath(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#20 0xb5794643 in SoSeparator::GLRenderBelowPath(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#21 0xb5794643 in SoSeparator::GLRenderBelowPath(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#22 0xb7a483ef in Gui::SoFCUnifiedSelection::GLRenderBelowPath(SoGLRenderAction*) () from /usr/lib/freecad/lib/libFreeCADGui.so
#23 0xb5794643 in SoSeparator::GLRenderBelowPath(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
---Type <return> to continue, or q <return> to quit---
#24 0xb5794643 in SoSeparator::GLRenderBelowPath(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#25 0xb5793284 in SoSeparator::GLRender(SoGLRenderAction*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#26 0xb577dd9e in SoNode::GLRenderS(SoAction*, SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#27 0xb54f34ce in SoAction::traverse(SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#28 0xb54f37e3 in SoAction::beginTraversal(SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#29 0xb54fcce2 in SoGLRenderAction::beginTraversal(SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#30 0xb54fbea8 in SoGLRenderActionP::renderSingle(SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#31 0xb54fc618 in SoGLRenderActionP::render(SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#32 0xb54fcd8c in SoGLRenderAction::beginTraversal(SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#33 0xb54f41b9 in SoAction::apply(SoNode*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#34 0xb7a51898 in Gui::SoBoxSelectionRenderAction::apply(SoNode*) ()
from /usr/lib/freecad/lib/libFreeCADGui.so
#35 0xb573009c in SoRenderManager::renderScene(SoGLRenderAction*, SoNode*, unsig---Type <return> to continue, or q <return> to quit---
ned int) () from /usr/lib/i386-linux-gnu/libCoin.so.80
#36 0xb5731354 in SoRenderManager::actuallyRender(SoGLRenderAction*, int, int, int) () from /usr/lib/i386-linux-gnu/libCoin.so.80
#37 0xb5731518 in SoRenderManager::renderSingle(SoGLRenderAction*, int, int, int) () from /usr/lib/i386-linux-gnu/libCoin.so.80
#38 0xb5731d5c in SoRenderManager::render(SoGLRenderAction*, int, int, int) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#39 0xb572f863 in SoRenderManager::render(int, int) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#40 0xb5692d25 in SoSceneManager::render(int, int) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#41 0xb52ffabe in SoQtViewerP::reallyRedraw(int, int) ()
from /usr/lib/libSoQt4.so.20
#42 0xb530023e in SoQtViewer::actualRedraw() () from /usr/lib/libSoQt4.so.20
#43 0xb7ac3a62 in Gui::View3DInventorViewer::renderScene() ()
from /usr/lib/freecad/lib/libFreeCADGui.so
#44 0xb7ac35ec in Gui::View3DInventorViewer::actualRedraw() ()
from /usr/lib/freecad/lib/libFreeCADGui.so
#45 0xb52ce7b0 in SoQtRenderArea::redraw() () from /usr/lib/libSoQt4.so.20
#46 0xb52d009f in SoQtRenderArea::render() () from /usr/lib/libSoQt4.so.20
#47 0xb52d0138 in SoQtRenderAreaP::renderCB(void*, SoSceneManager*) ()
from /usr/lib/libSoQt4.so.20
#48 0xb569399d in SoSceneManagerP::renderCB(void*, SoRenderManager*) ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/i386-linux-gnu/libCoin.so.80
#49 0xb5730b13 in SoRenderManager::redraw() ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#50 0xb5732655 in SoRenderManagerP::redrawshotTriggeredCB(void*, SoSensor*) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#51 0xb5818faa in SoSensor::trigger() ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#52 0xb5818512 in SoDelayQueueSensor::trigger() ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#53 0xb581abe8 in SoSensorManager::processDelayQueue(int) ()
from /usr/lib/i386-linux-gnu/libCoin.so.80
#54 0xb52c7171 in SoQtP::slot_idleSensor() () from /usr/lib/libSoQt4.so.20
#55 0xb52c7274 in ?? () from /usr/lib/libSoQt4.so.20
#56 0xb6075fc7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#57 0xb60c6065 in QTimer::timeout() ()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#58 0xb607f776 in QTimer::timerEvent(QTimerEvent*) ()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#59 0xb607a3ec in QObject::event(QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#60 0xb634b744 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#61 0xb6352223 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#62 0xb787b730 in Gui::GUIApplication::notify(QObject*, QEvent*) ()
from /usr/lib/freecad/lib/libFreeCADGui.so
#63 0xb6060eda in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#64 0xb60934eb in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#65 0xb60905d8 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#66 0xb279383e in g_main_context_dispatch ()
from /lib/i386-linux-gnu/libglib-2.0.so.0
#67 0xb2793be8 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#68 0xb2793ca8 in g_main_context_iteration ()
from /lib/i386-linux-gnu/libglib-2.0.so.0
#69 0xb60908bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#70 0xb640032e in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#71 0xb605f9f3 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#72 0xb605fd19 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#73 0xb606589e in QCoreApplication::exec() ()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#74 0xb6349974 in QApplication::exec() ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#75 0xb7876bc7 in Gui::Application::runApplication() ()
from /usr/lib/freecad/lib/libFreeCADGui.so
#76 0x0804f25c in main ()
wmayer
Founder
Posts: 20300
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Crash

Post by wmayer »

Could this be a hardware GPU problem?
A hardware problem is rather unlikely. No, I guess it's related to the recently added multi-sampling support for the anti-aliasing and the assumption that your graphic driver doesn't support it correctly. Yesterday a change has been added to avoid any OpenGL calls if the user didn't activate this in the (FreeCAD) preferences. So, the update today should make it working again.
razor49
Posts: 16
Joined: Sun Apr 27, 2014 10:46 am

Re: Crash

Post by razor49 »

Great

Thank you for the quick response,
razor49
Posts: 16
Joined: Sun Apr 27, 2014 10:46 am

Re: Crash

Post by razor49 »

Hi

Still two issues;

1: When i create a sketch in the xy plane and pad it, the view disappears off screen and rotation centre point seems wrong, It is very difficult to re zoom and find the padded sketch as there is no auto zoom feature.

2: Still not able to map a sketch to a face, causes FreeCAD crash.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Crash

Post by bejant »

razor49 wrote:1: When i create a sketch in the xy plane and pad it, the view disappears off screen and rotation centre point seems wrong
Greetings razor49,
Sorry but I can't reproduce this behavior, maybe somebody else can have a look?
razor49 wrote:1:It is very difficult to re zoom and find the padded sketch as there is no auto zoom feature.
You don't have the The View Fit tool button:
Image?

If not try View (tasks menu at the top of the screen) -> Toolbars, is View check-marked to true?
razor49 wrote:2: Still not able to map a sketch to a face, causes FreeCAD crash.
For me this known issue was fixed in the daily build below:

OS: Ubuntu 12.04.4 LTS
Platform: 32-bit
Version: 0.14.3580 (Git)
Branch: master
Hash: a2243e9fb59e7ebf68905215ed48abaaa4f78c34
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.7.0


Does any of this help?
wmayer
Founder
Posts: 20300
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Crash

Post by wmayer »

razor49 wrote:Hi

Still two issues;

1: When i create a sketch in the xy plane and pad it, the view disappears off screen and rotation centre point seems wrong, It is very difficult to re zoom and find the padded sketch as there is no auto zoom feature.

2: Still not able to map a sketch to a face, causes FreeCAD crash.
What's your current version number of FreeCAD?
razor49
Posts: 16
Joined: Sun Apr 27, 2014 10:46 am

Re: Crash

Post by razor49 »

Current version;

OS: Ubuntu 13.10
Platform: 32-bit
Version: 0.14.3585 (Git)
Branch: master
Hash: 6ec53ed397aaedd36f2bcb431dec0aab38a8525c
Python version: 2.7.5+
Qt version: 4.8.4
Coin version: 4.0.0a
SoQt version: 1.5.0


Just tried this morning with over night build and mapping a sketch to solid still causes crash. Sketch and solid on xy plane.

Back trace as follows;

Program received signal SIGSEGV, Segmentation fault.
0xb5ead1b4 in std::string::c_str() const ()
from /usr/lib/i386-linux-gnu/libstdc++.so.6
(gdb) bt
#0 0xb5ead1b4 in std::string::c_str() const ()
from /usr/lib/i386-linux-gnu/libstdc++.so.6
#1 0x98052d67 in CmdSketcherMapSketch::activated(int) ()
from /usr/lib/freecad/lib/SketcherGui.so
#2 0xb78e9a7e in Gui::Command::invoke(int) ()
from /usr/lib/freecad/lib/libFreeCADGui.so
#3 0xb78e0f64 in Gui::Action::onActivated() ()
from /usr/lib/freecad/lib/libFreeCADGui.so
#4 0xb78e5db7 in ?? () from /usr/lib/freecad/lib/libFreeCADGui.so
#5 0xb6075fc7 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#6 0xb634467d in QAction::triggered(bool) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#7 0xb6346274 in QAction::activate(QAction::ActionEvent) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#8 0xb6833d40 in QToolButton::nextCheckState() ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#9 0xb67626c3 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#10 0xb676280e in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#11 0xb6833cb7 in QToolButton::mouseReleaseEvent(QMouseEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#12 0xb63a51aa in QWidget::event(QEvent*) ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#13 0xb6763812 in QAbstractButton::event(QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#14 0xb6833da4 in QToolButton::event(QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#15 0xb634b744 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#16 0xb6353df8 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#17 0xb787b730 in Gui::GUIApplication::notify(QObject*, QEvent*) ()
from /usr/lib/freecad/lib/libFreeCADGui.so
#18 0xb6060eda in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
from /usr/lib/i386-linux-gnu/libQtCore.so.4
#19 0xb6351aa3 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#20 0xb63d54e8 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#21 0xb63d4c05 in QApplication::x11ProcessEvent(_XEvent*) ()
from /usr/lib/i386-linux-gnu/libQtGui.so.4
#22 0xb6400274 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#23 0xb279383e in g_main_context_dispatch ()
from /lib/i386-linux-gnu/libglib-2.0.so.0
#24 0xb2793be8 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
Post Reply