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

dgcode viewer issue on macOS with HiDPI display #38

Open
willend opened this issue Mar 11, 2024 · 10 comments
Open

dgcode viewer issue on macOS with HiDPI display #38

willend opened this issue Mar 11, 2024 · 10 comments
Labels
bug Something isn't working gui Issue related to GUIs and plots - often not affecting in unit tests. osx

Comments

@willend
Copy link

willend commented Mar 11, 2024

Screenshot 2024-03-11 at 09 22 36
@tkittel
Copy link
Member

tkittel commented Mar 12, 2024

Looks like OpenSceneGraph or OpenGL having some sort of monitor size detection issues, or perhaps some x2 scaling I forgot that I enabled. I was wondering @willend did you by any chance have a multi-monitor setup active at the time, if that could have played a role?

@tkittel tkittel added bug Something isn't working gui Issue related to GUIs and plots - often not affecting in unit tests. osx labels Mar 12, 2024
@willend
Copy link
Author

willend commented Mar 12, 2024

Nope, single screen on that Mac at the time

@willend
Copy link
Author

willend commented Mar 12, 2024

On this machine (my newest Mac, M2 machine from ESS) the gui even works right:
Screenshot 2024-03-12 at 10 40 44

  • so perhaps something was simply out of sync in the conda env on my M1...

@tkittel
Copy link
Member

tkittel commented Mar 12, 2024

Ok that's great, so it is not a general issue. However, I still suspect that there is an underlying issue related to stuff like opengl and monitors, etc. But I guess we can close this issue for now, unless we see it again elsewhere.

@tkittel tkittel closed this as completed Mar 12, 2024
@tkittel
Copy link
Member

tkittel commented Mar 15, 2024

Reopening since @willend reproduced it.

@tkittel tkittel reopened this Mar 15, 2024
@willend
Copy link
Author

willend commented Mar 15, 2024

It seems that there are ties to this old osg issue:
openscenegraph/OpenSceneGraph#926

and this one omnetpp/omnetpp#833

@willend
Copy link
Author

willend commented Mar 15, 2024

WORKAROUND:

It seems that the issue only occurs on internal mac screens - or al least "HiDPI" screens left at the "Default" resolution:
Screenshot 2024-03-15 at 12 31 56

A workaround is to switch to maximum resolution on the said monitor, via:

  • "Advanced" -> select to "Show resolutions as list"
Screenshot 2024-03-15 at 12 27 55
  • Select to "Show all resolutions" and switch from (Default) to maximum resolution:
    Screenshot 2024-03-15 at 12 29 10

Screenshot 2024-03-15 at 12 30 49

NB:
osg will crashe if open while resolution is changed - or if dragged between two different monitors with different settings.

@tkittel
Copy link
Member

tkittel commented Mar 15, 2024

Thanks a lot for the workaround @willend, I will add a link to it in the documentation!

@willend
Copy link
Author

willend commented Mar 15, 2024

Very likely the problem is not only on M1/M2/M3, but also Intel Macs with this type of HiDPI display

@willend willend changed the title dgcode viewer issue on macOS Silicon (M1/M2/M3...) dgcode viewer issue on macOS Silicon (M1/M2/M3...) and possibly Intel Mar 15, 2024
@tkittel tkittel changed the title dgcode viewer issue on macOS Silicon (M1/M2/M3...) and possibly Intel dgcode viewer issue on macOS with HiDPI display Mar 15, 2024
@tkittel
Copy link
Member

tkittel commented Mar 15, 2024

That makes sense @willend, it seems this is indeed explained by openscenegraph/OpenSceneGraph#926

Unfortunately I asked the OSG maintainer, and he does not have time to make a new release (1) so we will most likely have to live with the workaround for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gui Issue related to GUIs and plots - often not affecting in unit tests. osx
Projects
None yet
Development

No branches or pull requests

2 participants