mikaoj / BSImagePicker

A multiple image picker for iOS
MIT License
1.34k stars 379 forks source link

Crash on iOS #341

Open mithilesh-parmar opened 2 years ago

mithilesh-parmar commented 2 years ago

Getting a crash on iOS 15.2.

Not able to reproduce this crash.


OS Version: iOS 15.2 (19C57)
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Crashed Thread: 0

Application Specific Information:
Fatal error: Attempted to read an unowned reference but the object was already deallocated

Thread 0 Crashed:
0   libsystem_kernel.dylib          0x370263964         __pthread_kill
1   libsystem_pthread.dylib         0x3e3adb378         pthread_kill
2   libsystem_c.dylib               0x317299f50         abort
3   libswiftCore.dylib              0x30ac17e94         <redacted>
4   libswiftCore.dylib              0x30ac17fec         <redacted>
5   libswiftCore.dylib              0x30ac5a8d4         swift_unknownObjectUnownedLoadStrong
6   BSImagePicker                   0x10196e27c         <redacted>
7   BSImagePicker                   0x10196a418         <redacted>
8   libdispatch.dylib               0x300e10924         <redacted>
9   libdispatch.dylib               0x300e12670         <redacted>
10  libdispatch.dylib               0x300e20b70         _dispatch_main_queue_callback_4CF
11  CoreFoundation                  0x301451d84         <redacted>
12  CoreFoundation                  0x30140bf5c         <redacted>
13  CoreFoundation                  0x30141f468         CFRunLoopRunSpecific
14  GraphicsServices                0x338b5538c         GSEventRunModal
15  UIKitCore                       0x306268088         <redacted>
16  UIKitCore                       0x305fe6958         UIApplicationMain
17  libswiftUIKit.dylib             0x3305b2fa0         UIApplicationMain
18  Powerplay                       0x200c0e7d4         <redacted>
19  <unknown>                       0x101661aa4         <redacted>

Thread 0 Crashed:
0   libsystem_kernel.dylib          0x370263964         __pthread_kill
1   libsystem_pthread.dylib         0x3e3adb378         pthread_kill
2   libsystem_c.dylib               0x317299f50         abort
3   libswiftCore.dylib              0x30ac17e94         <redacted>
4   libswiftCore.dylib              0x30ac17fec         <redacted>
5   libswiftCore.dylib              0x30ac5a8d4         swift_unknownObjectUnownedLoadStrong
6   BSImagePicker                   0x10196e27c         <redacted>
7   BSImagePicker                   0x10196a418         <redacted>
8   libdispatch.dylib               0x300e10924         <redacted>
9   libdispatch.dylib               0x300e12670         <redacted>
10  libdispatch.dylib               0x300e20b70         _dispatch_main_queue_callback_4CF
11  CoreFoundation                  0x301451d84         <redacted>
12  CoreFoundation                  0x30140bf5c         <redacted>
13  CoreFoundation                  0x30141f468         CFRunLoopRunSpecific
14  GraphicsServices                0x338b5538c         GSEventRunModal
15  UIKitCore                       0x306268088         <redacted>
16  UIKitCore                       0x305fe6958         UIApplicationMain
17  libswiftUIKit.dylib             0x3305b2fa0         UIApplicationMain
18  Powerplay                       0x200c0e7d4         <redacted>
19  <unknown>                       0x101661aa4         <redacted>

Thread 1
0   libswiftCore.dylib              0x30ac2d1e8         swift_getAssociatedTypeWitness
1   libswiftCore.dylib              0x30aa36ffc         [inlined] SetAlgebra.init<T>
2   libswiftCore.dylib              0x30aa36ffc         SetAlgebra.init<T>
3   libswiftDispatch.dylib          0x334251b00         <redacted>
4   BSImagePicker                   0x10196df5c         <redacted>
5   BSImagePicker                   0x10196a4ac         <redacted>
6   Photos                          0x32853b5e0         <redacted>
7   PhotoLibraryServicesCore        0x3f5f4471c         <redacted>
8   libdispatch.dylib               0x300e10924         <redacted>
9   libdispatch.dylib               0x300e12670         <redacted>
10  libdispatch.dylib               0x300e19df4         <redacted>
11  libdispatch.dylib               0x300e1a99c         <redacted>
12  libdispatch.dylib               0x300e251b8         <redacted>
13  libsystem_pthread.dylib         0x3e3ad50f4         _pthread_wqthread

