-
Notifications
You must be signed in to change notification settings - Fork 141
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
Moving style layer on top crashes app #1054
Comments
@ittna, can you please let me know what type of layer you're trying to move and the style? Additionally, if you have a code snippet you can share that would be helpful as well. |
I have |
Can you check whether the layer that you want to move exists using |
Still crashes with that check. I checked also
|
@ittna Looking further into this. Can you let us know if you have any special characters, Unicode points in the layer name? |
I have quite long layer ids (~70 characters) currently. Characters used a-z, '.' and '-'. One layer had 'é' but it didn't work with other layers either. I can test tomorrow if I can reproduce this with simpler layer ids. |
Yeah sure. it could happen due to special characters (when native code converts strings to java code). please try it without special chars and let us know. |
I tried it now with short layer ids containing only numbers and it still crashes with same stack trace. |
Can you share some code snippet as well here. |
@ittna additionally to code snippet representing an issue could you please check if that crash happens on device with Android OS < 12. Although I did check moving style layer on Android 12 emulator and I do not see a crash there. |
It happens at least on Android 11 device also. I can't share my code unfortunately but if I have time at some point I'll try isolate smaller example where it reproduces. |
Closing this, feel free to reopen the ticket if the issue still exists. |
#1 pc 00000000000eab24 /data/app/~~45_J2mtRd5J5TWB76WF6kg==/com.busqueensland-eVB8-AYG09bO1F0xBDpT1g==/lib/arm64/libc++_shared.so (BuildId: a59088f9640cd272bc9542d94dc84a0c88afd558) This issue still exist |
Environment
Observed behavior and steps to reproduce
Calling API
style.moveStyleLayer("layer-id", null)
causes app to crash.Expected behavior
Layer moves on top and app doesn't crash.
The text was updated successfully, but these errors were encountered: