square / papa

PAPA: Performance of Android Production Applications
Apache License 2.0
351 stars 15 forks source link

Crash: lateinit property currentTrigger has not been initialized at `papa.internal.MainThreadTriggerTracer` #69

Open ankushg opened 1 month ago

ankushg commented 1 month ago

We recently updated PAPA from v0.16 and it looks like we're running into a crash, likely because of this change in v0.19.

androidx.compose.ui.res.ResourceResolutionException: lateinit property currentTrigger has not been initialized
    at papa.internal.MainThreadTriggerTracer.install$lambda-0(MainThreadTriggerTracer:35)
    at papa.MainThreadMessageSpy.startSpyingMainThreadDispatching$lambda-2(MainThreadMessageSpy:64)
    at android.os.Looper.loop(Looper.java:285)
    at android.app.ActivityThread.main(ActivityThread.java:7758)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:997)

Just wanted to flag!