apivideo / api.video-flutter-live-stream

Flutter RTMP live stream client. Made with ♥ by api.video
MIT License
65 stars 39 forks source link

iOS SIGABRT crash #19

Closed 3ph closed 1 year ago

3ph commented 1 year ago

Describe the bug This is another intermittent issue on iOS platform. The app sometimes crashes when controller.startPreview() is called.

Crash log

Incident Identifier: F21B68A7-FC98-484C-94B9-410B2E84B6D4
Hardware Model:      iPhone15,2
Process:             Runner [628]
Version:             1.0.0 (20)
AppStoreTools:       14A305
AppVariant:          1:iPhone15,2:16
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground

Date/Time:           2022-10-10 14:23:19.4473 -0700
Launch Time:         2022-10-08 09:31:47.7210 -0700
OS Version:          iPhone OS 16.0.1 (20A371)
Release Type:        User
Baseband Version:    1.00.05
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  24

Last Exception Backtrace:
0   CoreFoundation                  0x1d73a2248 __exceptionPreprocess + 164 (NSException.m:202)
1   libobjc.A.dylib                 0x1d0763a68 objc_exception_throw + 60 (objc-exception.mm:356)
2   AVFCapture                      0x1f00f11f8 -[AVCaptureSession startRunning] + 276 (AVCaptureSession.m:2024)
3   ApiVideoHaishinKit              0x103da4414 thunk for @escaping @callee_guaranteed () -> () + 28 (<compiler-generated>:0)
4   libdispatch.dylib               0x1de81c4b4 _dispatch_call_block_and_release + 32 (init.c:1518)
5   libdispatch.dylib               0x1de81dfdc _dispatch_client_callout + 20 (object.m:560)
6   libdispatch.dylib               0x1de82fb8c _dispatch_root_queue_drain + 684 (inline_internal.h:2632)
7   libdispatch.dylib               0x1de830284 _dispatch_worker_thread2 + 164 (queue.c:7052)
8   libsystem_pthread.dylib         0x223cc0dbc _pthread_wqthread + 228 (pthread.c:2631)
9   libsystem_pthread.dylib         0x223cc0b98 start_wqthread + 8 (:-1)

Collected the same crash on iPhone XS Pro, iPad Pro, iPhone 12 Pro, iPhone 14 Pro, iPad Pro (11"), iPhone XR running iOS ranging from 15.6 to 16.0.

ThibaultBee commented 1 year ago

Hi Tom,

I know this stacktrace comes from crashlytics but there is not enough information to have a look on this issue. Could you find a way to reproduce it?

Anyway, this is not the last version, could you upgrade your application to the latest version?

3ph commented 1 year ago

I'll keep trying but I don't think the dart debugger will provide more information as the crash comes from the native land.

I'll release a new version with 1.0.7 and check again.

3ph commented 1 year ago

Looks like 1.0.7 fixed the issue. Thanks a lot! I'll reopen if I see it again.