firebase-ios-sdk: Firebase Performance + Kotlin/Native crashes trying on http request in InstrumentSessionWithConfigurationDelegateDelegateQueue

[REQUIRED] Step 1: Describe your environment

  • Xcode 12.1
  • Firebase 7.0.0
  • Carthage

[REQUIRED] Step 2: Describe the problem

This is the same problem: https://github.com/firebase/firebase-ios-sdk/issues/2626

thread #1, queue = 'com.google.FPRNSURLSessionDelegateInstrument', stop reason = EXC_BAD_ACCESS (code=1, address=0x5fff8c1e8988)
    frame #0: 0x000000010783f228 CircletEAP`BackRefFromAssociatedObject::releaseRef() + 8
    frame #1: 0x000000010627a2d4 CircletEAP`-[GULObjectSwizzler swizzle] + 199
    frame #2: 0x000000010628f8ab CircletEAP`__52-[FPRNSURLSessionDelegateInstrument registerObject:]_block_invoke + 886
    frame #3: 0x000000010cc8ca88 libdispatch.dylib`_dispatch_client_callout + 8
    frame #4: 0x000000010cc9bcac libdispatch.dylib`_dispatch_lane_barrier_sync_invoke_and_complete + 132
    frame #5: 0x000000010628f50d CircletEAP`-[FPRNSURLSessionDelegateInstrument registerObject:] + 116
  * frame #6: 0x00000001062916b0 CircletEAP`__InstrumentSessionWithConfigurationDelegateDelegateQueue_block_invoke + 175
    frame #7: 0x000000010647af9f CircletEAP`kfun:runtime.net.Http.$doRequestCOROUTINE$658#invokeSuspend(kotlin.Result<kotlin.Any?>){}kotlin.Any? [inlined] <anonymous> at Http.kt:91:36
    frame #8: 0x000000010647ab32 CircletEAP`kfun:runtime.net.Http.$doRequestCOROUTINE$658#invokeSuspend(kotlin.Result<kotlin.Any?>){}kotlin.Any? [inlined] <anonymous>_1 at Http.kt:140
    frame #9: 0x000000010647aa99 CircletEAP`kfun:runtime.net.Http.$doRequestCOROUTINE$658#invokeSuspend(kotlin.Result<kotlin.Any?>){}kotlin.Any? [inlined] suspendCoroutineUninterceptedOrReturn at Coroutines.kt:14
    frame #10: 0x000000010647aa6c CircletEAP`kfun:runtime.net.Http.$doRequestCOROUTINE$658#invokeSuspend(kotlin.Result<kotlin.Any?>){}kotlin.Any? [inlined] suspendCancellableCoroutine at CancellableContinuation.kt:189
    frame #11: 0x000000010647aa6c CircletEAP`kfun:runtime.net.Http.$doRequestCOROUTINE$658#invokeSuspend(_this=0x0000600003557f68, result=0x00000001080fe798){}kotlin.Any? at Http.kt:41
    frame #12: 0x000000010647ca2a CircletEAP`kfun:runtime.net.Http#doRequest(_this=0x0000600004cce2b8, method=0x00006000054b2c28, url=0x0000600003556f48, parameters=0x0000600003557428,

image

Steps to reproduce:

Use Ktor Http or just bare NSURLSession in Kotlin/Native with the Firebase Performance enabled.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments