MacOS changes documents when editor is opened

Some strange behaviour only on MacOS, not windows or Linux.

When double clicking on a component tree, the editor opens for that component, and that appears to be correct. The part display however switched to the first page item, typically the start page but if that has been closed then the first document open.

Video showing this:
https://youtu.be/8dZ4ncPukzw

My info:

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * Rocket 2.4.1

very, strange, does the same happen with a clean config? or with a weekly release?

I remember having similar issues some time ago. But I can’t reproduce with the weekly build (osx64 and osx-arm64). Also the weekly builds were updated to qt5.15 recently, so might be a good idea to try the weekly builds.

Yes, this is with a clean config. I removed both the system.cfg and user.cfg files to make sure. I had to re-enable software OpenGL to get the start screen to work, but that’s the only change. I haven’t tried with the latest weekly build, but this is the release version.

I’ll verify with the weekly build.

Verified with the latest weekly build:

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.29485 (Git)
Build type: Release
Branch: master
Hash: a236ca843fdd6674afb6d7ed1454fbd3b547f5ea
Python 3.10.5, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C)

I removed the folders ~/Library/Preferences/FreeCAD and ~/Library/Application Support/FreeCAD to ensure a clean config, again only enabling software OpenGL

Well, it seems to be something to do with the software OpenGL. If I disable that, the bug goes away, but of course I’m stuck with a blank start page. So I guess at this point it’s a case of picking which bug I want to put up with.

Verified with both the weekly build and the release build.

I have seen such behaviour too on some students computers. Apple has minimized the support of OpenGL, so this probably depends on the exact hardware and its OpenGL support.

Yes, the start screen is due to that. It works fine if I use the software implementation of OpenGL, but then I get this bug. My Mac is a 2015 MacBook Air, so not exactly bleeding edge.