Purchasely / Purchasely-ReactNative

Other
13 stars 2 forks source link

Android crash : Fatal Exception: kotlin.UninitializedPropertyAccessException #153

Open Geoffrey63 opened 2 days ago

Geoffrey63 commented 2 days ago

Hello,

in our latest release, we're encountering numerous crashes on android. Crashes only occur on android and not on ios

Here are the Firebase Crashlytics logs :

Fatal Exception: kotlin.UninitializedPropertyAccessException
lateinit property context has not been initialized
io.purchasely.managers.PLYManager.getContext (PLYManager.kt:36)
io.purchasely.managers.PLYDiagnosticManager.isConfiguredFontsAvailable (PLYDiagnosticManager.kt:128)
io.purchasely.managers.PLYDiagnosticManager.access$isConfiguredFontsAvailable (PLYDiagnosticManager.kt:23)
io.purchasely.managers.PLYDiagnosticManager$2.invokeSuspend (PLYDiagnosticManager.kt:40)
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:104)
kotlinx.coroutines.internal.LimitedDispatcher$Worker.run (LimitedDispatcher.kt:111)
kotlinx.coroutines.scheduling.TaskImpl.run (Tasks.kt:99)
kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:584)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:811)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:715)
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:702)

The version used is :

  "react-native": "0.73.6",
  "react-native-purchasely": "^4.4.0",

It's seem to be related to this issue on the android SDK : https://github.com/Purchasely/Purchasely-Android/issues/11

Can you help us with this?

Thanks

kherembourg commented 2 days ago

Hello @Geoffrey63 this crash was fixed with version 4.5.0, I suggest to use that one