Coder Social home page Coder Social logo

Comments (15)

rule-po avatar rule-po commented on August 26, 2024 1

Same error, but on some devices there is need to make multiple switches to home tab.
I tried it on Pixel 3 and it crashes after couple switching between tabs and then back to home.
On Xiaomi Mi 9 after first switch back to home.

from compose-samples.

Jeyhey avatar Jeyhey commented on August 26, 2024 1

Hi, could you share some insights into this issue, so that we can learn along the way? Is it an issue with the compose runtime or the way that the bottom bar is implemented (for example the way that measure is used)?

What are your thoughts?

from compose-samples.

Neovyse avatar Neovyse commented on August 26, 2024 1

Fixed on the AGP 7.0.0-alpha02 version
Thank you @Zpecter for testing

from compose-samples.

desugar-64 avatar desugar-64 commented on August 26, 2024

I have the same issue.

from compose-samples.

JuanFcoMiranda avatar JuanFcoMiranda commented on August 26, 2024

Same issue here.

from compose-samples.

JoseAlcerreca avatar JoseAlcerreca commented on August 26, 2024

It looks like a problem with the sample, but, have you tried in canary 8?

from compose-samples.

JuanFcoMiranda avatar JuanFcoMiranda commented on August 26, 2024

It looks like a problem with the sample, but, have you tried in canary 8?

I tried with canary 8.

from compose-samples.

Neovyse avatar Neovyse commented on August 26, 2024

It looks like a problem with the sample, but, have you tried in canary 8?

Me too, i tried with canary 8 and same issue.

from compose-samples.

elgunhuseynli avatar elgunhuseynli commented on August 26, 2024

Verified same error on both Emulator and Xiaomi Mi A3 devices.

from compose-samples.

mayojava avatar mayojava commented on August 26, 2024

Same issue on Google Pixel 4 and Samsung S10

from compose-samples.

mr3y-the-programmer avatar mr3y-the-programmer commented on August 26, 2024

same issue with pixel 4 and AS canary 10

from compose-samples.

andre-artus avatar andre-artus commented on August 26, 2024

Same, or very similar, issue on emulator (detail below), but occurs immediately after on activating search.

Code
#262

Gif
bugreport-Jetsnack_crash_on_search

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.jetsnack, PID: 5269 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:503) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)  Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at androidx.compose.ui.platform.ViewLayer$Companion.updateDisplayList(ViewLayer.kt:270) at androidx.compose.ui.platform.ViewLayer.updateDisplayList(ViewLayer.kt:213) at androidx.compose.ui.platform.AndroidComposeView.dispatchDraw(AndroidComposeView.kt:554) at android.view.View.draw(View.java:20210) at android.view.View.updateDisplayListIfDirty(View.java:19082) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4317) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4290) at android.view.View.updateDisplayListIfDirty(View.java:19042) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4317) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4290) at android.view.View.updateDisplayListIfDirty(View.java:19042) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4317) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4290) at android.view.View.updateDisplayListIfDirty(View.java:19042) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:686) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:692) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:801) at android.view.ViewRootImpl.draw(ViewRootImpl.java:3311) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3115) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2484) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1460) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7183) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949) at android.view.Choreographer.doCallbacks(Choreographer.java:761) at android.view.Choreographer.doFrame(Choreographer.java:696) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)  Caused by: java.lang.IllegalArgumentException: Layer is redrawn for LayoutNode in state NeedsRelayout [LayoutNode@d2888f7 children: 0 measureBlocks: androidx.compose.ui.LayoutKt$measureBlocksOf$1@a07c364] at androidx.compose.ui.node.LayerWrapper.invoke(LayerWrapper.kt:167) at androidx.compose.ui.node.LayerWrapper.invoke(Unknown Source:3) at androidx.compose.ui.platform.ViewLayer$dispatchDraw$1$1.invoke(ViewLayer.kt:184) at androidx.compose.ui.platform.ViewLayer$dispatchDraw$1$1.invoke(Unknown Source:0) at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:1721) at androidx.compose.runtime.snapshots.SnapshotStateObserver.observeReads(SnapshotStateObserver.kt:128) at androidx.compose.ui.platform.AndroidComposeView.observeLayerModelReads(AndroidComposeView.kt:485) at androidx.compose.ui.platform.ViewLayer.dispatchDraw(ViewLayer.kt:183) at android.view.View.draw(View.java:20210) at android.view.View.updateDisplayListIfDirty(View.java:19082) at java.lang.reflect.Method.invoke(Native Method)  at androidx.compose.ui.platform.ViewLayer$Companion.updateDisplayList(ViewLayer.kt:270)  at androidx.compose.ui.platform.ViewLayer.updateDisplayList(ViewLayer.kt:213)  at androidx.compose.ui.platform.AndroidComposeView.dispatchDraw(AndroidComposeView.kt:554)  at android.view.View.draw(View.java:20210)  at android.view.View.updateDisplayListIfDirty(View.java:19082)  at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4317)  at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4290)  at android.view.View.updateDisplayListIfDirty(View.java:19042)  at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4317)  at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4290)  at android.view.View.updateDisplayListIfDirty(View.java:19042)  at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4317)  at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4290)  at android.view.View.updateDisplayListIfDirty(View.java:19042)  at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:686)  at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:692)  at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:801)  at android.view.ViewRootImpl.draw(ViewRootImpl.java:3311)  at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:3115)  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2484)  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1460)  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7183)  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)  at android.view.Choreographer.doCallbacks(Choreographer.java:761)  at android.view.Choreographer.doFrame(Choreographer.java:696)  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)  at android.os.Handler.handleCallback(Handler.java:873)  at android.os.Handler.dispatchMessage(Handler.java:99)  at android.os.Looper.loop(Looper.java:193)  at android.app.ActivityThread.main(ActivityThread.java:6669)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 

