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

IllegalStateException: Reply already submitted #83

Open
kodega2016 opened this issue May 24, 2024 · 19 comments
Open

IllegalStateException: Reply already submitted #83

kodega2016 opened this issue May 24, 2024 · 19 comments

Comments

@kodega2016
Copy link

The app got crashed with the following error message:

IllegalStateException: Reply already submitted

Platform: Android
SDK: flutter
SDK version: 3.19.6
GENIUS_SCAN_VERSION: 5.0.2

@guillaume-tgl
Copy link
Contributor

Do you have a stack trace for this crash? Have you been able to reproduce it with your app / with our Flutter demo app?
Generally, this happen when two ScanFlow are started in parallel. Is this something that could happen in your app (eg by tapping twice on a button that starts the ScanFlow)?

@kodega2016
Copy link
Author

Caused by java.lang.IllegalStateException: Reply already submitted
at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(:35)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(:14)
at com.geniusscansdk.flutter.FlutterGeniusScanPlugin.returnResultFromPromiseResult(:15)
at com.geniusscansdk.flutter.FlutterGeniusScanPlugin.onActivityResult(:12)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onActivityResult(:25)
at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onActivityResult(:14)
at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(:51)
at io.flutter.embedding.android.FlutterActivity.onActivityResult(:10)
at android.app.Activity.dispatchActivityResult(Activity.java:8550)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5554)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5602)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2317)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8615)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

@guillaume-tgl
Copy link
Contributor

And how about my two other questions?

@kodega2016
Copy link
Author

@guillaume-tgl that issue is fixed not but we are getting __CFRunLoopServiceMachPort issue after document is scanned

@guillaume-tgl
Copy link
Contributor

Again, can you paste an entire stack trace or log content so that we have more details?

@kodega2016
Copy link
Author

Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x4d60 mach_msg + 24
4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53600 __CFRunLoopRun + 1208
6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608
7 GraphicsServices 0x11a8 GSEventRunModal + 164
8 UIKitCore 0x40a90c -[UIApplication _run] + 888
9 UIKitCore 0x4be9d0 UIApplicationMain + 340
10 Runner 0x8920 main + 5 (AppDelegate.swift:5)
11 ??? 0x1ca155e4c (Missing)

com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x4d60 mach_msg + 24
4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53600 __CFRunLoopRun + 1208
6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608
7 Foundation 0xc7e4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0xc7c9c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9 UIKitCore 0x41e640 -[UIEventFetcher threadMain] + 420
10 Foundation 0xde718 NSThread__start + 732
11 libsystem_pthread.dylib 0x606c _pthread_start + 136
12 libsystem_pthread.dylib 0x10d8 thread_start + 8

Thread
0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8466071746

io.flutter.1.ui
0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x4d60 mach_msg + 24
4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53600 __CFRunLoopRun + 1208
6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608
7 Flutter 0x7943a8 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3016824
8 Flutter 0x793ff0 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3015872
9 Flutter 0x793d00 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3015120
10 libsystem_pthread.dylib 0x606c _pthread_start + 136
11 libsystem_pthread.dylib 0x10d8 thread_start + 8

io.flutter.1.raster
0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x4d60 mach_msg + 24
4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53600 __CFRunLoopRun + 1208
6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608
7 Flutter 0x7943a8 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3016824
8 Flutter 0x793ff0 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3015872
9 Flutter 0x793d00 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3015120
10 libsystem_pthread.dylib 0x606c _pthread_start + 136
11 libsystem_pthread.dylib 0x10d8 thread_start + 8

io.flutter.1.io
0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x4d60 mach_msg + 24
4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53600 __CFRunLoopRun + 1208
6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608
7 Flutter 0x7943a8 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3016824
8 Flutter 0x793ff0 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3015872
9 Flutter 0x793d00 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 3015120
10 libsystem_pthread.dylib 0x606c _pthread_start + 136
11 libsystem_pthread.dylib 0x10d8 thread_start + 8

io.worker.1
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 Flutter 0x4fe5cc _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 305820
3 Flutter 0x78dd24 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 2990580
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

io.worker.2
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 Flutter 0x4fe5cc _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 305820
3 Flutter 0x78dd24 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 2990580
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

io.worker.3
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 Flutter 0x4fe5cc _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 305820
3 Flutter 0x78dd24 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 2990580
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

io.worker.4
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 Flutter 0x4fe5cc _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 305820
3 Flutter 0x78dd24 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 2990580
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

io.worker.5
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 Flutter 0x4fe5cc _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 305820
3 Flutter 0x78dd24 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 2990580
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

io.worker.6
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 Flutter 0x4fe5cc _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 305820
3 Flutter 0x78dd24 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 2990580
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

dart:io EventHandler
0 libsystem_kernel.dylib 0x8608 kevent + 8
1 Flutter 0xa23750 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 5700640
2 Flutter 0xa4eba8 _$LT$core..core_simd..swizzle..Which$u20$as$u20$core..fmt..Debug$GT$::fmt::h8dc6fff7613f1c27 + 5877880
3 libsystem_pthread.dylib 0x606c _pthread_start + 136
4 libsystem_pthread.dylib 0x10d8 thread_start + 8

com.apple.runningboardservices.connection.outgoing
0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x4d60 mach_msg + 24
4 libxpc.dylib 0x2a06c _xpc_pipe_mach_msg + 56
5 libxpc.dylib 0x294e0 _xpc_pipe_routine + 392
6 libxpc.dylib 0x4fb8 _xpc_interface_routine + 204
7 libxpc.dylib 0x5724 _xpc_look_up_endpoint + 268
8 libxpc.dylib 0xebac _xpc_connection_bootstrap_look_up_slow + 300
9 libxpc.dylib 0x12d34 _xpc_connection_init + 1020
10 libxpc.dylib 0xf2a0 _xpc_connection_activate_if_needed + 304
11 RunningBoardServices 0x14d54 -[RBSConnection _lock_setConnection:] + 168
12 RunningBoardServices 0x12d74 -[RBSConnection _lock_connect] + 224
13 RunningBoardServices 0x21930 __27-[RBSConnection _handshake]_block_invoke + 232
14 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32
15 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
16 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748
17 libdispatch.dylib 0xbf64 _dispatch_lane_invoke + 432
18 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
19 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404
20 libsystem_pthread.dylib 0x4934 _pthread_wqthread + 288
21 libsystem_pthread.dylib 0x10cc start_wqthread + 8

com.google.firebase.crashlytics.MachExceptionServer
0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x4d60 mach_msg + 24
4 FirebaseCrashlytics 0x1b5bc FIRCLSMachExceptionServer + 194 (FIRCLSMachException.c:194)
5 libsystem_pthread.dylib 0x606c _pthread_start + 136
6 libsystem_pthread.dylib 0x10d8 thread_start + 8

Thread
0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8466071746

AXSpeech
0 libsystem_kernel.dylib 0x1808 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x5008 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4f20 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x4d60 mach_msg + 24
4 CoreFoundation 0x53f5c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53600 __CFRunLoopRun + 1208
6 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608
7 Foundation 0xc7e4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 TextToSpeech 0x27718 TTSCFAttributedStringCreateStringByBracketingAttributeWithString + 776
9 Foundation 0xde718 NSThread__start + 732
10 libsystem_pthread.dylib 0x606c _pthread_start + 136
11 libsystem_pthread.dylib 0x10d8 thread_start + 8

Thread
0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8466071746

