adfit / adfit-ios-sdk

AdFit iOS SDK for Publisher
Other
11 stars 3 forks source link

Crash report 문의 #43

Closed rutinfc closed 6 months ago

rutinfc commented 1 year ago

sdk에서 발생되는 크래시 정보가 수집되어 문의드립니다.

크래시 콜스택만 확인 하였을때는 WKWebview에서 자바 스크립트로 호출되는 ios Alert호출 후 completion handler가 정상적으로 반환되지 않아 발생된 것 같습니다.

현재까지 크래시가 발생된 모든 버전은 ios 16.3.1에서 발생됩니다.

ios 버전 : 16.3.1

# Crashlytics - Stack trace
# Platform: apple
# Issue: 5ea0a561ba227b8b4653daef70a21057
# Session: b2d4207172324279b59e5121ac2b36dc_DNE_0_v2
# Date: Tue Apr 25 2023 11:36:31 GMT+0900 (한국 표준시)

Fatal Exception: NSInternalInconsistencyException
Completion handler passed to -[AdFitSDK.WebBrowserViewController webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:] was not called

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x9e38 __exceptionPreprocess
1  libobjc.A.dylib                0x178d8 objc_exception_throw
2  CoreFoundation                 0xf9c28 __CFDictionaryCreateGeneric
3  WebKit                         0x1f85b8 WebKit::CompletionHandlerCallChecker::~CompletionHandlerCallChecker()
4  WebKit                         0x296bc0 WTF::Ref<WebKit::CompletionHandlerCallChecker, WTF::RawPtrTraits<WebKit::CompletionHandlerCallChecker> >::~Ref()
5  WebKit                         0x44eea4 WTF::BlockPtr<void ()> WTF::BlockPtr<void ()>::fromCallable<WebKit::UIDelegate::UIClient::runJavaScriptAlert(WebKit::WebPageProxy&, WTF::String const&, WebKit::WebFrameProxy*, WebKit::FrameInfoData&&, WTF::Function<void ()>&&)::$_1>(WebKit::UIDelegate::UIClient::runJavaScriptAlert(WebKit::WebPageProxy&, WTF::String const&, WebKit::WebFrameProxy*, WebKit::FrameInfoData&&, WTF::Function<void ()>&&)::$_1)::'lambda'(void const*)::__invoke(void const*)
6  libsystem_blocks.dylib         0x2124 _call_dispose_helpers_excp
7  libsystem_blocks.dylib         0x1d54 _Block_release
8  AdFitSDK                       0xe1768 (누락 UUID 83f62b31ec51379e8c2ff4f989e4a978)
9  libswiftCore.dylib             0x3da134 _swift_release_dealloc
10 AdFitSDK                       0xe17ec (누락 UUID 83f62b31ec51379e8c2ff4f989e4a978)
11 libswiftCore.dylib             0x3da134 _swift_release_dealloc
12 libsystem_blocks.dylib         0x2124 _call_dispose_helpers_excp
13 libsystem_blocks.dylib         0x1d54 _Block_release
14 UIKitCore                      0x3edc20 -[UIAlertController _clearActionHandlers]
15 UIKitCore                      0x3edb08 -[UIAlertController dealloc]
16 libobjc.A.dylib                0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**)
17 libobjc.A.dylib                0x4f80 objc_autoreleasePoolPop
18 UIKitCore                      0x1a37f0 -[_UIAfterCACommitBlock run]
19 UIKitCore                      0x1a3710 -[_UIAfterCACommitQueue flush]
20 UIKitCore                      0x1a361c _runAfterCACommitDeferredBlocks
21 UIKitCore                      0x3ea08 _cleanUpAfterCAFlushAndRunDeferredBlocks
22 UIKitCore                      0x448d84 _afterCACommitHandler
23 CoreFoundation                 0x91d30 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
24 CoreFoundation                 0x1a280 __CFRunLoopDoObservers
25 CoreFoundation                 0x7bc50 __CFRunLoopRun
26 CoreFoundation                 0x80eb0 CFRunLoopRunSpecific
27 GraphicsServices               0x1368 GSEventRunModal
28 UIKitCore                      0x3a1668 -[UIApplication _run]
29 UIKitCore                      0x3a12cc UIApplicationMain
30 myapp                         0xcc18a8 main + 36 (main.m:36)
31 ???                            0x1b3904960 (누락)

