mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

MapManagerEditor crashing from time to time

Open Markovicho opened this issue 2 years ago • 3 comments

  • Unity version: 2021.2.x
  • Mapbox SDK version: performance branch latest commit

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

Markovicho avatar Mar 16 '22 10:03 Markovicho

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.

Nextrevit avatar Mar 16 '22 20:03 Nextrevit

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

Markovicho avatar Mar 23 '22 08:03 Markovicho

@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 🤔

brnkhy avatar May 17 '22 09:05 brnkhy