Topic: Android NullRef in Marker3D
Hi,
since yesterday I'm trying to solve an issue, but I'm at a loss here.
In Editor everything works fine, but when deploying to android I get this Exception (every tick, since it's in the update):
AndroidPlayer(ADB@127.0.0.1:34999) NullReferenceException: Object reference not set to an instance of an object.
at OnlineMapsMarker3D.Update (UnityEngine.Bounds bounds, System.Double tlx, System.Double tly, System.Double brx, System.Double bry, System.Int32 zoom, System.Double ttlx, System.Double ttly, System.Double tbrx, System.Double tbry, System.Single bestYScale) [0x00000] in <00000000000000000000000000000000>:0
at OnlineMapsMarker3DDrawer.Update3DMarkers () [0x00000] in <00000000000000000000000000000000>:0
at OnlineMapsControlBase3D.UpdateControl () [0x00000] in <00000000000000000000000000000000>:0
at OnlineMapsControlBaseDynamicMesh.UpdateControl () [0x00000] in <00000000000000000000000000000000>:0
at OnlineMapsTileSetControl.UpdateControl () [0x00000] in <00000000000000000000000000000000>:0
at OnlineMaps.CheckBufferComplete () [0x00000] in <00000000000000000000000000000000>:0
at OnlineMaps.LateUpdate () [0x00000] in <00000000000000000000000000000000>:0
Unfortunately I couldn't figure out a way to get a better stacktrace.
I debugged a lot since then and the line of code it crashes is in
OnlineMapsMarker3D.Update -> Line 321 (if (instance == null) Init(control.marker3DManager.container))
Being called inside the PlayerLocation marker.
Debugging inside the Init method does not throw any exceptions.
I'm using Unity 2020.3 with the newest version of OnlineMaps v3 (updated yesterday).
Any help is much appreciated.
In case you have discord I can share my screen if this helps.
Thanks.