Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOException: Sharing violation on path, Main Thread Checker: UI API called on a background thread #46

Open
bwyyoung opened this issue Apr 30, 2019 · 0 comments

Comments

@bwyyoung
Copy link

bwyyoung commented Apr 30, 2019

I received this error after loading multiple images on iOS.
It seems that unicache gets a sharing violation error.
The end result is that some pictures appear as a big red "?".

Unity Version: 2018.3.3f1 on MacOS Mojave 10.14.4
Compiled for iOS 12 Device, iPad Pro 12.9

Please see the error log below:

Main Thread Checker: UI API called on a background thread: -[UIView isMultipleTouchEnabled]
PID: 3581, TID: 3596285, Thread name: IL2CPP Threadpool worker, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   Nujok                               0x0000000105c17168 _Z19IsMultiTouchEnabledv + 40
5   Nujok                               0x00000001055fe0ac _ZN11UnityEngine15PlatformWrapper14GetSensorFlagsEv + 72
6   Nujok                               0x0000000105612694 _ZN14CrashReporting11CrashReport15CaptureMetadataEv + 532
7   Nujok                               0x00000001056156dc _ZN14CrashReporting13CrashReporter24PopulateReportSharedDataERNS_11CrashReportEb + 60
8   Nujok                               0x0000000105615390 _ZN14CrashReporting13CrashReporter10SendReportERNS_11CrashReportEb + 52
9   Nujok                               0x0000000105615278 _ZN14CrashReporting13CrashReporter9HandleLogERKN4core12basic_stringIcNS1_20StringStorageDefaultIcEEEES7_S7_7LogType + 432
10  Nujok                               0x0000000105614f6c _ZN14CrashReporting13CrashReporter19OnLogCallbackStaticERK21DebugStringToFileData7LogTypeb + 112
11  Nujok                               0x0000000105bc2eb4 _ZN14CallbackArray3IRK21DebugStringToFileData7LogTypebE6InvokeES2_S3_b + 128
12  Nujok                               0x0000000105bc2b54 _Z40DebugStringToFilePostprocessedStacktraceRK21DebugStringToFileData + 224
13  Nujok                               0x00000001059c83fc _ZN9Scripting12LogExceptionE21ScriptingExceptionPtriPKcb + 360
14  Nujok                               0x0000000107411974 DebugLogHandler_Internal_LogException_m8400B0D97B8D4A155A449BD28A32C68373A1A856 + 88
15  Nujok                               0x0000000107411acc DebugLogHandler_LogException_m816CF2DDA84DFC1D1715B24F9626BD623FF05416 + 212
16  Nujok                               0x0000000104ac8da4 _ZN23InterfaceActionInvoker2IP11Exception_tP48Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0E6InvokeEjP11Il2CppClassP12Il2CppObjectS1_S3_ + 680
17  Nujok                               0x00000001074231b4 Logger_LogException_m362D3434D3B275B0B98E434BFBFBF52C76BBC9C3 + 196
18  Nujok                               0x0000000104ac8da4 _ZN23InterfaceActionInvoker2IP11Exception_tP48Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0E6InvokeEjP11Il2CppClassP12Il2CppObjectS1_S3_ + 680
19  Nujok                               0x0000000107402238 Debug_LogException_mBAA6702C240E37B2A834AA74E4FDC15A3A5589A9 + 228
20  Nujok                               0x000000010745aa90 UnhandledExceptionHandler_PrintException_m4CBE36F17C3F2B72205DB96B6D1377E4B3D11C77 + 172
21  Nujok                               0x000000010745a8e8 UnhandledExceptionHandler_HandleUnhandledException_m09FC7ACFE0E555A5815A790856FBF5B0CA50819E + 208
22  Nujok                               0x00000001078f81d0 UnhandledExceptionEventHandler_Invoke_mC938E535CF92DEF9D290D03129DA15ACD49F251B + 1044
23  Nujok                               0x0000000104d79304 _Z93RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_RuntimeObject_RuntimeObjectPFvvEPK10MethodInfoPvPS4_ + 84
24  Nujok                               0x000000010608a1a8 _ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException + 108
25  Nujok                               0x000000010608aadc _ZN6il2cpp2vm7Runtime30CallUnhandledExceptionDelegateEP12Il2CppDomainP14Il2CppDelegateP15Il2CppException + 96
26  Nujok                               0x000000010608aa68 _ZN6il2cpp2vm7Runtime18UnhandledExceptionEP15Il2CppException + 128
27  Nujok                               0x0000000106081ce0 _ZN6il2cpp2vmL11ThreadStartEPv + 256
28  Nujok                               0x0000000106063bb8 _ZN6il2cpp2os6Thread10RunWrapperEPv + 84
29  Nujok                               0x00000001060656a4 _ZN6il2cpp2os10ThreadImpl18ThreadStartWrapperEPv + 36
30  libsystem_pthread.dylib             0x000000018571f2c0 <redacted> + 128
31  libsystem_pthread.dylib             0x000000018571f220 _pthread_start + 44
32  libsystem_pthread.dylib             0x0000000185722cdc thread_2019-04-30 14:19:49.249544+0800 Nujok[3581:3596285] [reports] Main Thread Checker: UI API called on a background thread: -[UIView isMultipleTouchEnabled]
PID: 3581, TID: 3596285, Thread name: IL2CPP Threadpool worker, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   Nujok                               0x0000000105c17168 _Z19IsMultiTouchEnabledv + 40
5   Nujok                               0x00000001055fe0ac _ZN11UnityEngine15PlatformWrapper14GetSensorFlagsEv + 72
6   Nujok                               0x0000000105612694 _ZN14CrashReporting11CrashReport15CaptureMetadataEv + 532
7   Nujok                               0x00000001056156dc _ZN14CrashReporting13CrashReporter24PopulateReportSharedDataERNS_11CrashReportEb + 60
8   Nujok                               0x0000000105615390 _ZN14CrashReporting13CrashReporter10SendReportERNS_11CrashReportEb + 52
9   Nujok                               0x0000000105615278 _ZN14CrashReporting13CrashReporter9HandleLogERKN4core12basic_stringIcNS1_20StringStorageDefaultIcEEEES7_S7_7LogType + 432
10  Nujok                               0x0000000105614f6c _ZN14CrashReporting13CrashReporter19OnLogCallbackStaticERK21DebugStringToFileData7LogTypeb + 112
11  Nujok                               0x0000000105bc2eb4 _ZN14CallbackArray3IRK21DebugStringToFileData7LogTypebE6InvokeES2_S3_b + 128
12  Nujok                               0x0000000105bc2b54 _Z40DebugStringToFilePostprocessedStacktraceRK21DebugStringToFileData + 224
13  Nujok                               0x00000001059c83fc _ZN9Scripting12LogExceptionE21ScriptingExceptionPtriPKcb + 360
14  Nujok                               0x0000000107411974 DebugLogHandler_Internal_LogException_m8400B0D97B8D4A155A449BD28A32C68373A1A856 + 88
15  Nujok                               0x0000000107411acc DebugLogHandler_LogException_m816CF2DDA84DFC1D1715B24F9626BD623FF05416 + 212
16  Nujok                               0x0000000104ac8da4 _ZN23InterfaceActionInvoker2IP11Exception_tP48Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0E6InvokeEjP11Il2CppClassP12Il2CppObjectS1_S3_ + 680
17  Nujok                               0x00000001074231b4 Logger_LogException_m362D3434D3B275B0B98E434BFBFBF52C76BBC9C3 + 196
18  Nujok                               0x0000000104ac8da4 _ZN23InterfaceActionInvoker2IP11Exception_tP48Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0E6InvokeEjP11Il2CppClassP12Il2CppObjectS1_S3_ + 680
19  Nujok                               0x0000000107402238 Debug_LogException_mBAA6702C240E37B2A834AA74E4FDC15A3A5589A9 + 228
20  Nujok                               0x000000010745aa90 UnhandledExceptionHandler_PrintException_m4CBE36F17C3F2B72205DB96B6D1377E4B3D11C77 + 172
21  Nujok                               0x000000010745a8e8 UnhandledExceptionHandler_HandleUnhandledException_m09FC7ACFE0E555A5815A790856FBF5B0CA50819E + 208
22  Nujok                               0x00000001078f81d0 UnhandledExceptionEventHandler_Invoke_mC938E535CF92DEF9D290D03129DA15ACD49F251B + 1044
23  Nujok                               0x0000000104d79304 _Z93RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_RuntimeObject_RuntimeObjectPFvvEPK10MethodInfoPvPS4_ + 84
24  Nujok                               0x000000010608a1a8 _ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException + 108
25  Nujok                               0x000000010608aadc _ZN6il2cpp2vm7Runtime30CallUnhandledExceptionDelegateEP12Il2CppDomainP14Il2CppDelegateP15Il2CppException + 96
26  Nujok                               0x000000010608aa68 _ZN6il2cpp2vm7Runtime18UnhandledExceptionEP15Il2CppException + 128
27  Nujok                               0x0000000106081ce0 _ZN6il2cpp2vmL11ThreadStartEPv + 256
28  Nujok                               0x0000000106063bb8 _ZN6il2cpp2os6Thread10RunWrapperEPv + 84
29  Nujok                               0x00000001060656a4 _ZN6il2cpp2os10ThreadImpl18ThreadStartWrapperEPv + 36
30  libsystem_pthread.dylib             0x000000018571f2c0 <redacted> + 128
31  libsystem_pthread.dylib             0x000000018571f220 _pthread_start + 44
32  libsystem_pthread.dylib             0x0000000185722cdc thread_
Uploading Crash Report
IOException: Sharing violation on path /var/mobile/Containers/Data/Application/3047FBA1-B07E-4335-9F45-F35D0B1CAFA9/Library/Caches/unicache/0a882518efde832b51afcf55ebdb271bbbae0eac
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00000] in <00000000000000000000000000000000>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <00000000000000000000000000000000>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <00000000000000000000000000000000>:0 
  at Unicache.IO.Write (System.String fullpath, System.Byte[] data) [0x00000] in <00000000000000000000000000000000>:0 
  at Unicache.FileCache.SetCacheByPath (System.String path, System.Byte[] data) [0x00000] in <00000000000000000000000000000000>:0 
  at Unicache.FileCache.DeleteAndSetCache (Unicache.FileCache+Command command) [0x00000] in <00000000000000000000000000000000>:0 
  at Unicache.FileCache.<AsyncDeleteAndSetCache>b__40_0 (Unicache.FileCache+Command _command) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0 
  at UniRx.Observer+Subscribe`1[T].OnNext (T value) [0x00000] in <00000000000000000000000000000000>:0 
  at UniRx.Operators.ObserveOnObservable`1+ObserveOn+<>c__DisplayClass10_0[T].<ProcessNext>b__0 () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0 
  at UniRx.Scheduler+ThreadPoolScheduler+<>c__DisplayClass3_0.<Schedule>b__0 (System.Object _) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.WaitCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.ContextCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <00000000000000000000000000000000>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.UnhandledExceptionHandler:PrintException(String, Exception)
UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs)
System.UnhandledExceptionEventHandler:Invoke(Object, UnhandledExceptionEventArgs)
 
(Filename: currently not available on il2cpp Line: -1)

IOException: Sharing violation on path /var/mobile/Containers/Data/Application/3047FBA1-B07E-4335-9F45-F35D0B1CAFA9/Library/Caches/unicache/726ffe914761d96787635e72991d144d2c2e8d3c
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00000] in <00000000000000000000000000000000>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <00000000000000000000000000000000>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <00000000000000000000000000000000>:0 
  at Unicache.IO.Write (System.String fullpath, System.Byte[] data) [0x00000] in <00000000000000000000000000000000>:0 
  at Unicache.FileCache.SetCacheByPath (System.String path, System.Byte[] data) [0x00000] in <00000000000000000000000000000000>:0 
  at Unicache.FileCache.DeleteAndSetCache (Unicache.FileCache+Command command) [0x00000] in <00000000000000000000000000000000>:0 
  at Unicache.FileCache.<AsyncDeleteAndSetCache>b__40_0 (Unicache.FileCache+Command _command) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0 
  at UniRx.Observer+Subscribe`1[T].OnNext (T value) [0x00000] in <00000000000000000000000000000000>:0 
  at UniRx.Operators.ObserveOnObservable`1+ObserveOn+<>c__DisplayClass10_0[T].<ProcessNext>b__0 () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Action.Invoke () [0x00000] in <00000000000000000000000000000000>:0 
  at UniRx.Scheduler+ThreadPoolScheduler+<>c__DisplayClass3_0.<Schedule>b__0 (System.Object _) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.WaitCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.ContextCallback.Invoke (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <00000000000000000000000000000000>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.UnhandledExceptionHandler:PrintException(String, Exception)
UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs)
System.UnhandledExceptionEventHandler:Invoke(Object, UnhandledExceptionEventArgs)
 
