NSCocoaErrorDomain code = 134093 , only in iOS16

i have received a lot of crash log only in iOS16

the crash occured when i called :

[[PHImageManager defaultManager] requestImageDataForAsset:asset options:options resultHandler:resultHandler]

here is the crash log

Exception Type: NSInternalInconsistencyException
ExtraInfo:
Code Type: arm64
OS Version: iPhone OS 16.0 (20A5328h)
Hardware Model: iPhone14,3
Launch Time: 2022-07-30 18:43:25
Date/Time: 2022-07-30 18:49:17
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason:Unhandled error (NSCocoaErrorDomain, 134093) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=134093 "(null)"
Last Exception Backtrace:
0 CoreFoundation 0x00000001cf985dc4 0x1cf97c000 + 40388
1 libobjc.A.dylib 0x00000001c8ddfa68 0x1c8dc8000 + 96872
2 CoreData 0x00000001d56d2358 0x1d56cc000 + 25432
3 CoreData 0x00000001d56fa19c 0x1d56cc000 + 188828
4 CoreData 0x00000001d5755be4 0x1d56cc000 + 564196
5 CoreData 0x00000001d57b0508 0x1d56cc000 + 935176
6 PhotoLibraryServices 0x00000001df1783e0 0x1df0ed000 + 570336
7 Photos 0x00000001df8aa88c 0x1df85d000 + 317580
8 PhotoLibraryServices 0x00000001df291de0 0x1df0ed000 + 1723872
9 CoreData 0x00000001d574e518 0x1d56cc000 + 533784
10 libdispatch.dylib 0x00000001d51fc0fc 0x1d51f8000 + 16636
11 libdispatch.dylib 0x00000001d520b634 0x1d51f8000 + 79412
12 CoreData 0x00000001d574e0a0 0x1d56cc000 + 532640
13 PhotoLibraryServices 0x00000001df291d94 0x1df0ed000 + 1723796
14 PhotoLibraryServices 0x00000001df291434 0x1df0ed000 + 1721396
15 Photos 0x00000001df8a8380 0x1df85d000 + 308096
16 Photos 0x00000001df89d050 0x1df85d000 + 262224
17 Photos 0x00000001df87f62c 0x1df85d000 + 140844
18 Photos 0x00000001df87ee94 0x1df85d000 + 138900
19 Photos 0x00000001df87e594 0x1df85d000 + 136596
20 Photos 0x00000001df86b5c8 0x1df85d000 + 58824
21 Photos 0x00000001df86d938 0x1df85d000 + 67896
22 Photos 0x00000001dfa37a64 0x1df85d000 + 1944164
23 Photos 0x00000001dfa37d18 0x1df85d000 + 1944856
24 youavideo -[YouaImageManager requestImageDataForAsset:options:resultHandler:] (in youavideo) (YouaImageManager.m:0) 27
25 youavideo -[YouaAlbumTransDataController requstTransImageHandler:] (in youavideo) (YouaAlbumTransDataController.m:0) 27
26 youavideo -[YouaAlbumTransDataController requstTransWithHandler:] (in youavideo) (YouaAlbumTransDataController.m:77) 11
27 youavideo -[YouaUploadTransDataOperation startTrans] (in youavideo) (YouaUploadTransDataOperation.m:102) 19
28 Foundation 0x00000001c9e78038 0x1c9e3c000 + 245816
29 Foundation 0x00000001c9e7d704 0x1c9e3c000 + 268036
30 libdispatch.dylib 0x00000001d51fa5d4 0x1d51f8000 + 9684
31 libdispatch.dylib 0x00000001d51fc0fc 0x1d51f8000 + 16636
32 libdispatch.dylib 0x00000001d51ff58c 0x1d51f8000 + 30092
33 libdispatch.dylib 0x00000001d51febf4 0x1d51f8000 + 27636
34 libdispatch.dylib 0x00000001d520db2c 0x1d51f8000 + 88876
35 libdispatch.dylib 0x00000001d520e338 0x1d51f8000 + 90936
36 libsystem_pthread.dylib 0x00000002544b9dbc 0x2544b9000 + 3516
37 libsystem_pthread.dylib 0x00000002544b9b98 0x2544b9000 + 2968

i can't find the error code 134093 definition

i don't know what's going wrong in iOS16

Would anyone have a hint of why this could happen and how to resolve it?

thanks very much

Post not yet marked as solved Up vote post of sdajdsjooa Down vote post of sdajdsjooa
2.5k views
  • We also encountered the same problem, expect someone to solve。

Add a Comment

Replies

We encountered the same problem too, it occurs when we call :

[PHImageManager requestImageDataAndOrientationForAsset:options:resultHandler:]

