Skip to content

Bug: "ArgumentException: path" when deleting cache #653

@JorgenEngenNapstad

Description

@JorgenEngenNapstad

I'm getting an "ArgumentException: path" when I try to delete cache through the Mapbox -> Clear Caches -> All menu. It started happening after upgrading to version 1.4.0.

  • Unity version: 2017.3.1f1
  • Mapbox SDK version: 1.4.0
  • The platform you're building to: Running in Editor only
  • A description of what you're trying to do: Delete cache
  • Steps to recreate the bug if appropriate:
  • Links to your logs are also helpful:

Log from Console:

deleting \\?\C:\Users\jorra\AppData\LocalLow\Goontech AS\Syna\cache\mapbox.terrain-rgb.cache
0x00000001412F21A6 (Unity) StackWalker::GetCurrentCallstack
0x00000001412F2D1F (Unity) StackWalker::ShowCallstack
0x00000001411B0910 (Unity) GetStacktrace
0x00000001406DAF53 (Unity) DebugStringToFile
0x00000001406DB731 (Unity) DebugStringToFile
0x000000014142BB62 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000000004C29A570 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,string,UnityEngine.Object)
0x000000004C29A44A (Mono JIT Code) [DebugLogHandler.cs:10] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) 
0x000000004C299E2B (Mono JIT Code) [Logger.cs:114] UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[]) 
0x000000004C299B63 (Mono JIT Code) [DebugBindings.gen.cs:115] UnityEngine.Debug:LogFormat (string,object[]) 
0x000000004C298842 (Mono JIT Code) [MbTiles.cs:329] Mapbox.Platform.MbTiles.MbTilesDb:Delete () 
0x000000004C29842D (Mono JIT Code) [MbTilesCache.cs:176] Mapbox.Platform.Cache.MbTilesCache:Clear (string) 
0x000000004C297B54 (Mono JIT Code) [MbTilesCache.cs:164] Mapbox.Platform.Cache.MbTilesCache:Clear () 
0x000000004C297648 (Mono JIT Code) [CachingWebFileSource.cs:99] Mapbox.Platform.Cache.CachingWebFileSource:Clear () 
0x000000004C2973D7 (Mono JIT Code) [MapboxAccess.cs:132] Mapbox.Unity.MapboxAccess:ClearSceneCache () 
0x000000004C296E4A (Mono JIT Code) [MapboxAccess.cs:141] Mapbox.Unity.MapboxAccess:ClearAllCacheFiles () 
0x000000004C296D47 (Mono JIT Code) [ClearMbTilesCache.cs:23] Mapbox.Editor.ClearMbTilesCache:ClearAllCachFiles () 
0x000000004C4C298E (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FFE0903436A (mono-2.0-bdwgc) [mini-runtime.c:2620] mono_jit_runtime_invoke 
0x00007FFE09239567 (mono-2.0-bdwgc) [object.c:2853] do_runtime_invoke 
0x00007FFE09241F6F (mono-2.0-bdwgc) [object.c:2905] mono_runtime_invoke 
0x0000000140A2EF6C (Unity) scripting_method_invoke
0x0000000140A229AA (Unity) ScriptingInvocation::Invoke
0x0000000140A23A1E (Unity) ScriptingInvocation::InvokeChecked
0x0000000140C087B1 (Unity) ScriptCommands::InvokeMenuItemWithContext
0x0000000140C08A03 (Unity) ScriptCommands::Execute
0x000000014115E969 (Unity) MenuController::ExecuteMenuItem
0x000000014140F7FD (Unity) ProcessMainWindowMessages
0x00000001413FC308 (Unity) ContainerWindow::ContainerWndProc
0x00007FFE5358B85D (USER32) CallWindowProcW
0x00007FFE5358B1EF (USER32) DispatchMessageW
0x000000014140FE90 (Unity) MainMessageLoop
0x00000001414117AC (Unity) WinMain
0x0000000141E65728 (Unity) __tmainCRTStartup
0x00007FFE52DE1FE4 (KERNEL32) BaseThreadInitThunk
0x00007FFE5522EFC1 (ntdll) RtlUserThreadStart

Error from Console:

ArgumentException: path
System.IO.Path.Validate (System.String path, System.String parameterName) (at <c95265f74fdf4905bfb0d5a4b652216c>:0)
System.IO.Path.Validate (System.String path) (at <c95265f74fdf4905bfb0d5a4b652216c>:0)
System.IO.File.Delete (System.String path) (at <c95265f74fdf4905bfb0d5a4b652216c>:0)
Mapbox.Platform.MbTiles.MbTilesDb.Delete () (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/MbTiles/MbTiles.cs:347)
Mapbox.Platform.Cache.MbTilesCache.Clear (System.String mapId) (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MbTilesCache.cs:175)
Mapbox.Platform.Cache.MbTilesCache.Clear () (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MbTilesCache.cs:163)
Mapbox.Platform.Cache.CachingWebFileSource.Clear () (at Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs:98)
Mapbox.Unity.MapboxAccess.ClearSceneCache () (at Assets/Mapbox/Unity/MapboxAccess.cs:131)
Mapbox.Unity.MapboxAccess.ClearAllCacheFiles () (at Assets/Mapbox/Unity/MapboxAccess.cs:139)
Mapbox.Editor.ClearMbTilesCache.ClearAllCachFiles () (at Assets/Mapbox/Unity/Editor/ClearMbTilesCache.cs:22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions