{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-unity-sdk/issues/345","repository_url":"https://api.github.com/repos/mapbox/mapbox-unity-sdk","labels_url":"https://api.github.com/repos/mapbox/mapbox-unity-sdk/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-unity-sdk/issues/345/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-unity-sdk/issues/345/events","html_url":"https://github.com/mapbox/mapbox-unity-sdk/issues/345","id":270937094,"number":345,"title":"Exception with cached tiles.","user":{"login":"mihakrajnc","id":8857844,"avatar_url":"https://avatars1.githubusercontent.com/u/8857844?v=4","gravatar_id":"","url":"https://api.github.com/users/mihakrajnc","html_url":"https://github.com/mihakrajnc","followers_url":"https://api.github.com/users/mihakrajnc/followers","following_url":"https://api.github.com/users/mihakrajnc/following{/other_user}","gists_url":"https://api.github.com/users/mihakrajnc/gists{/gist_id}","starred_url":"https://api.github.com/users/mihakrajnc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihakrajnc/subscriptions","organizations_url":"https://api.github.com/users/mihakrajnc/orgs","repos_url":"https://api.github.com/users/mihakrajnc/repos","events_url":"https://api.github.com/users/mihakrajnc/events{/privacy}","received_events_url":"https://api.github.com/users/mihakrajnc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-03T10:43:51Z","updated_at":"2017-11-03T14:01:27Z","closed_at":null,"author_association":"NONE","body":"So I've been getting this weird exception sometimes, and I think it's because I'm running two maps in one scene (man map & a minimap), but I might be wrong here.\r\n\r\nThe exception is:\r\n```\r\n[Exception] ArgumentException: An element with the same key already exists in the dictionary.\r\nSystem.Collections.Generic.Dictionary`2[Mapbox.Unity.MeshGeneration.Data.UnityTile,Mapbox.Map.VectorTile].Add()    /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404\r\n\r\nVectorTileFactory+<OnRegistered>c__AnonStorey0.<>m__0()    Assets/Addons/Mapbox/Unity/MeshGeneration/Factories/VectorTileFactory.cs:72\r\n70:   }\r\n-->72:   _cachedData.Add(tile, vectorTile);\r\n74:   // FIXME: we can make the request BEFORE getting a response from these!\r\n\r\nTile.HandleTileResponse()    Assets/Addons/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs:226\r\n224:           _state = State.Loaded;\r\n225:       }\r\n-->226:       _callback();\r\n227:   }\r\n\r\nCachingWebFileSource+<Request>c__AnonStorey0.<>m__0()    Assets/Addons/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs:159\r\n157:                   }\r\n158:               }\r\n-->159:               callback(r);\r\n160:           }, timeout);\r\n161:   }\r\n\r\nHTTPRequest+<DoRequest>c__Iterator0.MoveNext()    Assets/Addons/Mapbox/Unity/Utilities/HTTPRequest.cs:87\r\n85:   }\r\n-->87:   _callback(response);\r\n88:   _request.Dispose();\r\n89:   _request = null;\r\n\r\nRunnable+Routine.MoveNext()    Assets/Addons/Mapbox/Unity/Utilities/Runnable.cs:130\r\n128:   public bool MoveNext()\r\n129:   {\r\n-->130:       m_bMoveNext = m_Enumerator.MoveNext();\r\n131:       if (m_bMoveNext && Stop)\r\n132:           m_bMoveNext = false;\r\n\r\nSetupCoroutine.InvokeMoveNext()    C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17\r\n```\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-unity-sdk/issues/comments/341711364","html_url":"https://github.com/mapbox/mapbox-unity-sdk/issues/345#issuecomment-341711364","issue_url":"https://api.github.com/repos/mapbox/mapbox-unity-sdk/issues/345","id":341711364,"user":{"login":"BergWerkGIS","id":4549888,"avatar_url":"https://avatars1.githubusercontent.com/u/4549888?v=4","gravatar_id":"","url":"https://api.github.com/users/BergWerkGIS","html_url":"https://github.com/BergWerkGIS","followers_url":"https://api.github.com/users/BergWerkGIS/followers","following_url":"https://api.github.com/users/BergWerkGIS/following{/other_user}","gists_url":"https://api.github.com/users/BergWerkGIS/gists{/gist_id}","starred_url":"https://api.github.com/users/BergWerkGIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BergWerkGIS/subscriptions","organizations_url":"https://api.github.com/users/BergWerkGIS/orgs","repos_url":"https://api.github.com/users/BergWerkGIS/repos","events_url":"https://api.github.com/users/BergWerkGIS/events{/privacy}","received_events_url":"https://api.github.com/users/BergWerkGIS/received_events","type":"User","site_admin":false},"created_at":"2017-11-03T14:01:27Z","updated_at":"2017-11-03T14:01:27Z","author_association":"MEMBER","body":"@mihakrajnc thanks for reporting, that shouldn't happen.\r\nWill look into that during the next weeks."}}
{"actor":{"display_login":"BergWerkGIS"}}