(Filename: currently not available on il2cpp Line: -1)

2019-04-30 14:20:07.219648+0800 Nujok[3581:3596159] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x280c23640, domain=1, instance=1>
-> applicationWillResignActive()
Uploading Crash Report
-> applicationDidEnterBackground()
-> applicationWillTerminate()
Setting up 1 worker threads for Enlighten.
  Thread -> id: 16ba83000 -> priority: 1 
There needs to be one active Mode_Debug script on a GameObject in your scene.
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
Mode_Debug:get_Instance()
Mode_Debug:DebugMode()
Dbg:Trace(String)
UniversalMediaPlayer:Stop()
UniversalMediaPlayer:Release()
UniversalMediaPlayer:OnDestroy()
 
(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object.
  at Mode_Debug.DebugMode () [0x00000] in <00000000000000000000000000000000>:0 
  at Dbg.Trace (System.String Message) [0x00000] in <00000000000000000000000000000000>:0 
  at UniversalMediaPlayer.Stop () [0x00000] in <00000000000000000000000000000000>:0 
  at UniversalMediaPlayer.Release () [0x00000] in <00000000000000000000000000000000>:0 
  at UniversalMediaPlayer.OnDestroy () [0x00000] in <00000000000000000000000000000000>:0 
 
(Filename: currently not available on il2cpp Line: -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant