Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Unable to get map tiles #40

Closed
STak4 opened this issue Jan 14, 2020 · 3 comments
Closed

Unable to get map tiles #40

STak4 opened this issue Jan 14, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@STak4
Copy link

STak4 commented Jan 14, 2020

Describe the bug
Sometimes a map is not displayed. I found get warning below when failed.

Warning

Unable to get map tiles : System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
  at System.IO.__Error.EndOfFile () [0x0000a] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.IO.BinaryReader.ReadByte () [0x00018] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zKVJIKHd6R9GF$zbi6A==.#=zh$SDn_M= (System.IO.BinaryReader #=zn4RLI9U=) [0x00007] in <28806a7992b14408cda0b6981896ab77>:0 
  at #=zKVJIKHd6R9GF$zbi6A==.#=zqFQEapmz0XPz (System.IO.BinaryReader #=zn4RLI9U=, System.Collections.Generic.Queue`1[T] #=zKOUEyBE=) [0x0000b] in <28806a7992b14408cda0b6981896ab77>:0 
  at #=zKVJIKHd6R9GF$zbi6A==.#=zN6HhEMk= (System.IO.Stream #=zU4ADeHE=, System.Reflection.Assembly #=zyfebFAiNUCkd) [0x0010e] in <28806a7992b14408cda0b6981896ab77>:0 
  at #=zfAJMWRSloMXI7S8H7gilWYR6S3zITjslJwf1KKA=.#=zTC8HwJU= (System.IO.Stream #=zU4ADeHE=) [0x0002e] in <28806a7992b14408cda0b6981896ab77>:0 
  at #=zfAJMWRSloMXI7S8H7gilWYR6S3zITjslJwf1KKA=+#=zDnSIV0l7LWUuzSdfdA==.MoveNext () [0x00231] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zilP7uhJLAmDlzh9NrZVgVPZie2KWXUF0vQlYr9U=+#=z_Yt$L5x9xPIJybnU5A==.MoveNext () [0x001ac] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=z6scY0$r9xWBvtHtAeRXavc2x6Iz2vEsveofV3RA=`2+#=zFwu1$d3x8JoDAb7AxA==[#=zDHtK93Q=,#=z_CEkzl0=].MoveNext () [0x00191] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zilP7uhJLAmDlzh9NrZVgVPZie2KWXUF0vQlYr9U=+#=zIKfgGJcKsCh2B1UVRA9Na00=.MoveNext () [0x00073] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zilP7uhJLAmDlzh9NrZVgVPZie2KWXUF0vQlYr9U=+#=zAeMv8ODHrwpQJGEOHRcXv2P0oL5f.MoveNext () [0x00104] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zilP7uhJLAmDlzh9NrZVgVPZie2KWXUF0vQlYr9U=+#=zWTPAOyzRYgwyV5OtYA==.MoveNext () [0x00078] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zN$bklFScqoOiaPL$IoTOmU9V7aFEQ9nf$g==+#=zNrc4LDK1t8m5zQn5ntLaQSA=+#=z8aPA4Yd0CsrPiMwtTKm1Z31NmKXq.MoveNext () [0x00139] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zN$bklFScqoOiaPL$IoTOmU9V7aFEQ9nf$g==+#=zi2Ni5uMqF5OMN4p9bvjrOmP2sylJ.MoveNext () [0x000d3] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zN$bklFScqoOiaPL$IoTOmU9V7aFEQ9nf$g==+#=zYiAJuT_t7xb_I7dK1XFELWI=.MoveNext () [0x00114] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=z$sncr998GqmTh$AwmfUa7Vp8qGUT+#=zuygQ6ZCNI3wxeHOvoMTHdMA=.MoveNext () [0x00084] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zZ0Bwr9YHFVfHSQqJEm4NtE4=+#=zl83nlriGcuUygQl0sbaMBgs=+#=ziGMjqygdIviX0R8cLg8c4BpB0mh3.MoveNext () [0x00135] in <28806a7992b14408cda0b6981896ab77>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <567df3e0919241ba98db88bec4c6696f>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0 
  at #=zZ0Bwr9YHFVfHSQqJEm4NtE4=+#=z4dHjiq$$HiIx1wsCXSrerjA=.MoveNext () [0x00297] in <28806a7992b14408cda0b6981896ab77>:0 