DartWorker
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 libc++.1.dylib 0xd598 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lockstd::__1::mutex&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 heresdk 0x5a9398 here_sdk_library_wait_for_callbacks + 466 (__mutex_base:466)
4 App 0xb5f0 stub CallNativeThroughSafepoint + 30192
5 App 0x947718 _libraryWaitForCallbacks..#ffiClosure3 + 51 (_library_context.dart:51)
6 Flutter 0xb54b94 InternalFlutterGpu_Texture_AsImage + 954944
7 Flutter 0xb55610 InternalFlutterGpu_Texture_AsImage + 957628
8 Flutter 0xaac258 InternalFlutterGpu_Texture_AsImage + 264452
9 Flutter 0xab8384 InternalFlutterGpu_Texture_AsImage + 313904
10 Flutter 0xabdb50 InternalFlutterGpu_Texture_AsImage + 336380
11 Flutter 0xabd890 InternalFlutterGpu_Texture_AsImage + 335676
12 Flutter 0xb6192c InternalFlutterGpu_Texture_AsImage + 1007576
13 Flutter 0xb1821c InternalFlutterGpu_Texture_AsImage + 706760
14 libsystem_pthread.dylib 0x606c _pthread_start + 136
15 libsystem_pthread.dylib 0x10d8 thread_start + 8

NetworkUsageDataSerialization_0
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 libc++.1.dylib 0xd504 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
3 heresdk 0x2aa0ab0 os_adaptation::PriorityWorkQueueWorkProvider::fetch() + 104 (PriorityWorkQueue.cpp:104)
4 heresdk 0x2aa2184 os_adaptation::ThreadPool::worker(os_adaptation::IWorkProvider*, unsigned long) + 943 (optional:943)
5 heresdk 0x2aa2484 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, std::__1::__bind<void (os_adaptation::ThreadPool::)(os_adaptation::IWorkProvider, unsigned long), os_adaptation::ThreadPool*, os_adaptation::IWorkProvider*&, unsigned long>>>(void*) + 315 (unique_ptr.h:315)
6 libsystem_pthread.dylib 0x606c _pthread_start + 136
7 libsystem_pthread.dylib 0x10d8 thread_start + 8

Thread
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 libc++.1.dylib 0xd598 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lockstd::__1::mutex&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 100
3 heresdk 0x775018 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, here::sdk::core::threading::Timer::Timer()::$_0>>(void*) + 466 (__mutex_base:466)
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

OLPSDKPOOL_0
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 libc++.1.dylib 0xd504 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
3 heresdk 0x28ef3a8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, olp::thread::ThreadPoolTaskScheduler::ThreadPoolTaskScheduler(unsigned long)::$_1>>(void*) + 287 (unique_ptr.h:287)
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

OLPSDKPOOL_1
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 libc++.1.dylib 0xd504 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
3 heresdk 0x28ef3a8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, olp::thread::ThreadPoolTaskScheduler::ThreadPoolTaskScheduler(unsigned long)::$_1>>(void*) + 287 (unique_ptr.h:287)
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

OLPSDKPOOL_0
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 libc++.1.dylib 0xd504 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
3 heresdk 0x28ef3a8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, olp::thread::ThreadPoolTaskScheduler::ThreadPoolTaskScheduler(unsigned long)::$_1>>(void*) + 287 (unique_ptr.h:287)
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

OLPSDKPOOL_1
0 libsystem_kernel.dylib 0x71cc __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x36e4 _pthread_cond_wait + 1228
2 libc++.1.dylib 0xd504 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
3 heresdk 0x28ef3a8 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, olp::thread::ThreadPoolTaskScheduler::ThreadPoolTaskScheduler(unsigned long)::$_1>>(void*) + 287 (unique_ptr.h:287)
4 libsystem_pthread.dylib 0x606c _pthread_start + 136
5 libsystem_pthread.dylib 0x10d8 thread_start + 8

Thread
0 libsystem_pthread.dylib 0x10c4 start_wqthread + 8466071746

@kodega2016
Copy link
Author

After opening the Genius Scanner, the app started hogging the memory, and after some time, the app crashed.

@guillaume-tgl
Copy link
Contributor

On which device models did you have this issue?
And did it crash right after the first scan or after several scans?
Also, is it still with v5.0.2 of our SDK Flutter plugin?

@kodega2016
Copy link
Author

Yes, we are still facing this issue in version 5.1.4. We have encountered it on most iOS devices, mainly the iPhone 13 (iOS 17.5.1). It primarily occurs during the first scan.

