Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISIS application GUIs will not display after build on MacOSX 10.15 Catalina #4773

Closed
KrisBecker opened this issue Feb 3, 2022 · 3 comments
Closed
Labels
build Issue related to building ISIS inactive Issue that has been inactive for at least 6 months

Comments

@KrisBecker
Copy link
Contributor

KrisBecker commented Feb 3, 2022

ISIS version(s) affected: Unknown

Description

After building ISIS on a MacOSX 10.15 Catalina system, none of the ISIS application GUIs would display anything. Every ISIS application ran would show the exec window in the dock but nothing would display. Meanwhile, the app would run at 100% and start consuming memory. Had to abort them after running for several minutes as this usage of CPU and memory would continue.

After some searching, I found a solution that worked for the me. It appears to be a bug in Qt, specifically 5.12.9, but seems to only affect Big Sur. I think this shows that it also affects Catalina under certain conditions.

Running conda list shows the following version of Qt installed on my system in the environment that was used to build ISIS:

qt                        5.12.9               h2a607e2_5    conda-forge

The fix is to add export QT_MAC_WANTS_LAYER=1 to your shell environment prior to running ISIS applications. Doing that appears to have solved my problem.

Note that ISIS applications appear to run fine in batch mode and are apparently unaffected by this problem.

It looks like the problem has been fixed in version Qt 5.12.11 according to the Qt bug linked above. So I would suggest upgrading to a newer version of Qt.

How to reproduce

Build ISIS on MacOSX 10.15 and run any program in GUI mode.

Not sure if this can be consistently reproduced.

Possible Solution

Upgrade to qt>=5.12.11.

Additional context

@acpaquette
Copy link
Collaborator

@KrisBecker Thank you for mentioning this. Some of the devs have known about this for a little while and it has been on our radar since updating to Big Sur. We were waiting for an updated version of qt to be pushed to conda-forge and it looks like 5.15 was pushed about two months ago:

https://anaconda.org/conda-forge/qt-main

You are correct that this is also an issue on Big Sur being a little more pronounced, resulting in Illegal Instruction errors when running apps like qview. This is something I have fought with for a while now, so thank you for bring it back to our attention!

@acpaquette acpaquette added the build Issue related to building ISIS label Feb 3, 2022
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Thank you for your contribution!

Unfortunately, this issue hasn't received much attention lately, so it is labeled as 'stale.'

If no additional action is taken, this issue will be automatically closed in 180 days.

@github-actions github-actions bot added the inactive Issue that has been inactive for at least 6 months label Aug 3, 2022
@afrigeri
Copy link
Contributor

afrigeri commented Jul 3, 2023

Same behavior when building IsisVersion = "7.2.0 | 2023-07-03" on:

ProductName:		macOS
ProductVersion:		13.4.1
BuildVersion:		22F82

confirm export QT_MAC_WANTS_LAYER=1 fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issue related to building ISIS inactive Issue that has been inactive for at least 6 months
Projects
None yet
Development

No branches or pull requests

3 participants