Thread 2 name: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib          0x37025d504         mach_msg_trap
1   libsystem_kernel.dylib          0x37025db9c         mach_msg
2   CoreFoundation                  0x301407738         <redacted>
3   CoreFoundation                  0x30140ba2c         <redacted>
4   CoreFoundation                  0x30141f468         CFRunLoopRunSpecific
5   Foundation                      0x30445ec94         <redacted>
6   Foundation                      0x30449fdc8         <redacted>
7   UIKitCore                       0x3061e1230         <redacted>
8   Foundation                      0x3044ae40c         <redacted>
9   libsystem_pthread.dylib         0x3e3ad59a4         _pthread_start

Thread 3
0   libsystem_kernel.dylib          0x37025dae4         __semwait_signal
1   libsystem_c.dylib               0x31727ef00         nanosleep
2   libsystem_c.dylib               0x317292f3c         sleep
3   Sentry                          0x1024b9340         sentrycrashccd_init
4   libsystem_pthread.dylib         0x3e3ad59a4         _pthread_start

Thread 4 name: SentryCrash Exception Handler (Secondary)
0   libsystem_kernel.dylib          0x37025d504         mach_msg_trap
1   libsystem_kernel.dylib          0x37025db9c         mach_msg
2   libsystem_kernel.dylib          0x370269230         thread_suspend
3   Sentry                          0x1024c64fc         sentrycrashcm_machexception_getAPI
4   libsystem_pthread.dylib         0x3e3ad59a4         _pthread_start

Thread 5 name: SentryCrash Exception Handler (Primary)
0   libsystem_kernel.dylib          0x37025d504         mach_msg_trap
1   libsystem_kernel.dylib          0x37025db9c         mach_msg
2   Sentry                          0x1024c6528         sentrycrashcm_machexception_getAPI
3   libsystem_pthread.dylib         0x3e3ad59a4         _pthread_start

Thread 6 name: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x37025d504         mach_msg_trap
1   libsystem_kernel.dylib          0x37025db9c         mach_msg
2   CoreFoundation                  0x301407738         <redacted>
3   CoreFoundation                  0x30140ba2c         <redacted>
4   CoreFoundation                  0x30141f468         CFRunLoopRunSpecific
5   CFNetwork                       0x3026ac3f0         _CFURLStorageSessionCopyIdentifier
6   Foundation                      0x3044ae40c         <redacted>
7   libsystem_pthread.dylib         0x3e3ad59a4         _pthread_start

Thread 7 name: com.sendbird.sdk.core.runloop.thread
0   libsystem_kernel.dylib          0x37025d504         mach_msg_trap
1   libsystem_kernel.dylib          0x37025db9c         mach_msg
2   CoreFoundation                  0x301407738         <redacted>
3   CoreFoundation                  0x30140ba2c         <redacted>
4   CoreFoundation                  0x30141f468         CFRunLoopRunSpecific
5   Foundation                      0x30445ec94         <redacted>
6   SendBirdSDK                     0x102418e1c         SendBird_SRDebugLog
7   Foundation                      0x3044ae40c         <redacted>
8   libsystem_pthread.dylib         0x3e3ad59a4         _pthread_start

Thread 8 name: AVAudioSession Notify Thread
0   libsystem_kernel.dylib          0x37025d504         mach_msg_trap
1   libsystem_kernel.dylib          0x37025db9c         mach_msg
2   CoreFoundation                  0x301407738         <redacted>
3   CoreFoundation                  0x30140ba2c         <redacted>
4   CoreFoundation                  0x30141f468         CFRunLoopRunSpecific
5   AudioSession                    0x313c5e308         <redacted>
6   AudioSession                    0x313c67d64         <redacted>
7   libsystem_pthread.dylib         0x3e3ad59a4         _pthread_start

Thread 9
0   libsystem_kernel.dylib          0x37025db2c         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e3ad5140         _pthread_wqthread

Thread 10
0   libsystem_kernel.dylib          0x37025db2c         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e3ad5140         _pthread_wqthread

Thread 11
0   libsystem_kernel.dylib          0x37025db2c         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e3ad5140         _pthread_wqthread

Thread 12
0   libsystem_kernel.dylib          0x37025db2c         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e3ad5140         _pthread_wqthread

Thread 13
0   libsystem_kernel.dylib          0x37025db2c         __workq_kernreturn
1   libsystem_pthread.dylib         0x3e3ad5140         _pthread_wqthread

EOF
mithilesh-parmar commented 2 years ago

@mikaoj Could you please look into this issue?

mikaoj commented 2 years ago

No.

  1. Find a way to reproduce it.
  2. Send a symbolicated crash log.