UnityEngine.Debug:LogWarning(Object)
#=z4dHjiq$$HiIx1wsCXSrerjA=:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=ziGMjqygdIviX0R8cLg8c4BpB0mh3:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=zuygQ6ZCNI3wxeHOvoMTHdMA=:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=zYiAJuT_t7xb_I7dK1XFELWI=:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=zi2Ni5uMqF5OMN4p9bvjrOmP2sylJ:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetException(Exception)
#=z8aPA4Yd0CsrPiMwtTKm1Z31NmKXq:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=zWTPAOyzRYgwyV5OtYA==:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=zAeMv8ODHrwpQJGEOHRcXv2P0oL5f:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=zIKfgGJcKsCh2B1UVRA9Na00=:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=zFwu1$d3x8JoDAb7AxA==:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=z_Yt$L5x9xPIJybnU5A==:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetException(Exception)
#=zDnSIV0l7LWUuzSdfdA==:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(#=zeuVqM6C$V0IBPdDo9A5Dgrj_h5DmaxkFyg==)
#=z7dbZp1WMf_zKnZXaog==:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(Tuple`2)
#=zzOJutBALqYDVbWek8sPQIQE=:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(Tuple`2)
#=zBnuyDa9SzlmtkLDbmJrY4Xbrfjkz:MoveNext()
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(Tuple`2)
#=zqReOYOktuzPJ8Nq5jkG4U9cXMiVE:MoveNext()
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback()

In 0.5.0, receive additional an error

Grid missing from cache: 000123221002110:141463700
UnityEngine.Debug:LogError(Object)
#=z5JnLfnmj6LAPhRpsxA==:#=zisEnFHrj_V6J0EWDRA==(#=zTtvz_sjHrFYAxtcYJFNm54FiujtG)
System.Collections.Generic.HashSet`1:RemoveWhere(Predicate`1)
#=zNkSQtren6lgAgs5iA$aWBmw=:#=zjrA5Teg=(#=zh6s7U5fGczzjBh7WVAu7PyDyudncLz03UQ==`2, GameObject, MapLabel)
Microsoft.Maps.Unity.MapLabelLayer:UpdateLabels(#=zh6s7U5fGczzjBh7WVAu7PyDyudncLz03UQ==`2, GameObject)
Microsoft.Maps.Unity.MapRenderer:#=z_EriDqA=()
Microsoft.Maps.Unity.MapRenderer:Update()

To Reproduce
Steps to reproduce the behavior:

  1. Create a project
  2. Import Microsoft.Maps.Unity-Core+Examples-0.4.2.unitypackage
  3. Open MapServiceExample scene (I think it cause also any other scene)
  4. Select Map object on hierarchy, write your BingMaps key on MapRenderer
  5. Play scene (Please repeat Play/Stop until reproduced)

Expected behavior
Success a map loading

Screenshots
Maps SDK 0.4.2
WTF

Maps SDK0.5.0
0-5-2

Environment (please complete the following information):

  • Unity version: 2019.2.13
  • Maps SDK NuGet Package version: 0.4.2 (0.5.0)

Additional context
Can I get the warning callback for reloading?

@STak4 STak4 added the bug Something isn't working label Jan 14, 2020
@kircher1
Copy link
Contributor

Thanks, this is also a bug we are tracking. As far as I can tell, this is an intermittent issue, but do let me know if you are able to repro this 100% of the time.

@TerraSame
Copy link

TerraSame commented Jan 22, 2020 via email

@kircher1
Copy link
Contributor

This should be fixed now in 0.6.1. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants