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

EXC_BAD_ACCESS crash when app is put into background on iOS #79

Open
davidpanic opened this issue Nov 4, 2022 · 1 comment
Open

EXC_BAD_ACCESS crash when app is put into background on iOS #79

davidpanic opened this issue Nov 4, 2022 · 1 comment

Comments

@davidpanic
Copy link

Having the BarcodeCamera widget visible, put the app into background. The app freezes, then crashes with the following log:

Crash log
OS Version: iOS 15.6.1 (19G82)
Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: BUS_NOOP at 0x0000000000000650
Crashed Thread: 27

Application Specific Information:
captureOutput:didOutputSampleBuffer:fromConnection: > textureFrameAvailable: >
Attempted to dereference garbage pointer 0x650.

Thread 27 Crashed:
0   Flutter                         0x10434746c         <redacted>
1   fast_barcode_scanner            0x1033b1b28         [inlined] BarcodeReader.captureOutput (BarcodeReader.swift:255)
2   fast_barcode_scanner            0x1033b1b28         [inlined] BarcodeReader.captureOutput (<compiler-generated>:251)
3   fast_barcode_scanner            0x1033b1b28         [inlined] BarcodeReader.captureOutput (BarcodeReader.swift:255)
4   fast_barcode_scanner            0x1033b1b28         BarcodeReader.captureOutput (<compiler-generated>:251)
5   AVFCapture                      0x3575f308c         <redacted>
6   AVFCapture                      0x3575dd590         <redacted>
7   CMCapture                       0x357925fac         <redacted>
8   CMCapture                       0x357ae7210         <redacted>
9   libdispatch.dylib               0x318dfda30         <redacted>
10  libdispatch.dylib               0x318e00eec         <redacted>
11  libdispatch.dylib               0x318e1413c         <redacted>
12  libdispatch.dylib               0x318e0fec0         <redacted>
13  libsystem_pthread.dylib         0x3fb8a90f4         _pthread_wqthread

Thread 0
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b0298         <redacted>
2   libc++.1.dylib                  0x34b0c528c         std::__1::condition_variable::wait
3   Flutter                         0x10462b768         <redacted>
4   Flutter                         0x10470e0f0         <redacted>
5   Flutter                         0x104348424         <redacted>
6   Flutter                         0x104343f90         <redacted>
7   CoreFoundation                  0x31942a834         <redacted>
8   CoreFoundation                  0x3194c6fd4         <redacted>
9   CoreFoundation                  0x31949a1d0         <redacted>
10  CoreFoundation                  0x3194408ac         _CFXNotificationPost
11  Foundation                      0x31c40b734         <redacted>
12  UIKitCore                       0x31ec57de4         <redacted>
13  UIKitCore                       0x31e3329d4         <redacted>
14  UIKitCore                       0x31e528834         <redacted>
15  UIKitCore                       0x31ec54128         <redacted>
16  FrontBoardServices              0x33d98efec         <redacted>
17  FrontBoardServices              0x33d94a308         <redacted>
18  FrontBoardServices              0x33d98ef84         <redacted>
19  libdispatch.dylib               0x318dfda30         <redacted>
20  libdispatch.dylib               0x318e014e0         <redacted>
21  FrontBoardServices              0x33d94bc70         <redacted>
22  FrontBoardServices              0x33d94b040         <redacted>
23  FrontBoardServices              0x33d94f700         <redacted>
24  CoreFoundation                  0x3194bb414         <redacted>
25  CoreFoundation                  0x3194cc1a0         <redacted>
26  CoreFoundation                  0x319405694         <redacted>
27  CoreFoundation                  0x31940b05c         <redacted>
28  CoreFoundation                  0x31941ebc8         CFRunLoopRunSpecific
29  GraphicsServices                0x351713374         GSEventRunModal
30  UIKitCore                       0x31e210b58         <redacted>
31  UIKitCore                       0x31df92090         UIApplicationMain
32  Runner                          0x20272d9a0         main (AppDelegate.swift:5)
33  <unknown>                       0x1029fdda4         <redacted>

Thread 1 name: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib          0x388a6b4a0         mach_msg_trap
1   libsystem_kernel.dylib          0x388a6bae4         mach_msg
2   CoreFoundation                  0x319406d30         <redacted>
3   CoreFoundation                  0x31940b1bc         <redacted>
4   CoreFoundation                  0x31941ebc8         CFRunLoopRunSpecific
5   Foundation                      0x31c409444         <redacted>
6   Foundation                      0x31c44ae0c         <redacted>
7   UIKitCore                       0x31e18acc4         <redacted>
8   Foundation                      0x31c45941c         <redacted>
9   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 2 name: io.flutter.1.ui
0   libsystem_malloc.dylib          0x33daa13f8         <redacted>
1   libsystem_malloc.dylib          0x33daa1b40         [inlined] <redacted>
2   libsystem_malloc.dylib          0x33daa1b40         <redacted>
3   Flutter                         0x1047ab024         <redacted>
4   Flutter                         0x1047aaeb8         <redacted>
5   Flutter                         0x1047ab644         <redacted>
6   Flutter                         0x1047a2b6c         <redacted>
7   Flutter                         0x104734a74         <redacted>
8   Flutter                         0x10480a9a0         <redacted>
9   Flutter                         0x10470042c         <redacted>
10  Flutter                         0x10470e7a0         <redacted>
11  Flutter                         0x10470efcc         <redacted>
12  Flutter                         0x104629ec4         <redacted>
13  Flutter                         0x10462d1fc         <redacted>
14  CoreFoundation                  0x3194ae678         <redacted>
15  CoreFoundation                  0x319432654         <redacted>
16  CoreFoundation                  0x31942ce00         <redacted>
17  CoreFoundation                  0x31940b4b0         <redacted>
18  CoreFoundation                  0x31941ebc8         CFRunLoopRunSpecific
19  Flutter                         0x10462d0cc         <redacted>
20  Flutter                         0x10462cacc         <redacted>
21  libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 3 name: io.flutter.1.raster
0   libsystem_kernel.dylib          0x388a6b4a0         mach_msg_trap
1   libsystem_kernel.dylib          0x388a6bae4         mach_msg
2   CoreFoundation                  0x319406d30         <redacted>
3   CoreFoundation                  0x31940b1bc         <redacted>
4   CoreFoundation                  0x31941ebc8         CFRunLoopRunSpecific
5   Flutter                         0x10462d0cc         <redacted>
6   Flutter                         0x10462cacc         <redacted>
7   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 4 name: io.flutter.1.io
0   libsystem_kernel.dylib          0x388a6b4a0         mach_msg_trap
1   libsystem_kernel.dylib          0x388a6bae4         mach_msg
2   CoreFoundation                  0x319406d30         <redacted>
3   CoreFoundation                  0x31940b1bc         <redacted>
4   CoreFoundation                  0x31941ebc8         CFRunLoopRunSpecific
5   Flutter                         0x10462d0cc         <redacted>
6   Flutter                         0x10462cacc         <redacted>
7   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 5 name: io.worker.1
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b0298         <redacted>
2   libc++.1.dylib                  0x34b0c528c         std::__1::condition_variable::wait
3   Flutter                         0x104627840         <redacted>
4   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 6 name: io.worker.2
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b0298         <redacted>
2   libc++.1.dylib                  0x34b0c528c         std::__1::condition_variable::wait
3   Flutter                         0x104627840         <redacted>
4   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 7 name: io.worker.3
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b0298         <redacted>
2   libc++.1.dylib                  0x34b0c528c         std::__1::condition_variable::wait
3   Flutter                         0x104627840         <redacted>
4   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 8 name: io.worker.4
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b0298         <redacted>
2   libc++.1.dylib                  0x34b0c528c         std::__1::condition_variable::wait
3   Flutter                         0x104627840         <redacted>
4   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 9 name: io.worker.5
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b0298         <redacted>
2   libc++.1.dylib                  0x34b0c528c         std::__1::condition_variable::wait
3   Flutter                         0x104627840         <redacted>
4   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 10 name: io.worker.6
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b0298         <redacted>
2   libc++.1.dylib                  0x34b0c528c         std::__1::condition_variable::wait
3   Flutter                         0x104627840         <redacted>
4   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 11 name: dart:io EventHandler
0   libsystem_kernel.dylib          0x388a6ce18         kevent
1   Flutter                         0x10481832c         <redacted>
2   Flutter                         0x104847414         <redacted>
3   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 12 name: AVAudioSession Notify Thread
0   libsystem_kernel.dylib          0x388a6b4a0         mach_msg_trap
1   libsystem_kernel.dylib          0x388a6bae4         mach_msg
2   CoreFoundation                  0x319406d30         <redacted>
3   CoreFoundation                  0x31940b1bc         <redacted>
4   CoreFoundation                  0x31941ebc8         CFRunLoopRunSpecific
5   AudioSession                    0x32c060f04         <redacted>
6   AudioSession                    0x32c06a8f0         <redacted>
7   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 13 name: com.apple.CoreMotion.MotionThread
0   libsystem_kernel.dylib          0x388a6b4a0         mach_msg_trap
1   libsystem_kernel.dylib          0x388a6bae4         mach_msg
2   CoreFoundation                  0x319406d30         <redacted>
3   CoreFoundation                  0x31940b1bc         <redacted>
4   CoreFoundation                  0x31941ebc8         CFRunLoopRunSpecific
5   CoreFoundation                  0x31949fda8         CFRunLoopRun
6   CoreMotion                      0x333d68a9c         CLMotionActivity::isTypeInVehicle
7   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 14
0   libsystem_kernel.dylib          0x388a6ba2c         __semwait_signal
1   libsystem_c.dylib               0x32f71b0e4         nanosleep
2   libsystem_c.dylib               0x32f72f388         sleep
3   Sentry                          0x1035586b8         monitorCachedData (SentryCrashCachedData.c:144)
4   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 15 name: SentryCrash Exception Handler (Secondary)
0   libsystem_kernel.dylib          0x388a6b4a0         mach_msg_trap
1   libsystem_kernel.dylib          0x388a6bae4         mach_msg
2   Sentry                          0x103565658         handleExceptions (SentryCrashMonitor_MachException.c:266)
3   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 17 name: io.sentry.app-hang-tracker
0   libsystem_kernel.dylib          0x388a6ba2c         __semwait_signal
1   libsystem_c.dylib               0x32f71b0e4         nanosleep
2   Foundation                      0x31c46bce8         <redacted>
3   Sentry                          0x103547a70         -[SentryANRTracker detectANRs] (SentryANRTracker.m:75)
4   Foundation                      0x31c45941c         <redacted>
5   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 18 name: DartWorker
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b02c4         <redacted>
2   Flutter                         0x10495e8fc         <redacted>
3   Flutter                         0x10499f9a0         <redacted>
4   Flutter                         0x10495e224         <redacted>
5   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 19 name: DartWorker
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b02c4         <redacted>
2   Flutter                         0x10495e8fc         <redacted>
3   Flutter                         0x10499f9a0         <redacted>
4   Flutter                         0x10495e224         <redacted>
5   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 20 name: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x388a6b4a0         mach_msg_trap
1   libsystem_kernel.dylib          0x388a6bae4         mach_msg
2   CoreFoundation                  0x319406d30         <redacted>
3   CoreFoundation                  0x31940b1bc         <redacted>
4   CoreFoundation                  0x31941ebc8         CFRunLoopRunSpecific
5   CFNetwork                       0x31a6be1dc         _CFURLStorageSessionDisableCache
6   Foundation                      0x31c45941c         <redacted>
7   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 21 name: DartWorker
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b02c4         <redacted>
2   Flutter                         0x10495e8fc         <redacted>
3   Flutter                         0x10499f9a0         <redacted>
4   Flutter                         0x10495e224         <redacted>
5   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 22 name: DartWorker
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b02c4         <redacted>
2   Flutter                         0x10495e8fc         <redacted>
3   Flutter                         0x10499f9a0         <redacted>
4   Flutter                         0x10495e224         <redacted>
5   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 23 name: DartWorker
0   libsystem_kernel.dylib          0x388a6bf24         __psynch_cvwait
1   libsystem_pthread.dylib         0x3fb8b02c4         <redacted>
2   Flutter                         0x10495e8fc         <redacted>
3   Flutter                         0x10499f9a0         <redacted>
4   Flutter                         0x10495e224         <redacted>
5   libsystem_pthread.dylib         0x3fb8a99ac         _pthread_start