or

[PHImageManager requestImageForAsset:targetSize:contentMode:options:resultHandler:]
  • We found that the crash occours when we try to call requestImagexxx for a deleted asset . we got a asset and kept the object, then delete the photo, now if we call requestImageForAsset for the object, crash occours.

    It’s difficult for us to fix the issue, since there are no ways to find out if an asset was deleted.

    Seems there are some wrong in iOS 16, because the operation didn't make crash before in iOS 15. And we believe the issue is better to throw an 'error' than a 'crash'.

  • We found that the crash occours when we try to call requestImagexxx for a deleted asset. We got a asset and kept the object, then delete the photo, now if we call requestImageForAsset for the object, crash occours.

    It’s difficult for us to fix the issue, since there are no ways to find out if an asset was deleted.

    Seems there are some wrong in iOS 16, because the operation didn't make crash before in iOS 15. And we believe the issue is better to throw an 'error' than a 'crash'.

  • We found that the crash occours when we try to call requestImagexxx for a deleted asset. We got a asset and kept the object, then delete the photo, now if we call requestImageForAsset for the object, crash occours.

    It’s difficult for us to fix the issue, since there are no ways to find out if an asset was deleted.

    Seems there are some wrong in iOS 16, because the operation didn't make crash before in iOS 15. And we believe the issue is better to throw an 'error' than a 'crash'.

We also encountered the same problem too. It occurs when we call -[PHImageManager requestImageForAsset:targetSize:contentMode:options:resultHandler:]

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0xa248 __exceptionPreprocess
1  libobjc.A.dylib                0x17a68 objc_exception_throw
2  CoreData                       0x68c4 _PFFaultHandlerLookupRow
3  CoreData                       0x2e82c _PF_FulfillDeferredFault
4  CoreData                       0x8a354 _pvfk_header
5  CoreData                       0xe4c78 _sharedIMPL_pvfk_core
6  PhotoLibraryServices           0x8b40c -[PLInternalResource scaleGivenAssetHasAdjustments:currentWidth:currentHeight:]
7  Photos                         0x4d5bc ___presentFullResourceAtIndex_block_invoke
8  PhotoLibraryServices           0x1a6e94 __53-[PLManagedObjectContext _directPerformBlockAndWait:]_block_invoke
9  CoreData                       0x82c20 developerSubmittedBlockToNSManagedObjectContextPerform
10 libdispatch.dylib              0x3fdc _dispatch_client_callout
11 libdispatch.dylib              0x13574 _dispatch_lane_barrier_sync_invoke_and_complete
12 CoreData                       0x827a8 -[NSManagedObjectContext performBlockAndWait:]
13 PhotoLibraryServices           0x1a6e48 -[PLManagedObjectContext _directPerformBlockAndWait:]
14 PhotoLibraryServices           0x1a64e8 -[PLManagedObjectContext performBlockAndWait:]
15 Photos                         0x4b09c _presentFullResourceAtIndex
16 Photos                         0x3fc24 PHChooserListContinueEnumerating
17 Photos                         0x22224 -[PHImageResourceChooser presentNextQualifyingResource]
18 Photos                         0x21a8c -[PHImageRequest startRequest]
19 Photos                         0x2118c -[PHMediaRequestContext _registerAndStartRequests:]
20 Photos                         0xe8ec -[PHMediaRequestContext start]
21 Photos                         0x10c64 -[PHImageManager runRequestWithContext:]
22 Photos                         0x10aac -[PHImageManager requestNewCGImageForAsset:targetSize:contentMode:options:resultHandler:]
23 Photos                         0x106d0 -[PHImageManager requestImageForAsset:targetSize:contentMode:options:resultHandler:]

We found that the crash occours when we try to call requestImagexxx for a deleted asset. We got an asset and kept the object, then delete the photo, now if we call requestImageForAsset for the object, crash occours.

It’s difficult for us to fix the issue, since there are no ways to find out if an asset was deleted.

Seems there are some wrong in iOS 16, because the operation didn't make crash before in iOS 15. And we believe the issue is better to throw an 'error' than a 'crash'.

  • Hello, I am also getting lots of crash logs for this error. I have tried to reproduce the crash by calling requestImageForAsset after deleting the asset, but the function returns nil for image instead of crashing. Could you provide an example code where I can reproduce the error?

    Thanks.

  • Hello, I have tried to reproduce the crash by calling requestImageForAsset for deleted assest object, but the function returned nil for image instead of crashing.

    Could you provide an example code if possible?

    Thank you.

  • @jpspso Hi, do you find a way to reproduce this crash?

Hi @Adam_Wang I am also getting a lot of crash logs for this, were any of you able to resolve this?