Crashed: com.google.firebase.crashlytics.ios.exception
0  myapp                         0xbe8354 FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1  myapp                         0xbe8734 FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2  myapp                         0xbf61d4 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3  myapp                       0xbf6028 __FIRCLSExceptionRecord_block_invoke + 232 (FIRCLSException.mm:232)
4  libdispatch.dylib              0x3f88 _dispatch_client_callout + 20
5  libdispatch.dylib              0x13574 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6  myapp                        0xbf5034 FIRCLSExceptionRecord + 234 (FIRCLSException.mm:234)
7  myapp                         0xbf5b48 FIRCLSExceptionRecordNSException + 126 (FIRCLSException.mm:126)
8  myapp                         0xbf4c8c FIRCLSTerminateHandler() + 398 (FIRCLSException.mm:398)
9  AdFitSDK                       0x4d8e4 CPPExceptionTerminate() + 476
10 libc++abi.dylib                0x10f28 std::__terminate(void (*)()) + 20
11 libc++abi.dylib                0x13ecc __cxa_rethrow + 148
12 libobjc.A.dylib                0x196b4 objc_exception_rethrow + 44
13 CoreFoundation                 0x80f74 CFRunLoopRunSpecific + 808
14 GraphicsServices               0x1368 GSEventRunModal + 164
15 UIKitCore                      0x3a1668 -[UIApplication _run] + 888
16 UIKitCore                      0x3a12cc UIApplicationMain + 340
17 myapp                         0xcc18a8 main + 36 (main.m:36)
18 ???                            0x1b3904960 (누락)

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  CoreFoundation                 0x7aac4 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd08 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
7  Foundation                     0x42054 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x41f3c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x4d66a4 -[UIEventFetcher threadMain] + 436
10 Foundation                     0x5b518 __NSThread__start__ + 716
11 libsystem_pthread.dylib        0x16cc _pthread_start + 148
12 libsystem_pthread.dylib        0xba4 thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  myapp                         0xbf678c FIRCLSMachExceptionServer + 192 (FIRCLSMachException.c:192)
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  CoreFoundation                 0x7aac4 __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x7bd08 __CFRunLoopRun + 1232
6  CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
7  CFNetwork                      0x257ff0 _CFURLStorageSessionDisableCache + 61088
8  Foundation                     0x5b518 __NSThread__start__ + 716
9  libsystem_pthread.dylib        0x16cc _pthread_start + 148
10 libsystem_pthread.dylib        0xba4 thread_start + 8

com.apple.audio.toolbox.AUScheduledParameterRefresher
0  libsystem_kernel.dylib         0xd24 semaphore_wait_trap + 8
1  caulk                          0x2888 caulk::mach::semaphore::wait_or_error() + 28
2  caulk                          0x2fc0 caulk::concurrent::details::worker_thread::run() + 56
3  caulk                          0x3788 void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::*)(), std::__1::tuple<caulk::concurrent::details::worker_thread*> > >(void*) + 96
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

KSCrash Exception Handler (Secondary)
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xd988 thread_suspend + 112
3  AdFitSDK                       0x38f7c ksmachexc_i_handleExceptions + 100
4  libsystem_pthread.dylib        0x16cc _pthread_start + 148
5  libsystem_pthread.dylib        0xba4 thread_start + 8

KSCrash Exception Handler (Primary)
0  libsystem_kernel.dylib         0xda8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x13a1c mach_msg2_internal + 80
2  libsystem_kernel.dylib         0x13c5c mach_msg_overwrite + 388
3  libsystem_kernel.dylib         0x12ec mach_msg + 24
4  AdFitSDK                       0x38fa0 ksmachexc_i_handleExceptions + 136
5  libsystem_pthread.dylib        0x16cc _pthread_start + 148
6  libsystem_pthread.dylib        0xba4 thread_start + 8
Kim-Deogwon commented 1 year ago

@rutinfc 안녕하세요.

해당 이슈에 대해, 확인 해보겠습니다.

추가로 재현빈도, AdFit 버전, 재현경로 같은 정보를 주신다면 많은 도움이 될 것 같습니다.

rutinfc commented 1 year ago

adfit 버전은 3.12.22버전이며 리포팅 툴에의해 수집되어 재현경로는 파악되지 않있습니다. 빈도 역시 간헐적으로 나타나고 있습니다. 콜스택에 명시된 부분으로 추측하건데 일부 광고에 사용되는 javascript에 의해 발생되는 부분이라 판단만 됩니다. 확인 감사합니다.