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

App freezes with no drawing to screen #746

Closed
ljbade opened this issue Jan 12, 2015 · 6 comments · Fixed by #747
Closed

App freezes with no drawing to screen #746

ljbade opened this issue Jan 12, 2015 · 6 comments · Fixed by #747
Labels

Comments

@ljbade
Copy link
Contributor

ljbade commented Jan 12, 2015

When the app starts the window opens and nothing gets drawn. The apps seems to freeze.

I examined the back trace and it was sitting in the Map UV loop doing nothing.

A few debug prints that the first call to asyncRender() does not trigger a render() which stops the rendering loop starting.

The issue appears that the check at https://github.com/mapbox/mapbox-gl-native/blob/master/src/mbgl/map/map.cpp#L164:
if (state.hasSize()) which is false

@ljbade
Copy link
Contributor Author

ljbade commented Jan 12, 2015

@ljbade
Copy link
Contributor Author

ljbade commented Jan 12, 2015

It seems resize() is called with 0 width and height which is why hasSize fails.

@ljbade
Copy link
Contributor Author

ljbade commented Jan 12, 2015

Resizing the window does trigger resize() with valued but only transform gets updated not state so render() still does not get called.

@jfirebaugh This doesn't seem right?

@ljbade
Copy link
Contributor Author

ljbade commented Jan 12, 2015

@jfirebaugh
Copy link
Contributor

Looks like this regressed as part of #718. We have two PRs for this now, #742 and #747. :)

@ljbade
Copy link
Contributor Author

ljbade commented Jan 12, 2015

@jfirebaugh oh did not see the dupe, lol

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

Successfully merging a pull request may close this issue.

2 participants