-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Firebase Performance makes Ktor requests crash #7277
Comments
Potentially related #6938. |
Hi @maksymmalyhin, thank you for the quick answer. What exactly do you mean by "crash log"? I already attached the stacktrace to the OP, isn't that the crash log? |
Ah, sorry, I missed the link. As far as I understand, the file contains Kotlin stack trace for the crashed thread, is it correct? Would you be able to provide stack traces for other threads? Are native (iOS) thread stack traces also available? |
I have to check with my iOS colleague @kchromik on Monday (I am the KMM developer and he's doing the iOS integration). |
The native stack trace doesn't differ from the one provided by @leinardi. |
@leinardi @kchromik We will try to reproduce the issue on our end to proceed with the investigation. In the meanwhile you may try to disable Firebase Performance instrumentation by setting Performance .isInstrumentationEnabled property to |
Thanks @maksymmalyhin that fixed the issue. |
Let's say that worked around the issue 😅 A proper fix is still needed 😉 (please do not close this issue!) |
An update, I was able to reproduce the crash using https://github.com/kotlin-hands-on/kmm-networking-and-data-storage as a sample app with the Firebase performance SDK and the current release for Kotlin. I have confirmed that the crash is fixed once I switched the app to use the Kotlin EAP preview v1.4.30-RC which contains the fix in JetBrains/kotlin-native#4569! I'll keep this issue open until the next release of Kotlin is publicly available. |
Closing this as this has been fixed with Kotlin v1.4.30. |
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Using Ktor together with Firebase Performance make the app crash with
EXC_BAD_ACCESS
.The only workaround seems to remove Firebase Performance.
Steps to reproduce:
We are able to reproduce the issue using kotlin 1.4.21, ktor 1.5.0' and coroutines 1.4.1-native-mt.
Executing a Ktor request on a project where Firebase Performance is added and will crash the app as soon as the request starts.
The Ktor request can be as simple as this:
This is the stacktrace.txt
Relevant Code:
A sample KMM client crashing with Firebase Performance here (you might need to update the dependencies to the latest version): ktorio/ktor#1040
The text was updated successfully, but these errors were encountered: