IllegalArgumentException: Error: Uninitialized LayoutCoordinates. Please make sure when using the SharedTransitionScope composable function, the modifier passed to the child content is being used, or use SharedTransitionLayout instead. #913
I closed the app I was currently using to get to the home screen and pulled to open search, the app then crashed a few seconds after. My phone happened to be sideways at the time, but with portrait orientation locked on both the phone and launcher if that's relevant. A second crash was triggered shortly after with a different stack trace, I've attached separately below.
Strack trace
java.lang.IllegalArgumentException: Error: Uninitialized LayoutCoordinates. Please make sure when using the SharedTransitionScope composable function, the modifier passed to the child content is being used, or use SharedTransitionLayout instead.
at androidx.compose.animation.SharedBoundsNode$measure$1.invoke(SharedContentNode.kt:73)
at androidx.compose.ui.node.LookaheadCapablePlaceable$layout$1.placeChildren(LookaheadDelegate.kt:7)
at androidx.compose.ui.node.LookaheadDelegate.placeChildren(LookaheadDelegate.kt:5)
at androidx.compose.ui.node.LookaheadDelegate.placeAt-f8xVGno(LookaheadDelegate.kt:9)
at androidx.compose.ui.layout.Placeable$PlacementScope.place-70tqf50$default(Placeable.kt:15)
at androidx.compose.ui.node.LayoutNodeLayoutDelegate$LookaheadPassDelegate$placeSelf$2.invoke(LayoutNodeLayoutDelegate.kt:60)
at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:114)
at androidx.compose.runtime.snapshots.SnapshotStateObserver$ObservedScopeMap.observe(SnapshotStateObserver.kt:48)
at androidx.compose.runtime.snapshots.SnapshotStateObserver.observeReads(SnapshotStateObserver.kt:141)
at androidx.compose.ui.node.OwnerSnapshotObserver.observeReads$ui_release(OwnerSnapshotObserver.kt:3)
at androidx.compose.ui.node.LayoutNodeLayoutDelegate$LookaheadPassDelegate.placeSelf-MLgxB_4$1(LayoutNodeLayoutDelegate.kt:104)
at androidx.compose.ui.node.LayoutNode.lookaheadReplace$ui_release(LayoutNode.kt:35)
at androidx.compose.ui.node.MeasureAndLayoutDelegate.ensureSubtreeLookaheadReplaced(MeasureAndLayoutDelegate.kt:41)
at androidx.compose.ui.node.MeasureAndLayoutDelegate.ensureSubtreeLookaheadReplaced(MeasureAndLayoutDelegate.kt:44)
[21 lines truncated]
Device info
APP.VERSION : 1.31.1 APP.VERSIONCODE : 2024070100 APP.SIGNATURE : rx1fSnL7r5/OMoFC0e1KPqTndXQ= LAUNCHER.APP : android TIMEZONE : America/New_York VERSION.RELEASE : 14 VERSION.INCREMENTAL : 2024062700 VERSION.SDK.NUMBER : 34 BOARD : husky BOOTLOADER : ripcurrent-14.5-11693900 BRAND : google CPU_ABI : arm64-v8a CPU_ABI2 : DISPLAY : 2024062700 FINGERPRINT : google/husky/husky:14/AP2A.240605.024/2024062700:user/release-keys HARDWARE : husky HOST : grapheneos ID : AP2A.240605.024 MANUFACTURER : Google MODEL : Pixel 8 Pro PRODUCT : husky TAGS : release-keys TIME : 1719516874000 TYPE : user
Description
I closed the app I was currently using to get to the home screen and pulled to open search, the app then crashed a few seconds after. My phone happened to be sideways at the time, but with portrait orientation locked on both the phone and launcher if that's relevant. A second crash was triggered shortly after with a different stack trace, I've attached separately below.
Strack trace
Device info
APP.VERSION : 1.31.1
APP.VERSIONCODE : 2024070100
APP.SIGNATURE : rx1fSnL7r5/OMoFC0e1KPqTndXQ=
LAUNCHER.APP : android
TIMEZONE : America/New_York
VERSION.RELEASE : 14
VERSION.INCREMENTAL : 2024062700
VERSION.SDK.NUMBER : 34
BOARD : husky
BOOTLOADER : ripcurrent-14.5-11693900
BRAND : google
CPU_ABI : arm64-v8a
CPU_ABI2 :
DISPLAY : 2024062700
FINGERPRINT : google/husky/husky:14/AP2A.240605.024/2024062700:user/release-keys
HARDWARE : husky
HOST : grapheneos
ID : AP2A.240605.024
MANUFACTURER : Google
MODEL : Pixel 8 Pro
PRODUCT : husky
TAGS : release-keys
TIME : 1719516874000
TYPE : user
Crash 2: crash 2.txt