Comments (15)
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.
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.
Fixed on the AGP 7.0.0-alpha02 version
Thank you @Zpecter for testing
from compose-samples.
I have the same issue.
from compose-samples.
Same issue here.
from compose-samples.
It looks like a problem with the sample, but, have you tried in canary 8?
from compose-samples.
It looks like a problem with the sample, but, have you tried in canary 8?
I tried with canary 8.
from compose-samples.
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.
Verified same error on both Emulator and Xiaomi Mi A3 devices.
from compose-samples.
Same issue on Google Pixel 4 and Samsung S10
from compose-samples.
same issue with pixel 4 and AS canary 10
from compose-samples.
Same, or very similar, issue on emulator (detail below), but occurs immediately after on activating search.
Code
#262
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.
Alpha 7 was released ... this bug still remains unclosed and uncommented.
from compose-samples.
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.
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)
- [FR]: Migrate Jetlagged Modifier.background away from composed {} modifier HOT 1
- [Bug]: [libhwui.so] SkSurface::getCanvas() HOT 3
- Compose
- Composer
- EU Login Mobile 1.11.0 - Technical information
- [FR]: Incorrect Param Comment HOT 1
- [Bug]: mac m1 building,info【org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering】 HOT 2
- Inefficient use of `.then`
- [FR]: Need Help Implementing Glide/Swipe to Write Feature in Custom Keyboard Using Jetpack Compose (Kotlin) HOT 1
- [BUG]:In a dual-core CPU machine, running Compose is very slow. HOT 1
- [Bug]:
- [Bug]: JetNews crashed when starting for CircularProgressIndicator HOT 2
- [Bug]: HorizontalPager goes for infinite recomposition HOT 1
- [FR]: Yellow Background Element for Below Android 13 HOT 5
- [Bug]: PlayerScreen doesn't render Previews in Iguana beta 2 HOT 1
- [FR]: Jetchat is not laid out edge-to-edge in 2 & 3-button navigation mode HOT 2
- [FR]: Reply is laid out edge-to-edge in 2 & 3-button navigation mode HOT 1
- [FR]: Jetsnack is laid out edge-to-edge in 2 & 3-button navigation mode HOT 1
- [FR]: Owl is laid out edge-to-edge in 2 & 3-button navigation mode HOT 1
- [Bug]:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compose-samples.