`

Name: Nexus_5X_API_28

CPU/ABI: Google Play Intel Atom (x86)

Path: [..]\Nexus_5X_API_28.avd

Target: google_apis_playstore [Google Play] (API level 28)

Skin: nexus_5x

SD Card: 512M

fastboot.chosenSnapshotFile:

runtime.network.speed: full

hw.accelerometer: yes

hw.device.name: Nexus 5X

hw.lcd.width: 1080

hw.initialOrientation: Portrait

image.androidVersion.api: 28

tag.id: google_apis_playstore

hw.mainKeys: no

hw.camera.front: emulated

avd.ini.displayname: Nexus 5X API 28

hw.gpu.mode: auto

hw.ramSize: 1536

PlayStore.enabled: true

fastboot.forceColdBoot: no

hw.cpu.ncore: 4

hw.keyboard: yes

hw.sensors.proximity: yes

hw.dPad: no

hw.lcd.height: 1920

vm.heapSize: 228

skin.dynamic: yes

hw.device.manufacturer: Google

hw.gps: yes

hw.audioInput: yes

image.sysdir.1: system-images\android-28\google_apis_playstore\x86\

showDeviceFrame: yes

hw.camera.back: virtualscene

AvdId: Nexus_5X_API_28

hw.lcd.density: 420

hw.arc: false

hw.device.hash2: MD5:ae200ad6786ec467cb9067f7b46b0fd1

fastboot.forceChosenSnapshotBoot: no

fastboot.forceFastBoot: yes

hw.trackBall: no

hw.battery: yes

hw.sdCard: yes

tag.display: Google Play

runtime.network.latency: none

disk.dataPartition.size: 6442450944

hw.sensors.orientation: yes

avd.ini.encoding: UTF-8

hw.gpu.enabled: yes`

from compose-samples.

Jeyhey avatar Jeyhey commented on August 26, 2024

Alpha 7 was released ... this bug still remains unclosed and uncommented.

from compose-samples.

atsushieno avatar atsushieno commented on August 26, 2024

I have no idea why, but #236 occurs on debugging run, this occurs on non-debugging run (i.e.e #236 does not reproduce on non-debug mode).

from compose-samples.

JuanFcoMiranda avatar JuanFcoMiranda commented on August 26, 2024

With the update to AGP 7.0.0-alpha02, it seems this has been fixed. I have tested it, and now it works.

from compose-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.