@guillaume-tgl
Copy link
Contributor

Could you provide a log file of the app around the time it crashes?

@kodega2016
Copy link
Author

@guillaume-tgl in the latest version (v5.1.5), the issue is resolved. Thank you for the response and patches."

@kodega2016 kodega2016 reopened this Sep 3, 2024
@kodega2016
Copy link
Author

Hello @guillaume-tgl we are again facing the same memory issue in the latest version also

@guillaume-tgl
Copy link
Contributor

Could you provide a log file of the app around the time it crashes?

@kodega2016
Copy link
Author

Domain: IDEDebugSessionErrorDomain
Code: 11
Recovery Suggestion: Use a memory profiling tool to track the process memory usage.
User Info: {
DVTErrorCreationDateKey = "2024-08-30 3:08:10\U202fAM +0000";
IDERunOperationFailingWorker = DBGLLDBLauncher;
}

The app "App" has been killed by the operating system because it is using too much memory.
Domain: IDEDebugSessionErrorDomain
Code: 11
Recovery Suggestion: Use a memory profiling tool to track the process memory usage.
User Info: {
IDERunOperationFailingWorker = DBGLLDBLauncher;
}

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_isCoreDevice" = 1;
"device_model" = "iPhone14,5";
"device_osBuild" = "17.5.1 (21F90)";
"device_platform" = "com.apple.platform.iphoneos";
"dvt_coredevice_version" = "355.28";
"dvt_mobiledevice_version" = "1643.120.2";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 2;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 858343;
"operation_errorCode" = 11;
"operation_errorDomain" = IDEDebugSessionErrorDomain;
"operation_errorWorker" = DBGLLDBLauncher;
"operation_name" = IDERunOperationWorkerGroup;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 3;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.iphoneos";
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_tpc_enable" = 1;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 0;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 1;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 0;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 99;
"param_launcher_substyle" = 8192;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_structuredConsoleMode" = 1;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos17.5";
"sdk_osVersion" = "17.5";
"sdk_variant" = iphoneos;
}

System Information

macOS Version 14.6.1 (Build 23G93)
Xcode 15.4 (22622) (Build 15F31d)
Timestamp: 2024-08-30T08:53:10+05:45

@guillaume-tgl
Copy link
Contributor

Could you use the memory profiling tool as suggested and send us the result?

@kodega2016
Copy link
Author

