question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure to render screen after installation

See original GitHub issue

After my dependency installation with:

val decomposeVersion = "0.4.0"
implementation("com.arkivanov.decompose:decompose:$decomposeVersion")
implementation("com.arkivanov.decompose:extensions-compose-jetbrains:$decomposeVersion")

I receive the error below without even starting to use Decompose lib. Is this a known issue? Any ideas what’s wrong with my installation. I’m developing a Jetbrains Compose desktop pet project

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: 'long org.jetbrains.skia.Paint._nMake()'
	at org.jetbrains.skia.Paint._nMake(Native Method)
	at org.jetbrains.skia.Paint$Companion._nMake(Paint.kt)
	at org.jetbrains.skia.Paint.<init>(Paint.kt:156)
	at androidx.compose.ui.graphics.DesktopPaint.<init>(DesktopPaint.desktop.kt:28)
	at androidx.compose.ui.graphics.DesktopPaint_desktopKt.Paint(DesktopPaint.desktop.kt:25)
	at androidx.compose.ui.node.InnerPlaceable.<clinit>(InnerPlaceable.kt:181)
	at androidx.compose.ui.node.LayoutNode.<init>(LayoutNode.kt:583)
	at androidx.compose.ui.node.LayoutNode.<init>(LayoutNode.kt:79)
	at androidx.compose.ui.platform.DesktopOwner.<init>(DesktopOwner.desktop.kt:141)
	at androidx.compose.ui.platform.DesktopOwner.<init>(DesktopOwner.desktop.kt:86)
	at androidx.compose.ui.awt.ComposeLayer$setContent$4.invoke(ComposeLayer.desktop.kt:287)
	at androidx.compose.ui.awt.ComposeLayer$setContent$4.invoke(ComposeLayer.desktop.kt:284)
	at androidx.compose.ui.awt.ComposeLayer$Wrapped.init(ComposeLayer.desktop.kt:91)
	at org.jetbrains.skiko.SkiaLayer.checkInit(SkiaLayer.kt:72)
	at org.jetbrains.skiko.SkiaLayer._init_$lambda-0(SkiaLayer.kt:60)
	at java.desktop/java.awt.Component.processHierarchyEvent(Component.java:6819)
	at java.desktop/java.awt.Component.processEvent(Component.java:6438)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4859)
	at java.desktop/java.awt.Component.addNotify(Component.java:7123)
	at java.desktop/java.awt.Canvas.addNotify(Canvas.java:104)
	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4791)
	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4791)
	at androidx.compose.ui.awt.ComposeWindowDelegate$pane$1.addNotify(ComposeWindowDelegate.desktop.kt:58)
	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4791)
	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4791)
	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
	at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4791)
	at java.desktop/javax.swing.JRootPane.addNotify(JRootPane.java:733)
	at java.desktop/java.awt.Container.addNotify(Container.java:2800)
	at java.desktop/java.awt.Window.addNotify(Window.java:787)
	at java.desktop/java.awt.Frame.addNotify(Frame.java:490)
	at java.desktop/java.awt.Window.show(Window.java:1049)
	at java.desktop/java.awt.Component.show(Component.java:1732)
	at java.desktop/java.awt.Component.setVisible(Component.java:1679)
	at java.desktop/java.awt.Window.setVisible(Window.java:1032)
	at androidx.compose.ui.window.AwtWindow_desktopKt$AwtWindow$4$1.invokeSuspend(AwtWindow.desktop.kt:122)
	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:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	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:746)
	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)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
anhanh11001commented, Nov 30, 2021

Thanks for the help, I was using old Compose version

0reactions
arkivanovcommented, Nov 30, 2021

This looks like a runtime error. Are you sure it is a compile time error? Anyway, still looks like a binary compatibility issue. Most like due to Decompose version is not compatible with Compose version. I suggest to try downgrading Compose version. I think it should work with at least 1.0.0-alpha4-build348.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Fails to Render the screen from boot to desktop ...
1. Start your computer from the installation media. · 2. In the Windows Recovery Environment, on the Choose an option screen, click Troubleshoot....
Read more >
How to Fix a Black Screen in Windows 10 - groovyPost
Probable cause: The black screen is caused by a device driver or hardware performance issue. Possible solution: Try booting into Safe Mode. See ......
Read more >
5 Solutions if After Effects is Not Rendering Properly
5 Solutions if After Effects is Not Rendering Properly · 1. Use the Render Queue Panel · 2. Render Using Media Encoder ·...
Read more >
Fix export issues in Premiere Pro - Adobe Support
Fix issues in Adobe Premiere Pro that cause an "Error while compiling" error message when rendering or exporting.
Read more >
Bodymovin after effects plugin: Render Failed #2265 - GitHub
Hi, I found the solution. If you have downloaded the extension from Adobe exchange uninstall it and re-install after downloading from aescripts.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found