Thread 24
0   libsystem_kernel.dylib          0x388a6ba74         __workq_kernreturn
1   libsystem_pthread.dylib         0x3fb8a9108         _pthread_wqthread

Thread 25
0   libsystem_pthread.dylib         0x3fb8a8e54         <redacted>

Thread 26
0   libsystem_kernel.dylib          0x388a6ba74         __workq_kernreturn
1   libsystem_pthread.dylib         0x3fb8a9108         _pthread_wqthread

Thread 27 Crashed:
0   Flutter                         0x10434746c         <redacted>
1   fast_barcode_scanner            0x1033b1b28         [inlined] BarcodeReader.captureOutput (BarcodeReader.swift:255)
2   fast_barcode_scanner            0x1033b1b28         [inlined] BarcodeReader.captureOutput (<compiler-generated>:251)
3   fast_barcode_scanner            0x1033b1b28         [inlined] BarcodeReader.captureOutput (BarcodeReader.swift:255)
4   fast_barcode_scanner            0x1033b1b28         BarcodeReader.captureOutput (<compiler-generated>:251)
5   AVFCapture                      0x3575f308c         <redacted>
6   AVFCapture                      0x3575dd590         <redacted>
7   CMCapture                       0x357925fac         <redacted>
8   CMCapture                       0x357ae7210         <redacted>
9   libdispatch.dylib               0x318dfda30         <redacted>
10  libdispatch.dylib               0x318e00eec         <redacted>
11  libdispatch.dylib               0x318e1413c         <redacted>
12  libdispatch.dylib               0x318e0fec0         <redacted>
13  libsystem_pthread.dylib         0x3fb8a90f4         _pthread_wqthread



EOF
@raapperez
Copy link

I'm having exactly the same issue

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

2 participants