_malloc_type_malloc_outlined
operator new(unsigned long)
0x1069290ec
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064ccc58
0x1064ccda4
0x1064fa944
0x1064fa784
-[AVCaptureVideoDataOutput _processSampleBuffer:]
__47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke
__FigRemoteOperationReceiverCreateMessageReceiver_block_invoke
__rqReceiverSetSource_block_invoke
0x1a17e6dd3
_dispatch_continuation_pop
_dispatch_source_latch_and_call
_dispatch_source_invoke
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x106ae3b94
0x106ae3e54
0x1069290ec
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064d7594
0x1065540a4
0x106554358
0x1064ff5a4
0x10681f77c
0x10684a4e8
0x106847874
0x106847588
0x10681ebac
0x1064fbea4
0x10655363c
0x1065506f4
0x1064ed80c
_dispatch_call_block_and_release
0x1a17e6dd3
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x1069290ec
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064ccc58
0x1064ccda4
0x1064fa944
0x1064fa784
-[AVCaptureVideoDataOutput _processSampleBuffer:]
__47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke
__FigRemoteOperationReceiverCreateMessageReceiver_block_invoke
__rqReceiverSetSource_block_invoke
0x1a17e6dd3
_dispatch_continuation_pop
_dispatch_source_latch_and_call
_dispatch_source_invoke
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x1069290ec
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064d7594
0x1065540a4
0x106554358
0x1064ff5a4
0x10681f77c
0x10684a4e8
0x106847874
0x106847588
0x10681ebac
0x1064fbea4
0x10655363c
0x1065506f4
0x1064ed80c
_dispatch_call_block_and_release
0x1a17e6dd3
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x106ae3cdc
0x106ae3f08
0x106ae3e54
0x1069290ec
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064ccc58
0x1064ccda4
0x1064fa944
0x1064fa784
-[AVCaptureVideoDataOutput _processSampleBuffer:]
__47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke
__FigRemoteOperationReceiverCreateMessageReceiver_block_invoke
__rqReceiverSetSource_block_invoke
0x1a17e6dd3
_dispatch_continuation_pop
_dispatch_source_latch_and_call
_dispatch_source_invoke
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064ccc58
0x1064ccda4
0x1064fa944
0x1064fa784
-[AVCaptureVideoDataOutput _processSampleBuffer:]
__47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke
__FigRemoteOperationReceiverCreateMessageReceiver_block_invoke
__rqReceiverSetSource_block_invoke
0x1a17e6dd3
_dispatch_continuation_pop
_dispatch_source_latch_and_call
_dispatch_source_invoke
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x1069290ec
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064d7594
0x1065540a4
0x106554358
0x1064ff5a4
0x10681f77c
0x10684a4e8
0x106847874
0x106847588
0x10681ebac
0x1064fbea4
0x10655363c
0x1065506f4
0x1064ed80c
_dispatch_call_block_and_release
0x1a17e6dd3
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread
_malloc_type_malloc_outlined
operator new(unsigned long)
0x106ae3cdc
0x106ae3f08
0x106ae3e54
0x1069290ec
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064d7594
0x1065540a4
0x106554358
0x1064ff5a4
0x10681f77c
0x10684a4e8
0x106847874
0x106847588
0x10681ebac
0x1064fbea4
0x10655363c
0x1065506f4
0x1064ed80c
_dispatch_call_block_and_release
0x1a17e6dd3
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064d7594
0x1065540a4
0x106554358
0x1064ff5a4
0x10681f77c
0x10684a4e8
0x106847874
0x106847588
0x10681ebac
0x1064fbea4
0x10655363c
0x1065506f4
0x1064ed80c
_dispatch_call_block_and_release
0x1a17e6dd3
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x10692983c
0x1069297dc
0x106844820
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064ccc58
0x1064ccda4
0x1064fa944
0x1064fa784
-[AVCaptureVideoDataOutput _processSampleBuffer:]
__47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke
__FigRemoteOperationReceiverCreateMessageReceiver_block_invoke
__rqReceiverSetSource_block_invoke
0x1a17e6dd3
_dispatch_continuation_pop
_dispatch_source_latch_and_call
_dispatch_source_invoke
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x10692983c
0x1069297dc
0x106844820
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064d7594
0x1065540a4
0x106554358
0x1064ff5a4
0x10681f77c
0x10684a4e8
0x106847874
0x106847588
0x10681ebac
0x1064fbea4
0x10655363c
0x1065506f4
0x1064ed80c
_dispatch_call_block_and_release
0x1a17e6dd3
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

_malloc_type_malloc_outlined
operator new(unsigned long)
0x106ae3b94
0x106ae3e54
0x1069290ec
0x1068448bc
0x106841458
0x1068284e0
0x1064cc910
0x1064cc87c
0x1064cc804
0x1064cc5fc
0x1064ccc58
0x1064ccda4
0x1064fa944
0x1064fa784
-[AVCaptureVideoDataOutput _processSampleBuffer:]
__47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke
__FigRemoteOperationReceiverCreateMessageReceiver_block_invoke
__rqReceiverSetSource_block_invoke
0x1a17e6dd3
_dispatch_continuation_pop
_dispatch_source_latch_and_call
_dispatch_source_invoke
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_root_queue_drain_deferred_wlh
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread

image

@kodega2016
Copy link
Author

@guillaume-tgl any updates on this?

@guillaume-tgl
Copy link
Contributor

Would you mind sending an email at [email protected] with a link to that conversation so that we can investigate further? And if you could attach the entire result of the memory profiling as a file, it would be great.

@kodega2016
Copy link
Author

sure

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