Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

LabelLayer breaks rendering #154

Open
MarsVard opened this issue May 14, 2015 · 10 comments
Open

LabelLayer breaks rendering #154

MarsVard opened this issue May 14, 2015 · 10 comments

Comments

@MarsVard
Copy link

I have a map with 5 layers on it.

    mMap.layers().add(pathLayer);
    mMap.layers().add(new BuildingLayer(mMap, baseLayerOffline));
    mMap.layers().add(labelLayer);
    mMap.layers().add(userLocationLayer);
    mMap.layers().add(poiLayer);
    mMap.layers().add(eventLayer);

when I call startActivtyForResult() from inside the fragment where the map is, and then return to the fragment of the map. the labels layer is totally broken and messes up rendering of the map.

I tried removing the labels layer and that fixed it, I tried removing other layers and it was still broken.

I also tried removing the labels layer and then adding it back to the map, and it was still broken again.

screen shot 2015-05-14 at 12 32 22

is this a known issue? is there a way to bypass this problem?

@hjanetzek
Copy link
Member

Thanks for reporting. I haven't seen this issue yet. Could you provide a simple example for testing?

@MarsVard
Copy link
Author

Hey @hjanetzek Here's a project that experiences the issue, it's a simple mock project with 2 activities.
https://github.com/MarsVard/BrokenMaps/tree/master

Hope you are able to provide more info or a way to fix this. and thank you for this awesome project.

@hjanetzek
Copy link
Member

thank you. sorry, this week is kind of super busy - I'll get to it sometime next week

@hjanetzek
Copy link
Member

hmm - works for me with the latest vtm. I've changed vtm-0.5.9 to 0.6

@MarsVard
Copy link
Author

I just updated to 0.6.0 and it's still happening but for some reason the first time I openend the first activity and went back it was still OK, then the 2nd time and after that the labels and map were broken.

all in the repository I posted earlier... and I also noticed this in logs:

27892-27928/com.marsvard.brokenmaps W/Adreno-ES20﹕ <__load_uniform_matrix:1091>: GL_INVALID_OPERATION

Is there a way to force map to reload? maybe if I force the map to reload when the activity resumes that will fix it ?

@0nko
Copy link

0nko commented Jun 15, 2015

@MarsVard I found that it's caused by a texture used in the themes:
< style-area id="tex1" src="textures/rough.png" / >

When I removed it I got rid of the error.

@MarsVard
Copy link
Author

@0nko do you mean the GL_INVALID_OPERATION or the rendering being broken?

@0nko
Copy link

0nko commented Jun 18, 2015

@MarsVard yeah, GL_INVALID_OPERATION

@hjanetzek
Copy link
Member

@MarsVard, 0nko the texture issue should have been resolved by the latest commit

@0nko
Copy link

0nko commented Jun 20, 2015

@hjanetzek you're right, it works. thanks!

hjanetzek pushed a commit to hjanetzek/vtm that referenced this issue Nov 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants