https://kotlinlang.org logo
Title
b

bartosz.malkowski

10/14/2021, 11:26 AM
What may cause this exception?
Exception in thread "AWT-EventQueue-0" kotlin.UninitializedPropertyAccessException: lateinit property relocationRequesterNode has not been initialized
	at androidx.compose.ui.layout.RelocationRequesterModifier.getRelocationRequesterNode(RelocationRequesterModifier.kt:32)
	at androidx.compose.ui.layout.RelocationRequester.bringIntoView(RelocationRequester.kt:61)
	at androidx.compose.ui.layout.RelocationRequester.bringIntoView$default(RelocationRequester.kt:59)
	at androidx.compose.foundation.FocusableKt$focusable$2$4$1.invokeSuspend(Focusable.kt:108)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at androidx.compose.ui.platform.FlushCoroutineDispatcher$dispatch$2.invokeSuspend(CoroutineDispatchers.desktop.kt:55)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
:thread-please: 3
1
a

Alexander Kurasov[JB]

10/18/2021, 11:14 AM
do you have a shareable reproducer?
b

bartosz.malkowski

10/18/2021, 12:03 PM
No. I cannot reproduce it without using router from Decompose project. So it may be decompose related problem. https://kotlinlang.slack.com/archives/C01403U1ZGW/p1634557642090000
@Alexander Kurasov[JB] here is reproducer https://github.com/bmalkow/compose-desktop-error-demo
a

Arkadii Ivanov

10/18/2021, 8:17 PM
It appears to be unrelated to Decompose, filed an issue: https://issuetracker.google.com/issues/203433629
👍 1
b

bartosz.malkowski

10/22/2021, 10:40 AM
FYI: Compose v1.0.0-alpha4-build418 fix problem.
🎉 1