Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Changing pixel density in GL test app makes map go blank #3451

Closed
danpat opened this issue Jan 6, 2016 · 2 comments
Closed

Changing pixel density in GL test app makes map go blank #3451

danpat opened this issue Jan 6, 2016 · 2 comments
Labels
bug macOS Mapbox Maps SDK for macOS

Comments

@danpat
Copy link

danpat commented Jan 6, 2016

I just built make run-osx from 9d6cb13 to test some map rendering using GL-native on OSX.

I have a MBP 13" with a Retina display, and an external Dell monitor running at 2560x1440 (non-retina):
screen shot 2016-01-06 at 9 39 46 am

If I drag the Mapbox GL app from the retina display to the non-retina display, the map goes blank, and won't come back unless I restart the app. Interaction seems to still work and all the controls are still there:

Launched on the non-retina display:
screen shot 2016-01-06 at 9 42 45 am

Launched on the retina display:
screen shot 2016-01-06 at 9 45 18 am

Moved from Retina to non-Retina:
screen shot 2016-01-06 at 9 41 19 am

In addition, the following warning is printed to the console when I move between from the launch pixel density to a different pixel density:

2016-01-06 09:43:16.702 Mapbox GL[27089:22073075] Unable to simultaneously satisfy constraints:
(
    "<NSLayoutConstraint:0x7fe02bf99190 NSSlider:0x7fe02bc6d3e0.centerX == NSSegmentedControl:0x7fe02bc82b40.centerX>",
    "<NSLayoutConstraint:0x7fe02bca1ba0 NSSlider:0x7fe02bc6d3e0.centerX == NSSegmentedControl:0x7fe02bc82b40.centerX>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fe02bf99190 NSSlider:0x7fe02bc6d3e0.centerX == NSSegmentedControl:0x7fe02bc82b40.centerX>

Set the NSUserDefault NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have -[NSWindow visualizeConstraints:] automatically called when this happens.  And/or, break on objc_exception_throw to catch this in the debugger.
@1ec5 1ec5 added bug macOS Mapbox Maps SDK for macOS labels Jan 6, 2016
@danpat
Copy link
Author

danpat commented Jan 6, 2016

Note: the "Launched on non-retina display" image also seems to have poor antialiasing on the edges of lines and fonts.

@jfirebaugh
Copy link
Contributor

#6654

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

No branches or pull requests

3 participants