JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.26k stars 1.18k forks source link

Crash on compile desktop app with splitpane version 1.0.0-alpha4-build398 #1262

Closed tiagocasemiro closed 3 years ago

tiagocasemiro commented 3 years ago

My PC _OS: Zorin OS 16 Kernel: x8664 Linux 5.11.0-37-generic DE: GNOME 3.38.6 CPU: AMD Ryzen 5 5600G with Radeon Graphics @ 12x 3,9GHz GPU: AMD RENOIR (DRM 3.40.0, 5.11.0-37-generic, LLVM 12.0.0)

My tools kotlin("jvm") version "1.5.21" id("org.jetbrains.compose") version "1.0.0-alpha3" kotlinOptions.jvmTarget = "11" java: java.net 16.0.2.open from sdkman

When I add this dependency. implementation("org.jetbrains.compose.components:components-splitpane-desktop:1.0.0-alpha4-build398")then I compile the application, I get this error

_java.lang.UnsatisfiedLinkError: 'void org.jetbrains.skia.impl.Library._nAfterLoad()' at org.jetbrains.skia.impl.Library._nAfterLoad(Native Method) at org.jetbrains.skia.impl.Library$Companion._nAfterLoad(Library.jvm.kt) at org.jetbrains.skiko.Library.load(Library.kt:96) at org.jetbrains.skiko.SkiaLayer.(SkiaLayer.kt:25) at androidx.compose.ui.awt.ComposeLayer.(ComposeLayer.desktop.kt:61) at androidx.compose.ui.awt.ComposeWindowDelegate.(ComposeWindowDelegate.desktop.kt:36) at androidx.compose.ui.awt.ComposeWindow.(ComposeWindow.desktop.kt:37) at androidx.compose.ui.window.Window_desktopKt$Window$3$1.invoke(Window.desktop.kt:143) at androidx.compose.ui.window.Window_desktopKt$Window$3$1.invoke(Window.desktop.kt:142) at androidx.compose.ui.window.Window_desktopKt$Window$10$1.invoke(Window.desktop.kt:316) at androidx.compose.ui.window.Window_desktopKt$Window$10$1.invoke(Window.desktop.kt:315) at androidx.compose.ui.window.AwtWindow_desktopKt$AwtWindow$2.invoke(AwtWindow.desktop.kt:75) at androidx.compose.ui.window.AwtWindow_desktopKt$AwtWindow$2.invoke(AwtWindow.desktop.kt:74) at androidx.compose.runtime.DisposableEffectImpl.onRemembered(Effects.kt:81) at androidx.compose.runtime.CompositionImpl$RememberEventDispatcher.dispatchRememberObservers(Composition.kt:802) at androidx.compose.runtime.CompositionImpl.applyChanges(Composition.kt:647) at androidx.compose.runtime.Recomposer.composeInitial$runtime(Recomposer.kt:733) at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:433) at androidx.compose.ui.window.Application_desktopKt$awaitApplication$2$1$2.invokeSuspend(Application.desktop.kt:179) 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) Exception in thread "main" java.lang.UnsatisfiedLinkError: 'long org.jetbrains.skia.PictureRecorderKt.PictureRecorder_nMake()' at org.jetbrains.skia.PictureRecorderKt.PictureRecorder_nMake(Native Method) at org.jetbrains.skia.PictureRecorderKt.access$PictureRecorder_nMake(PictureRecorder.kt:1) at org.jetbrains.skia.PictureRecorder.(PictureRecorder.kt:34) at org.jetbrains.skiko.SkiaLayer.(SkiaLayer.kt:136) at org.jetbrains.skiko.SkiaLayer.(SkiaLayer.kt:38) at org.jetbrains.skiko.SkiaLayer.(SkiaLayer.kt:36) at androidx.compose.ui.awt.ComposeLayer$ComponentImpl.(ComposeLayer.desktop.kt:76) at androidx.compose.ui.awt.ComposeLayer.(ComposeLayer.desktop.kt:61) at androidx.compose.ui.awt.ComposeWindowDelegate.(ComposeWindowDelegate.desktop.kt:36) at androidx.compose.ui.awt.ComposeWindow.(ComposeWindow.desktop.kt:37) at androidx.compose.ui.window.Window_desktopKt$Window$3$1.invoke(Window.desktop.kt:143) at androidx.compose.ui.window.Window_desktopKt$Window$3$1.invoke(Window.desktop.kt:142) at androidx.compose.ui.window.Window_desktopKt$Window$10$1.invoke(Window.desktop.kt:316) at androidx.compose.ui.window.Window_desktopKt$Window$10$1.invoke(Window.desktop.kt:315) at androidx.compose.ui.window.AwtWindow_desktopKt$AwtWindow$2.invoke(AwtWindow.desktop.kt:75) at androidx.compose.ui.window.AwtWindow_desktopKt$AwtWindow$2.invoke(AwtWindow.desktop.kt:74) at androidx.compose.runtime.DisposableEffectImpl.onRemembered(Effects.kt:81) at androidx.compose.runtime.CompositionImpl$RememberEventDispatcher.dispatchRememberObservers(Composition.kt:802) at androidx.compose.runtime.CompositionImpl.applyChanges(Composition.kt:647) at androidx.compose.runtime.Recomposer.composeInitial$runtime(Recomposer.kt:733) at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:433) at androidx.compose.ui.window.ApplicationdesktopKt$awaitApplication$2$1$2.invokeSuspend(Application.desktop.kt:179) 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)

When I add this dependency. implementation("org.jetbrains.compose.components:components-splitpane-desktop:1.0.0-alpha3")compile normally.

Note: I haven't started using this component yet. I just compiled the code

tiagocasemiro commented 3 years ago

Resolved on Beta1

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.