mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
725 stars 210 forks source link

MapManagerEditor crashing from time to time #1861

Open Markovicho opened 2 years ago

Markovicho commented 2 years ago

Using performance branch AbstractMap / MapManagerEditor is crashing based on this line from time to time (can't reproduce what steps are causing it exactly):

image

The line which fails is this one:

image

The debug version of AbstractMap-Component looks like this when broken: image

I checked out another project where the component is still working image

it's obvious that the inspector drawing stops after the nullreference on mapvisualizer which should be an asset (scriptable object).

@brnkhy The property should be created automatically on accessing the property which also fails obviously

image image

Nextrevit commented 2 years ago

I'm having the same issue on 2019.4.36f1 w/ the Performance branch, I copied and pasted the map and the attribution to another scene and the GUI no longer functions correctly. image But if I run it, the issue persists. If I activate the map all the values reset and the GUI works how it should. image

Scripting backend: Mono NET comp - 2.0 Win7 64bit If I'm leaving any information out please let me know.

Edit: I had to delete the "MapboxUnitTests_AbstractMapTests.cs" because it threw quite a few compile errors. Issue still persists.

Markovicho commented 2 years ago

Maybe an investigation that could help solving the isse. I tried to create a MapVisualizer (Quad-Tree) Scriptable Object via Mapbox Context menu. The idea was to assign this object in debug mode of AbstractMap. But creating the editor-view of this object is failing: image

maybe this is the source of all evil ? ^^

steps to reproduce:

  1. Create -> Mapbox ->MapVisualizer->QuadTreeMapVisualizer
  2. Select Asset
  3. trying to open any of the dropdowns (image,terrain,...) in the inspector
brnkhy commented 2 years ago

@Markovicho editor&UI is definitely one of my least favorite things about the SDK. This is probably one of the object drawers not working properly 🤔