MacOS changes documents when editor is opened

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
grandcross
Posts: 358
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

MacOS changes documents when editor is opened

Post by grandcross »

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:

Code: Select all

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
User avatar
adrianinsaval
Veteran
Posts: 5551
Joined: Thu Apr 05, 2018 5:15 pm

Re: MacOS changes documents when editor is opened

Post by adrianinsaval »

very, strange, does the same happen with a clean config? or with a weekly release?
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: MacOS changes documents when editor is opened

Post by looo »

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.
User avatar
grandcross
Posts: 358
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: MacOS changes documents when editor is opened

Post by grandcross »

adrianinsaval wrote: Tue Jul 12, 2022 2:15 pm very, strange, does the same happen with a clean config? or with a weekly release?
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.
User avatar
grandcross
Posts: 358
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: MacOS changes documents when editor is opened

Post by grandcross »

Verified with the latest weekly build:

Code: Select all

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
User avatar
grandcross
Posts: 358
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: MacOS changes documents when editor is opened

Post by grandcross »

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.
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: MacOS changes documents when editor is opened

Post by chrisb »

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.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
grandcross
Posts: 358
Joined: Sun Oct 11, 2015 3:08 pm
Contact:

Re: MacOS changes documents when editor is opened

Post by grandcross »

chrisb wrote: Tue Jul 12, 2022 10:53 pm 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.
Post Reply