Declined
Last Updated: 14 Oct 2019 08:26 by ADMIN
Jason D
Created on: 24 Sep 2019 13:01
Category: Map
Type: Bug Report
1
Map IOException

I have only seen this once. It's possible this is because I am using multiple maps at the same time. I think it crashed the application, but I do not recall.

 

System.IO.IOException
  HResult=0x80070020
  Message=The process cannot access the file 'C:\Users\jasond\AppData\Local\TelerikMapCache\Telerik.Windows.Controls.Map.BingRestRoadOnDemandSource.23x7935x11621' because it is being used by another process.
  Source=mscorlib
  StackTrace:
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Telerik.Windows.Controls.Map.FileSystemCache.OpenCacheStream(String fileName)
   at Telerik.Windows.Controls.Map.FileCacheBase.LoadAsync(String fileName, Action`1 callback)
   at Telerik.Windows.Controls.Map.TiledMapSource.GetCachedTileAsync(Int32 tileLevel, Int32 tilePositionX, Int32 tilePositionY, Action`1 callback)
   at Telerik.Windows.Controls.Map.MultiScaleTileSource.DownloadTile(TileId tileId)
   at Telerik.Windows.Controls.Map.TilesDownloadManager.RequestTile(Int32 requestLevel, Int32 tileX, Int32 tileY, Nullable`1 absTileX)
   at Telerik.Windows.Controls.Map.TilesDownloadManager.RequestTop3Levels(Int32 endLevel3)
   at Telerik.Windows.Controls.Map.TilesDownloadManager.Process()
   at Telerik.Windows.Controls.Map.TilesDownloadManager.DownloaderThread()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

2 comments
ADMIN
Vladimir Stoyanov
Posted on: 14 Oct 2019 08:26

Hello Jason ,

I will proceed with changing the status of this bug report to declined. However, if you manage to reproduce the exception in a sample project, please send it over and we will be glad to investigate further. 

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Vladimir Stoyanov
Posted on: 01 Oct 2019 09:35

Hello Jason,

Thank you for the provided stacktrace.

The exception appears to be in the constructor of the FileStream object and indicates that a file is currently in use. Unfortunately, we were not able to reproduce the exception on our end, which is necessary in order to accept this as a bug report. If possible, I would ask you to isolate the behavior in a sample project and send it over. This will allow us to investigate the scenario and hopefully find a fix. 

On a side note, since the exception appears to be inside the tile caching mechanism, you can try setting IsTileCachingEnabled = False on the MapProvider. 

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.