View Issue Details

IDProjectCategoryView StatusLast Update
0002527FreeCADBugpublic2017-06-29 05:07
Reporteradrien-courty Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformMac OSOSXOS Version10.11.3
Product Version0.15 
Summary0002527: crash when selecting workbench if no workbench is selected on startup
DescriptionWhen selecting the workbench <none> as the startup workbench in FreeCAD preferences, the next time FreeCAD will be started there will be now workbench but also no "view" panels (Selection View, Combo View).

If you then try to select a workbench via the dropdown menu, the program crashes.

tested with FreeCAD 0.15 and 0.16.
Steps To Reproduce- FreeCAD > Preference, select <none> as startup workbench.
- close and relaunch FreeCAD.
- select a workbench via the dropdown menu.
Additional InformationProblem happened as well with older versions of OSX.
TagsmacOS
FreeCAD Information

Activities

yorik

2016-04-28 13:26

administrator   ~0007017

The "none" workbench indeed has no side panels, that is normal.
The crash doesn't happen for me on linux, it is probably specific to Mac OS...

adrien-courty

2016-04-28 13:39

reporter   ~0007018

Last edited: 2016-04-28 16:00

Thank you for the information, is there any procedure that I could use to get a log output ?

Additional note : when I say "crash" I mean the program exits, no menu is available from the menubar apart from the FreeCAD menu (from where I can access "About FreeCAD..", "Preferences" or quit the app), although the FreeCAD icon is still present in the Mac dock, and right click to quit is possible.

yorik

2016-04-28 13:45

administrator   ~0007019

I don't know anything about Mac, so I don't really know how to do that, but you can try starting FreeCAD from the terminal, with the -l switch (freecad -l). That will produce a freecad.log file inside your FreeCAD user folder (not sure where it is on mac) that might contain useful info. It should also be possible to use gdb to get a backtrace, which willpoint to the exact component of FreeCAD where the crash originated.

There are several mac users on the FreeCAD forum at http://forum.freecadweb.org , I suggest you post there for better help...

adrien-courty

2016-04-28 15:48

reporter   ~0007020

Last edited: 2016-04-28 15:51

I have checked the forum but did not know where to post issues/bugs, nor could I find an existing discussion related to this bug, that's why I've headed to the bug tracker.

Below is the ouput of "open -n /Applications/FreeCAD.app --args -l" which creates a log file at /Users/[username]/Library/Preferences/FreeCAD/FreeCAD.log :

http://pastebin.com/5vU7jKxS



The end is perhaps interesting :

Log: Init: Loading FreeCAD GUI
Log: Init: Running FreeCADGuiInit.py start script... done
Log: Init: Activating default workbench StartWorkbench
Log: Init: Showing main window
Log: Main window restored
Log: Show main window
Log: Toolbars restored
Log: 3Dconnexion framework not found!
Log: Init: Entering event loop
Log: Init: Processing command line files
Log: Loading GUI of Drawing module... done
Log: Hide main window
Log: Finish: Event loop left
Log: Destruct Gui::Application
Log: FreeCAD terminating...
Log: Saving system parameter...
Log: Saving system parameter...done
Log: Saving user parameter...
Log: Saving user parameter...done

yorik

2016-04-28 15:50

administrator   ~0007021

This is strange... it looks like a normal FreeCAD exit, not a crash..

adrien-courty

2016-04-28 15:58

reporter   ~0007022

my bad, it is because I quit the application after (right click on the icon). If I don't, the end of the log stops here :

Log: Init: Loading FreeCAD GUI
Log: Init: Running FreeCADGuiInit.py start script... done
Log: Init: Activating default workbench StartWorkbench
Log: Init: Showing main window
Log: Main window restored
Log: Show main window
Log: Toolbars restored
Log: 3Dconnexion framework not found!
Log: Init: Entering event loop
Log: Init: Processing command line files
Log: Loading GUI of Drawing module... done
Log: Hide main window


looks like it does not actually crash but is stuck somewhere trying to load some views, which could explains why no menus are loaded (because available menus depend of the workbench used).

ezzieyguywuf

2016-05-09 00:04

developer   ~0007072

I can confirm that this bug is not reproducable in linux.

peterl94

2017-01-15 23:52

developer   ~0007802

Still an issue. It behaved exactly as adrien-courty described with:

OS: Mac OS X [10.12]
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9642 (Git)
Build type: DEBUG
Branch: master
Hash: 2f66ff69293ed14a0a7ba5032036bd7b8c8cdcde
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 7.0.0

blacey

2017-02-15 22:42

developer   ~0008316

Last edited: 2017-02-15 22:43

I was not able to reproduce this issue using:

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9794 (Git)
Build type: Release
Branch: (detached from 26c7cd9)
Hash: 26c7cd9faae31ca539bee9ff914cc38fe9b32456
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 3.1.3
OCC version: 7.0.0

Kunda1

2017-02-15 22:45

administrator   ~0008317

@blacey thanks
@peter94 can you update trunk and retest ?

Kunda1

2017-02-15 23:44

administrator   ~0008318

@peter94 do you think this might have to do with 0002886 ?

Kunda1

2017-05-14 14:25

administrator   ~0009005

I meant @peterl94

peterl94

2017-05-14 20:46

developer   ~0009016

I guess this can be closed. It looks like qt 5 fixed it. The issue does not happen with:

(release from github)
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.11084 (Git)
Build type: Release
Branch: (detached from fa00b4f)
Hash: fa00b4f06a0c96de57a777d6532467dfd8e5d141
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.1.0

However it still happens with:

(self compiled)
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.5235 (Git shallow)
Build type: Release
Branch: master
Hash: fa00b4f06a0c96de57a777d6532467dfd8e5d141
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0

After trying to open a workbench the process does not crash, but the window disappears and I see this in the console: "modalSession has been exited prematurely - check for a reentrant call to endModalSession".

Kunda1

2017-05-14 21:14

administrator   ~0009017

What's the verdict? Do we care about Qt4 builds enough to fix it?

Kunda1

2017-05-14 21:30

administrator   ~0009018

Ping @wmayer
any need to back port a fix for Qt4 ?

Kunda1

2017-06-28 22:40

administrator   ~0009587

@wmayer backport or close?

peterl94

2017-06-29 02:55

developer   ~0009595

The thing is the problem went a way with qt5 without us changing anything (as far as I know), so there is nothing to "backport" unless you are talking about patching qt4. We would have to figure out what is causing the issue with qt4 on macOS and develop a workaround. Certainly not worth it to me considering the qt5 version has significant UX improvements and it is all I use. If it was up to me, I would close this issue.

Kunda1

2017-06-29 05:05

administrator   ~0009596

Got it. Closing ticket.

Issue History

Date Modified Username Field Change
2016-04-28 10:05 adrien-courty New Issue
2016-04-28 13:26 yorik Note Added: 0007017
2016-04-28 13:39 adrien-courty Note Added: 0007018
2016-04-28 13:45 yorik Note Added: 0007019
2016-04-28 15:42 adrien-courty Note Edited: 0007018
2016-04-28 15:48 adrien-courty Note Added: 0007020
2016-04-28 15:50 yorik Note Added: 0007021
2016-04-28 15:51 adrien-courty Note Edited: 0007020
2016-04-28 15:58 adrien-courty Note Added: 0007022
2016-04-28 16:00 adrien-courty Note Edited: 0007018
2016-05-09 00:04 ezzieyguywuf Note Added: 0007072
2017-01-10 13:57 Kunda1 Tag Attached: MacOSX
2017-01-15 23:52 peterl94 Note Added: 0007802
2017-01-16 02:35 Kunda1 Status new => confirmed
2017-02-15 22:42 blacey Note Added: 0008316
2017-02-15 22:43 blacey Note Edited: 0008316
2017-02-15 22:45 Kunda1 Note Added: 0008317
2017-02-15 22:45 Kunda1 Tag Attached: #pending
2017-02-15 23:44 Kunda1 Note Added: 0008318
2017-05-14 14:25 Kunda1 Note Added: 0009005
2017-05-14 20:46 peterl94 Note Added: 0009016
2017-05-14 21:14 Kunda1 Note Added: 0009017
2017-05-14 21:30 Kunda1 Note Added: 0009018
2017-06-28 22:39 Kunda1 Assigned To => wmayer
2017-06-28 22:39 Kunda1 Status confirmed => assigned
2017-06-28 22:40 Kunda1 Note Added: 0009587
2017-06-29 02:55 peterl94 Note Added: 0009595
2017-06-29 05:05 Kunda1 Assigned To wmayer =>
2017-06-29 05:05 Kunda1 Status assigned => closed
2017-06-29 05:05 Kunda1 Resolution open => no change required
2017-06-29 05:05 Kunda1 Note Added: 0009596
2017-06-29 05:07 Kunda1 Tag Detached: #pending
2020-11-13 14:08 Kunda1 Tag Renamed MacOSX => macOS