Search Issue Tracker
Fixed
Fixed in 2021.3.11f1, 2022.1.23f1, 2022.2.0b11, 2023.1.0a9
Votes
3
Found in
2021.3.6f1
2022.2.0a19
2023.1.0a2
Issue ID
UUM-8885
Regression
Yes
[iOS] Crash when calling Directory.GetFiles twice
Steps to reproduce:
1. Download and open the attached "IOS_Test" project
2. Build and deploy the project to iOS
3. Observe the crash
Reproducible with: 2021.3.4f1, 2021.3.6f1, 2022.2.0a19, 2023.1.0a2
Not reproducible with: 2019.4, 2021.3.3f1
Reproduced on: iPhone 6 (iOS 12.5.5, 12.1)
Not reproducible with: iPhone 12 Pro (iOS 14.2.1), iPhone 13 Pro (iOS 15.0.0)
Stack trace:
EXC_BAD_ACCESS
Thread 1 Queue : com.apple.main-thread (serial)
#0 0x000000018118ae3c in _platform_memmove ()
#1 0x0000000103e2af48 in SystemNative_ReadDirR ()
#2 0x0000000103f10acc in FileSystemEnumerator_1_FindNextEntry_mD0919D870632740E293E9EC21AE90210EC61AA4B_gshared ()
#3 0x0000000103f105dc in FileSystemEnumerator_1_MoveNext_m89D6D3D077EC8054EB93582BD22068EDF2DD9A84_gshared ()
#4 0x0000000103f23de0 in LargeArrayBuilder_1_AddRange_m99FC93695E72F4F2883183D5F9B865C2C36D93C0_gshared ()
#5 0x0000000103eb84dc in EnumerableHelpers_ToArray_TisRuntimeObject_mC5C18A267F97879F9E2C96DF47B9E16A3D3D02A4_gshared ()
#6 0x0000000103e80168 in FileTest_GetItems_m0C5EF316AEEEB2DD63799145FFCCA0718545022F ()
#7 0x0000000103e66c90 in il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) ()
#8 0x0000000103e66ad8 in il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) ()
#9 0x0000000103251600 in scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) ()
#10 0x000000010325d1b0 in ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) ()
#11 0x000000010326a1d8 in MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingExceptionPtr*) ()
#12 0x000000010326a35c in MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr) ()
#13 0x000000010326abe0 in MonoBehaviour::DelayedStartCall(Object*, void*) ()
#14 0x00000001030c123c in DelayedCallManager::Update(int) ()
#15 0x000000010316d3b8 in ExecutePlayerLoop(NativePlayerLoopSystem*) ()
#16 0x000000010316d3f8 in ExecutePlayerLoop(NativePlayerLoopSystem*) ()
#17 0x000000010316d654 in PlayerLoop() ()
#18 0x00000001038768d4 in UnityPlayerLoopImpl(bool) ()
#19 0x0000000103018f14 in UnityRepaint ()
#20 0x000000010300b4a8 in -[UnityAppController(ViewHandling) showGameUI] ()
#21 0x00000001030131f4 in -[UnityAppController startUnity:] ()
#22 0x0000000181ff022c in __NSFireDelayedPerform ()
#23 0x000000018150d554 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#24 0x000000018150d284 in __CFRunLoopDoTimer ()
#25 0x000000018150cab8 in __CFRunLoopDoTimers ()
#26 0x0000000181507a08 in __CFRunLoopRun ()
#27 0x0000000181506fb4 in CFRunLoopRunSpecific ()
#28 0x000000018370979c in GSEventRunModal ()
#29 0x00000001adf53c38 in UIApplicationMain ()
#30 0x0000000103018928 in -[UnityFramework runUIApplicationMainWithArgc:argv:] ()
#31 0x0000000101237e1c in main at /Users/s.shepshelevich/Semen/Builds/iOS_test/MainApp/main.mm:26
#32 0x0000000180fca8e0 in start ()
-
inv0ke
Nov 22, 2022 12:27
I have the same question in 2021.3.8
-
AndersonDev
Oct 05, 2022 14:33
Hi! Still presented on 2021.3.11f1, and moreover, amount of affected users increased. On Unity 2021.3.8f1 crash had been affecting only users on iOS 12 and lower, now - it's on all versions of iOS. For us, it's a significant crash, which affects up to 10% of DAU.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash when trying to force Shader to interpret 1/30 as a floating point operation
- Terrain is flickering when adjusting "Compatibility Mode" and "Use Rendering Layers" Settings
- Isometric tiles are flickering and overlapping each other when entering Play Mode with Tilemap Renderer mode set to "Chunk"
- Crash on ParticleSystemParticles::array_reserve when particle system starts
- Docking Text Property Preview Window next to UI Builder breaks the window and causes NullReferenceException
Resolution Note (fix version 2023.1.0a9):
Verified with: 2023.1.0a9.964
Revision: trunk b67b5a2b1f70
Built: Wed, 24 Aug 2022 20:40:15 GMT
Resolution Note (fix version 2022.2.0b11):
Verified with 2022.2.0b11.git.16511571
Revision: 2022.2/staging fbf253239670
Built: Thu, 06 Oct 2022 20:52:57 GMT
Resolution Note (fix version 2022.1.23f1):
Verified with 2022.1.23f1.git.9844400
Revision: 2022.1/staging 9636b062134a
Built: Mon, 07 Nov 2022 15:38:26 GMT
Resolution Note (fix version 2021.3.11f1):
Verified with: 2021.3.11f1.git.679073 Personal
Revision: 2021.3/staging 0a5ca18544bf
Built: Mon, 19 Sep 2022 22:16:46 GMT