Open fynngodau opened 1 year ago
@fynngodau I am not a JNI expert. Do you know what invalid native peer means by any chance? Have you seen it before?
@louwers Unfortunately not, I also haven't had a look at the relevant native code so far.
@fynngodau please share a branch where you have the commit. I will try to reproduce it on my side and see if I can figure it out.
@ovivoda Gladly! I created a branch with both changes (SimpleMapActivity
modified but still working, MapSnapshotterActivity
modified but broken) here: https://github.com/e-foundation/maplibre-gl-native/tree/demo-903-string-style-snapshotter-crash
@fynngodau I found a brute force fix for this but I think more investigation is needed to find the actual problem that probably comes from the native code!?
Here is a PR: https://github.com/maplibre/maplibre-gl-native/pull/941
Describe the bug
When using
Snapshotter
together with aStyle.Builder
constructed usingfromJson(String)
, the app crashes with the expection seen below.Expected behavior
Let
assets/basic-style.json
be a valid style.The following works – on a normal map:
Opening Simple map in the demo app works as expected.
To Reproduce
The following does not work:
The app crashes with the following exception once the Map Snapshotter demo is opened in the sample app:
Platform information (please complete the following information):