Hi there,
I found several issues about vanished toolbars, but no reproducible case, yet. The following procedure always removes all toolbars on next start of FreeCAD for me:
1. Open any document and apply changes so that it is in an unsaved state.
2. Attempt to restart Windows.
3. Wait until Windows complains about processes that cannot be closed.
4. Cancel the shutdown procedure. FreeCAD will have a save changes popup dialog open.
5. Click save changes. FreeCAD will save the document and close.
6. Restart FreeCAD. All toolbars are gone.
I suppose that this shutdown sequence breaks some config file about window/toolbar layout.
Shall I open a new bug or is there any open issue I missed where I can attach this info?
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +99 (Git)
Build type: Release
Branch: Branch_0.19.3
Hash: 6530e364184ce05ccff39501e175cf2237e6ee4b
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Germany (de_DE)
Bug: All toolbars gone on irregular shutdown
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Re: Bug: All toolbars gone on irregular shutdown
Confirmed. In the <FCParamGroup Name="MainWindow"> section visibility of GUI elements is set to zero. F.e. <FCBool Name="Part tools" Value="1"/> becomes <FCBool Name="Part tools" Value="0"/>.
Code: Select all
OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.28611 (Git)
Build type: Release
Python 3.8.13, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods:
Re: Bug: All toolbars gone on irregular shutdown
The statusbar is also switched off after this test. Interestingly the related setting is not stored in the user.cfg file. I have to go into the Windows registry.
Code: Select all
HKEY_CURRENT_USER\Software\FreeCAD\FreeCAD\Qt5.12\StatusBar
Code: Select all
OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.28611 (Git)
Build type: Release
Python 3.8.13, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods:
- adrianinsaval
- Veteran
- Posts: 5541
- Joined: Thu Apr 05, 2018 5:15 pm
Re: Bug: All toolbars gone on irregular shutdown
Could it be a qt bug? any ideas @uwestoehr @wmayer ? This has also been reported here: https://forum.freecadweb.org/viewtopic.php?p=595457
Re: Bug: All toolbars gone on irregular shutdown
Since it's reproducible and others can confirm please open a bug report.
Could be a Qt bug. Qt offers the class QSessionManager that we use in https://github.com/FreeCAD/FreeCAD/blob ... on.cpp#L63 and https://github.com/FreeCAD/FreeCAD/blob ... n.cpp#L132adrianinsaval wrote: ↑Mon May 16, 2022 5:57 pm Could it be a qt bug? any ideas @uwestoehr @wmayer ? This has also been reported here: https://forum.freecadweb.org/viewtopic.php?p=595457
A couple of settings are saved to the registry: https://github.com/FreeCAD/FreeCAD/blob ... .cpp#L1425The statusbar is also switched off after this test. Interestingly the related setting is not stored in the user.cfg file. I have to go into the Windows registry.
Re: Bug: All toolbars gone on irregular shutdown
git commit ca279e4057 fixes the issue.