Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was 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

Description

@danpat

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.

Activity

  1. added
    macOS
    on Jan 6, 2016
  2. danpat commented on Jan 6, 2016

    @danpat
    Author

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

  3. jfirebaugh commented on Jan 9, 2017

    @jfirebaugh
    Contributor

    ⇢ #6654

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmacOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions