https://kotlinlang.org logo
#compose
Title
# compose
r

rsktash

01/01/2022, 4:30 PM
Hi I’ve published a new app for production Now i’m receiving crash reports Any help is appreciated
Fatal Exception: java.lang.NullPointerException at androidx.compose.ui.platform.RenderNodeLayer.updateDisplayList(RenderNodeLayer.java:46) at androidx.compose.ui.platform.AndroidComposeView.dispatchDraw(AndroidComposeView.java:89) at android.view.View.draw(View.java:23904) at android.view.View.updateDisplayListIfDirty(View.java:22776) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:5320) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:5292) at android.view.View.updateDisplayListIfDirty(View.java:22731) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:5320) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:5292) at android.view.View.updateDisplayListIfDirty(View.java:22731) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:5320) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:5292) at android.view.View.updateDisplayListIfDirty(View.java:22731) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:5320) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:5292) at android.view.View.updateDisplayListIfDirty(View.java:22731) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:5320) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:5292) at android.view.View.updateDisplayListIfDirty(View.java:22731) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:5320) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:5292) at android.view.View.updateDisplayListIfDirty(View.java:22731) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:579) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:585) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:662) at android.view.ViewRootImpl.draw(ViewRootImpl.java:5042) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:4749) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3866) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2618) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9971) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1010) at android.view.Choreographer.doCallbacks(Choreographer.java:809) at android.view.Choreographer.doFrame(Choreographer.java:744) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:995) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8633) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
c

Colton Idle

01/01/2022, 6:01 PM
I'd file a bug on the issue tracker. Do you use r8? I wonder if it's maybe related?
r

rsktash

01/01/2022, 7:00 PM
@Colton Idle Yes I use r8
c

Colton Idle

01/01/2022, 7:14 PM
You could try shipping a build to prod without r8 (minifyEnabled = false) and see if the crash reports stop. if so, then its likely an r8 issue and you could file a bug to the r8 team.
f

FunkyMuse

01/02/2022, 10:18 AM
Which compose version are you using?
r

rsktash

01/02/2022, 2:13 PM
@FunkyMuse I’m using latest rc01
s

Shakil Karim

01/03/2022, 9:20 AM
@rsktash I got the same crash on my production App, and I had disabled R8 for this build but this crash is still there.
Copy code
ava.lang.NullPointerException: null
    at androidx.compose.ui.platform.RenderNodeLayer.updateDisplayList(RenderNodeLayer.android.kt:292)
    at androidx.compose.ui.platform.AndroidComposeView.dispatchDraw(AndroidComposeView.android.kt:857)
    at android.view.View.draw(View.java:21621)
    at android.view.View.updateDisplayListIfDirty(View.java:20483)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4428)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4401)
    at android.view.View.updateDisplayListIfDirty(View.java:20441)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4428)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4401)
    at android.view.View.updateDisplayListIfDirty(View.java:20441)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4428)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4401)
    at android.view.View.updateDisplayListIfDirty(View.java:20441)
    at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4428)
    at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4401)
    at android.view.View.updateDisplayListIfDirty(View.java:20441)
    at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:584)
@rsktash Did you already report the bug?
r

rsktash

01/03/2022, 9:22 AM
@Shakil Karim not yet
s

Shakil Karim

01/03/2022, 9:31 AM
r

rsktash

01/18/2022, 5:57 PM
16 Views