Skip to content

Conversation

@sax1johno
Copy link

in #480 it was reported that on MacOS, the Render workbench was crashing when attempting to open the embedded window for downloading materials.

In QT versions below 6.0, there is only buggy or sporadic support for QWindow.fromWinId, the method that is used to attach embedded windows to the main window context. This causes a crash whenever the workbench attempts to create an embedded window.

This PR provides a workaround patch that displays a message on Mac OSX letting users know that the embedding is not support, and then exits. This allows the window to open as a separate window, rather than an embedded window.

This should fix #480 until Freecad is upgraded to a version that supports QWindow.fromWinId on MacOSX, or else that change is backported to QT 5.xx.

@howetuft
Copy link
Collaborator

Hello,

Thank you for your kind contribution! However, before modifying the code:

In Render preferences, there is a checkbox named "Disable GUI embedding". Can you try it beforehand? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash when opening "subcontainer"

2 participants