olofd / react-native-photos-framework

A modern and comprehensive CameraRoll/iCloud-library-API for React Native 📸 📹
MIT License
220 stars 99 forks source link

Sporadic Crash #88

Open jose920405 opened 6 years ago

jose920405 commented 6 years ago

Issue Description

This happens to 0.35% of users in my application. I obtained these statistics using AppSee.

Steps to Reproduce / Code Snippets / Screenshots

Error information:

iPhone 6s
iOS 11.3  Wi-Fi

Terminating app due to an uncaught exception 'RCTFatalException: Exception '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: title)' was thrown while invoking getAlbumsMany on target RNPFManager with params ( ( { assetCount = exact; fetchOptions = { includeAllBurstAssets = 0; includeHiddenAssets = 0; sortDescriptors = ( { ascending = 1; key = title; } ); }; previewAssets = 1; subType = any; trackChanges = 0; trackInsertsAndDeletes = 0; type = smartAlbum; }, { assetCount = exact; fetchOptions = { includeAllBurstAssets = 0; includeHiddenAssets = 0; sortDescriptors = ( { ascending = 1; key = title; } ); }; previewAssets = 1; subType = any; trackChanges = 0; trackInsertsAndDeletes = 0; type = album; } ), 8570, 8571 ) callstack: ( 0 CoreFoundation 0x0000000184d7eda4 <redacted> + 252 1 libobjc.A.dylib 0x0000000183f385ec objc_exception_throw + 56 2 CoreFoundation 0x0000000184d17750 _CFArgv + 0 3 CoreFoundation 0x0000000184c4cc6c <redacted> + 948 4 Finery 0x0000000104d89954 Finery + 563540 5 Finery 0x0000000104d890f0 Finery + 561392 6 Finery 0x0000000104d88c80 Finery + 560256 7 Finery 0x0000000104d887d4 Finery + 559060 8 Finery 0x0000000104d97a84 Finery + 621188 9 CoreFoundation 0x0000000184d86580 <redacted> + 144 10 CoreFoundation 0x0000000184c65748 <redacted> + 284 11 CoreFoundation 0x0000000184c6a56c <redacted> + 60 12 Finery 0x0000000104f60614 _ZN14RNWebGLContext27jsTypedArrayFreeDeallocatorEPvS0_ + 1601380 13 Finery 0x0000000104fa1450 RCTFBQuickPerformanceLoggerConfigureHooks + 109428 14 Finery 0x0000000104fa11b0 RCTFBQuickPerformanceLoggerConfigureHooks + 108756 15 libdispatch.dylib 0x0000000184670b24 <redacted> + 24 16 libdispatch.dylib 0x0000000184670ae4 <redacted> + 16 17 libdispatch.dylib 0x000000018467aa38 <redacted> + 608 18 libdispatch.dylib 0x000000018467b380 <redacted> + 336 19 libdispatch.dylib 0x000000018467bd4c <redacted> + 340 20 libdispatch.dylib 0x000000018468411c <redacted> + 668 21 libsystem_pthread.dylib 0x00000001849a3e70 _pthread_wqthread + 860 22 libsystem_pthread.dylib 0x00000001849a3b08 start_wqthread + 4 )', reason: 'Exception '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (...'

captura de pantalla 2018-08-23 a la s 10 53 12 am



Environment

Base in this issue i'm pointing directly to this commit: "react-native-photos-framework": "https://github.com/olofd/react-native-photos-framework.git#adaa91d8bd13e93cb18c5884d9fde27228a44ebb",

Environment:
  OS: macOS Sierra 10.12.6
  Node: 8.9.1
  Yarn: 1.3.2
  npm: 5.5.1
  Watchman: 4.7.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: 3.1 AI-173.4819257

Packages: (wanted => installed)
  react: 16.0.0 => 16.0.0
  react-native: 0.51.0 => 0.51.0
jose920405 commented 5 years ago

Another crash related

Terminating app due to an uncaught exception 'NSInternalInconsistencyException', reason: '*** -[AVCaptureStillImageOutput captureStillImageAsynchronouslyFromConnection:completionHandler:] Inconsistent state'