compose-multiplatform: [Windows] NOT VM - RuntimeException : Can't wrap nullptr
I am opening the exact same issue as https://github.com/JetBrains/compose-jb/issues/125 because I was asked to do so on the slack forum. So the problem is the exact same one but it is not due to running in a VM this time.
I am running on a physical Windows 10 machine (Windows 10 pro, 24GB).
Host Name: HAF932
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.18363 N/A Build 18363
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: Yan
Registered Organization:
Original Install Date: 7/27/2019, 7:34:10 AM
System Boot Time: 1/24/2021, 11:41:05 AM
System Manufacturer: System manufacturer
System Model: System Product Name
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 42 Stepping 7 GenuineIntel ~3401 Mhz
BIOS Version: American Megatrends Inc. 3603, 11/9/2012
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume1
System Locale: en-us;English (United States)
Input Locale: en-us;English (United States)
Time Zone: (UTC-08:00) Pacific Time (US & Canada)
Total Physical Memory: 24,543 MB
Available Physical Memory: 19,747 MB
Virtual Memory: Max Size: 49,119 MB
Virtual Memory: Available: 42,901 MB
Virtual Memory: In Use: 6,218 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
I am using java 15:
java version "15.0.2" 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)
I am using the latest version of compose-jb
plugins {
kotlin("jvm") version "1.4.21"
id("org.jetbrains.compose") version "0.3.0-build141"
}
on the unmodified code generated by IDEA 2020.3
IntelliJ IDEA 2020.3.1 (Ultimate Edition)
Build #IU-203.6682.168, built on December 29, 2020
Runtime version: 11.0.9.1+11-b1145.63 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Non-Bundled Plugins: com.tang, org.jetbrains.plugins.hocon, org.jetbrains.kotlin, Pythonid
The behavior is the following:
Running ./gradlew.bat run
generates the following error:
> Task :run
SkIcuLoader: datafile missing: C:\Program Files\Java\jdk-15.0.2\bin\icudtl.dat.
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Can't wrap nullptr
at org.jetbrains.skija.impl.Native.<init>(Native.java:13)
at org.jetbrains.skija.impl.Managed.<init>(Managed.java:15)
at org.jetbrains.skija.impl.Managed.<init>(Managed.java:11)
at org.jetbrains.skija.impl.RefCnt.<init>(RefCnt.java:8)
at org.jetbrains.skija.DirectContext.<init>(DirectContext.java:26)
at org.jetbrains.skiko.RenderTargetsKt.makeGLContext(RenderTargets.kt:6)
at org.jetbrains.skiko.SkiaLayer.draw(SkiaLayer.kt:57)
at org.jetbrains.skiko.HardwareLayer.redrawLayer(Native Method)
at androidx.compose.desktop.ComposeLayer.onFrame(ComposeLayer.kt:77)
at androidx.compose.desktop.ComposeLayer$onFrame$1.invokeSuspend(ComposeLayer.kt)
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:316)
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(AccessController.java:391)
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)
The actual error is Can't wrap nullptr
and it is assumed it is due to the previous line SkIcuLoader: datafile missing: C:\Program Files\Java\jdk-15.0.2\bin\icudtl.dat
but that is just an assumption.
Also because I have been asked, yes OpenGL is installed on my machine.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- Introduce defaultUIKitMain in compose library and use it from UIKit examples (#317) — committed to MatkovIvan/compose-multiplatform by pjBooms 2 years ago
We’re working on getting software rasterizer fallback for such cases.
ICU message is an unrelated warning, and shall go away with recent Skiko. We implemented software (i.e. slower) fallback if OpenGL based rendering is not available. Also DirectX support for Windows machine is being developed.