View Issue Details

IDProjectCategoryView StatusLast Update
0001935FreeCADFeaturepublic2017-02-06 04:55
Reporterbalazs Assigned Towmayer  
Status closedResolutionfixed 
PlatformallOSallOS Versionall
Fixed in Version0.17 
Summary0001935: Showing something more relevant than "unhandled unknown exception caught..."
DescriptionHi All,

I have got "Unhandled unknown exception caught in GUIApplication::notify." on OS console, which message is released in Gui/Application.cpp here:

However, if the compiler is set to C++11, it is possible to write something like

I have tried it myself but no luck, although I have -std=c++11 in g++ 4.7.2-5

Moreover, with a custom signal handler even backtrace would be possible with glibc:

I don't know the exact signal policy in FreeCAD. Simply registering a SIGSEGV handler (I know the unknown exception hides a segmentation violation) does not bring anything.

best regards: Bal√°zs
Steps To Reproduce-
Additional Information-
FreeCAD Information



2015-01-26 19:10

developer   ~0005739

Last edited: 2015-01-26 19:15

if the exception is not derived from std::exception (or another known type) we have no way to extract detailed information. (as we decided not require c++11 yet)

> I know the unknown exception hides a segmentation violation
Then you should file a bug for it as well


2015-01-26 19:35

developer   ~0005740

BTW: I think that /EHa is crap.


2015-01-26 20:44

reporter   ~0005741

When no C++11 is used yet, this is obsolete. The exception rises from my code under development, so no need for a bug report.


2017-02-05 18:02

administrator   ~0008219

The exception_ptr is useless here as there is no way to get more relevant information.

Related Changesets

FreeCAD: master 6b0a0ff9

2017-02-05 18:00:45


Details Diff
issue 0001935 Affected Issues
mod - src/App/Application.cpp Diff File
mod - src/Mod/Part/App/AppPart.cpp Diff File

Issue History

Date Modified Username Field Change
2015-01-26 18:42 balazs New Issue
2015-01-26 19:10 shoogen Note Added: 0005739
2015-01-26 19:15 shoogen Note Edited: 0005739
2015-01-26 19:35 shoogen Note Added: 0005740
2015-01-26 20:44 balazs Note Added: 0005741
2017-01-22 21:41 wmayer Assigned To => wmayer
2017-01-22 21:41 wmayer Status new => assigned
2017-02-05 18:01 wmayer Changeset attached => FreeCAD Master master 6b0a0ff9
2017-02-05 18:02 wmayer Note Added: 0008219
2017-02-05 18:02 wmayer Status assigned => closed
2017-02-05 18:02 wmayer Resolution open => fixed
2017-02-05 18:02 wmayer Fixed in Version => 0.17
2017-02-06 04:55 Kunda1 Tag Attached: exception