Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whether the native image supports desktop image applications built by lwjgl? #5815

Closed
Amorter opened this issue Jan 22, 2023 · 1 comment
Closed

Comments

@Amorter
Copy link

Amorter commented Jan 22, 2023

Hi, I was actually experimenting with building the native image of Minecraft1.19.2 using graalvm,
and I've created the reflection configuration using the tracing agent to build it up properly
But when I execute the exe, the following error occurs

ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider com.oracle.truffle.js.scriptengine.GraalJSEngineFactory could not be instantiated

[ [ SubstrateSegfaultHandler caught a segfault in thread 0x0000017b673e2c80 ] ]
siginfo: ExceptionCode: -1073741819, writing address 0x00007ff61f3ffa8c
Current timestamp: 1674429712543

General purpose register values:
  RAX 0x00007ffa205f0000 is an unknown value
  RBX 0x0000000000000001 is an unknown value
  RCX 0x7df38e1c3d530000 is an unknown value
  RDX 0x00007ff61f3ffa70 points into AOT compiled code
  RBP 0x0000000000000000
  RSI 0x0000017b7056ae10 points into an aligned TLAB chunk of thread 0x0000017b673e2c80
  RDI 0x0000017b7056ae48 points into an aligned TLAB chunk of thread 0x0000017b673e2c80
    is an object of type com.oracle.svm.core.genscavenge.PinnedObjectImpl
  RSP 0x00000077346fe2c0 points into the stack for thread 0x0000017b673e2c80
  R8  0x00007ffab64469a8 is an unknown value
  R9  0x0000000000000004 is an unknown value
  R10 0x000000000000004c is an unknown value
  R11 0x00000077346fe220 points into the stack for thread 0x0000017b673e2c80
  R12 0x00007ff622aa5b28 points into AOT compiled code org.lwjgl.system.windows.WinBase.nGetModuleHandle(WinBase.java)
  R13 0x00000077346fe318 points into the stack for thread 0x0000017b673e2c80
  R14 0x000000000000007f is an unknown value
  R15 0x0000017b673e2c80 is a thread
  EFL 0x0000000000010202 is an unknown value
  RIP 0x00007ffa20610549 is an unknown value

Printing Instructions (ip=0x00007ffa20610549):
  0x00007ffa20610529: 0x8b 0xc5 0x48 0x8b 0x6c 0x24 0x40 0x48 0x8b 0x74 0x24 0x48 0x48 0x83 0xc4 0x20
  0x00007ffa20610539: 0x41 0x5e 0xc3 0x48 0x8b 0x74 0x24 0x48 0x48 0x8b 0xc5 0x48 0x8b 0x6c 0x24 0x40
  0x00007ffa20610549: 0x44 0x89 0x72 0x1c 0x48 0x83 0xc4 0x20 0x41 0x5e 0xc3 0xcc 0xcc 0xcc 0xcc 0xcc
  0x00007ffa20610559: 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0xcc 0x48 0x89 0x6c 0x24 0x18 0x48 0x89 0x74 0x24

Top of stack (sp=0x00000077346fe2c0):
  0x00000077346fe2c0: 0x00007ffa205f0000 0x0000017b7056a728
  0x00000077346fe2d0: 0x0000017b69e14620 0x0000017b69e4bf20
  0x00000077346fe2e0: 0x0000017b67700000 0x00007ff622aa5b3b
  0x00000077346fe2f0: 0x0000000000000000 0x0000000000000000
  0x00000077346fe300: 0x0000000000000000 0x0000017b7056ae10
  0x00000077346fe310: 0x000000000000000a 0x00007ff622aa5b28
  0x00000077346fe320: 0x00000077346fe2f0 0x0000000000000000
  0x00000077346fe330: 0x00007ffa206104a0 0x0000000169e10d60
  0x00000077346fe340: 0x0000017b6ef78330 0x00007ff622aa5020
  0x00000077346fe350: 0x0000017b69e4bfe0 0x0000000002c9a1f0
  0x00000077346fe360: 0x0000017b7056a5c8 0x00007ff622aa6076
  0x00000077346fe370: 0x0000017b68837b28 0x0000017b69e49820
  0x00000077346fe380: 0x00000000021e3360 0x0000017b7056a408
  0x00000077346fe390: 0x00007ff622a76b30 0x00007ff61f3c61eb
  0x00000077346fe3a0: 0x0000000000000020 0x00007ff61f3c5148
  0x00000077346fe3b0: 0x0000017b69cdb7c0 0x00007ff6203b225c
  0x00000077346fe3c0: 0x0000017b6a39b450 0x0000017b6a39a1f0
  0x00000077346fe3d0: 0x00000000021e3360 0x0000017b698e3360
  0x00000077346fe3e0: 0x0000017b691b6a40 0x0000017b69e49820
  0x00000077346fe3f0: 0x0000017b70569dc8 0x0000000000000000
  0x00000077346fe400: 0x0000000000000000 0x0000000000000000
  0x00000077346fe410: 0x0000000000000000 0x0000000000000000
  0x00000077346fe420: 0x0000000000000000 0x0000000000000000
  0x00000077346fe430: 0x0000000000000000 0x0000000000000000
  0x00000077346fe440: 0x0000000000000000 0x0000000000000000
  0x00000077346fe450: 0x0000000000000000 0x0000000000000000
  0x00000077346fe460: 0x0000000000000000 0x0000000000000000
  0x00000077346fe470: 0x0000000000000000 0x0000000000000000
  0x00000077346fe480: 0x0000000000000000 0x0000000000000000
  0x00000077346fe490: 0x0000000000000000 0x0000000000000000
  0x00000077346fe4a0: 0x0000000000000000 0x0000000000000000
  0x00000077346fe4b0: 0x0000000000000000 0x0000000000000000

Top frame info:
  Does not look like a Java Frame. Use JavaFrameAnchors to find LastJavaSP:
  Found matching Anchor:0x00000077346fe318
  LastJavaSP 0x00000077346fe2f0
  LastJavaIP 0x00007ff622aa5b28

Threads:
  0x0000017b67469cc0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Timer hack thread" - 0x0000017b70526cc0, daemon, stack(0x0000007736500000,0x0000007736600000)
  0x0000017b6746adc0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-23" - 0x0000017b6d153350, daemon, stack(0x0000007736400000,0x0000007736500000)
  0x0000017b6746a600 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-19" - 0x0000017b6d153468, daemon, stack(0x0000007736200000,0x0000007736300000)
  0x0000017b6746b300 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-22" - 0x0000017b6d153580, daemon, stack(0x0000007736300000,0x0000007736400000)
  0x0000017b6746b1c0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-20" - 0x0000017b6d1536d0, daemon, stack(0x0000007736000000,0x0000007736100000)
  0x0000017b674698c0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-21" - 0x0000017b6d1537e8, daemon, stack(0x0000007736100000,0x0000007736200000)
  0x0000017b67469b80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-18" - 0x0000017b6d153938, daemon, stack(0x0000007735f00000,0x0000007736000000)
  0x0000017b6746a0c0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-17" - 0x0000017b746522d8, daemon, stack(0x0000007735e00000,0x0000007735f00000)
  0x0000017b6746a880 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-16" - 0x0000017b74652218, daemon, stack(0x0000007735d00000,0x0000007735e00000)
  0x0000017b6746b440 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-15" - 0x0000017b74652158, daemon, stack(0x0000007735c00000,0x0000007735d00000)
  0x0000017b6746ab40 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-14" - 0x0000017b74652098, daemon, stack(0x0000007735b00000,0x0000007735c00000)
  0x0000017b6746a480 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-13" - 0x0000017b74601118, daemon, stack(0x0000007735a00000,0x0000007735b00000)
  0x0000017b67469f40 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-10" - 0x0000017b74601518, daemon, stack(0x0000007735700000,0x0000007735800000)
  0x0000017b6ef12d00 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-11" - 0x0000017b746015d8, daemon, stack(0x0000007735800000,0x0000007735900000)
  0x0000017b6ef12fc0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-12" - 0x0000017b74601878, daemon, stack(0x0000007735900000,0x0000007735a00000)
  0x0000017b6ef123c0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-8" - 0x0000017b74601a68, daemon, stack(0x0000007735500000,0x0000007735600000)
  0x0000017b6ef12280 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-9" - 0x0000017b74601c58, daemon, stack(0x0000007735600000,0x0000007735700000)
  0x0000017b6ef12bc0 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-7" - 0x0000017b74601e48, daemon, stack(0x0000007735400000,0x0000007735500000)
  0x0000017b6ef12900 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-6" - 0x0000017b74602038, daemon, stack(0x0000007735300000,0x0000007735400000)
  0x0000017b6ef12a80 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-5" - 0x0000017b74602228, daemon, stack(0x0000007735200000,0x0000007735300000)
  0x0000017b6ef12680 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-4" - 0x0000017b74602418, daemon, stack(0x0000007735100000,0x0000007735200000)
  0x0000017b6ef12e40 STATUS_IN_NATIVE (ALLOW_SAFEPOINT) "Worker-Bootstrap-3" - 0x0000017b74602608, daemon, stack(0x0000007735000000,0x0000007735100000)
  0x0000017b6ef127c0 STATUS_IN_JAVA (ALLOW_SAFEPOINT) "Worker-Bootstrap-2" - 0x0000017b746031a0, daemon, stack(0x0000007734f00000,0x0000007735000000)
  0x0000017b6ef12540 STATUS_IN_SAFEPOINT (ALLOW_SAFEPOINT) "Worker-Bootstrap-1" - 0x0000017b74603260, daemon, stack(0x0000007734e00000,0x0000007734f00000)
  0x0000017b673e9500 STATUS_IN_SAFEPOINT (ALLOW_SAFEPOINT) "Reference Handler" - 0x0000017b698e3410, daemon, stack(0x0000007734a00000,0x0000007734b00000)
  0x0000017b673e2c80 STATUS_IN_JAVA (PREVENT_VM_FROM_REACHING_SAFEPOINT) "Render thread" - 0x0000017b698e3360, stack(0x0000007734600000,0x0000007734700000)

VM thread locals for the failing thread 0x0000017b673e2c80:
  0 (8 bytes): JNIThreadLocalEnvironment.jniFunctions = (bytes)
    0x0000017b673e2c80: 0x0000017b68f90688
  8 (8 bytes): StackOverflowCheckImpl.stackBoundaryTL = (Word) 1 (0x0000000000000001)
  16 (4 bytes): Safepoint.safepointRequested = (int) 2117415364 (0x7e3531c4)
  20 (4 bytes): StatusSupport.statusTL = (int) 1 (0x00000001)
  24 (32 bytes): ThreadLocalAllocation.regularTLAB = (bytes)
    0x0000017b673e2c98: 0x0000017b70500000 0x0000017b70600000
    0x0000017b673e2ca8: 0x0000017b7056ae70 0x0000017b79440000
  56 (8 bytes): PlatformThreads.currentThread = (Object) java.lang.Thread (0x0000017b698e3360)
  64 (8 bytes): JavaFrameAnchors.lastAnchor = (Word) 511980856088 (0x00000077346fe318)
  72 (8 bytes): AccessControlContextStack = (Object) java.util.ArrayDeque (0x0000017b74603ce0)
  80 (8 bytes): ExceptionUnwind.currentException = (Object) null
  88 (8 bytes): IdentityHashCodeSupport.hashCodeGeneratorTL = (Object) java.util.SplittableRandom (0x0000017b74603d08)
  96 (8 bytes): IsolatedCompileClient.currentClient = (Object) null
  104 (8 bytes): IsolatedCompileContext.currentContext = (Object) null
  112 (8 bytes): JNIObjectHandles.handles = (Object) com.oracle.svm.core.handles.ThreadLocalHandles (0x0000017b74603d38)
  120 (8 bytes): JNIThreadLocalPendingException.pendingException = (Object) null
  128 (8 bytes): JNIThreadLocalPinnedObjects.pinnedObjectsListHead = (Object) null
  136 (8 bytes): JNIThreadOwnedMonitors.ownedMonitors = (Object) null
  144 (8 bytes): NoAllocationVerifier.openVerifiers = (Object) null
  152 (8 bytes): ThreadingSupportImpl.activeTimer = (Object) null
  160 (8 bytes): SubstrateDiagnostics.threadOnlyAttachedForCrashHandler = (bytes)
    0x0000017b673e2d20: 0x0000000000000000
  168 (8 bytes): ThreadLocalAllocation.allocatedBytes = (Word) 649066248 (0x0000000026aff708)
  176 (8 bytes): VMThreads.IsolateTL = (Word) 1629527998464 (0x0000017b67700000)
  184 (8 bytes): VMThreads.OSThreadHandleTL = (Word) 304 (0x0000000000000130)
  192 (8 bytes): VMThreads.OSThreadIdTL = (Word) 41644 (0x000000000000a2ac)
  200 (8 bytes): VMThreads.StackBase = (Word) 511980863488 (0x0000007734700000)
  208 (8 bytes): VMThreads.StackEnd = (Word) 511979814912 (0x0000007734600000)
  216 (8 bytes): VMThreads.StartedByCurrentIsolate = (bytes)
    0x0000017b673e2d58: 0x0000000000000000
  224 (8 bytes): VMThreads.nextTL = (Word) 0 (0x0000000000000000)
  232 (8 bytes): VMThreads.unalignedIsolateThreadMemoryTL = (Word) 1629524733008 (0x0000017b673e2c50)
  240 (4 bytes): ActionOnExitSafepointSupport.actionTL = (int) 0 (0x00000000)
  244 (4 bytes): ActionOnTransitionToJavaSupport.actionTL = (int) 0 (0x00000000)
  248 (4 bytes): ImplicitExceptions.implicitExceptionsAreFatal = (int) 0 (0x00000000)
  252 (4 bytes): StackOverflowCheckImpl.yellowZoneStateTL = (int) 2130640638 (0x7efefefe)
  256 (4 bytes): StatusSupport.safepointBehaviorTL = (int) 1 (0x00000001)
  260 (4 bytes): ThreadingSupportImpl.currentPauseDepth = (int) 0 (0x00000000)

No VMOperation in progress

The 15 most recent VM operation status changes (oldest first):
  1674429711924 - Finished Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 3)
  1674429711962 - Started Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 4)
  1674429712000 - Finished Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 4)
  1674429712041 - Started Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 5)
  1674429712057 - Finished Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 5)
  1674429712104 - Started Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 6)
  1674429712120 - Finished Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 6)
  1674429712165 - Started Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 7)
  1674429712228 - Finished Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 7)
  1674429712272 - Started Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 8)
  1674429712284 - Finished Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 8)
  1674429712321 - Started Garbage collection (safepoint: true, queueingThread: 0x0000017b6746a480, executingThread: 0x0000017b6746a480, safepointId: 9)
  1674429712454 - Finished Garbage collection (safepoint: true, queueingThread: 0x0000017b6746a480, executingThread: 0x0000017b6746a480, safepointId: 9)
  1674429712501 - Started Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 10)
  1674429712511 - Finished Garbage collection (safepoint: true, queueingThread: 0x0000017b673e2c80, executingThread: 0x0000017b673e2c80, safepointId: 10)

Counters:

Java frame anchors for the failing thread 0x0000017b673e2c80:
  Anchor 0x00000077346fe318 LastJavaSP 0x00000077346fe2f0 LastJavaIP 0x00007ff622aa5b28

Stacktrace for the failing thread 0x0000017b673e2c80:
  SP 0x00000077346fe2c0 IP 0x00007ffa20610549  IP is not within Java code. Trying frame anchor of last Java frame instead.
  SP 0x00000077346fe2f0 IP 0x00007ff622aa5b28  [image code] org.lwjgl.system.windows.WinBase.nGetModuleHandle(WinBase.java)
  SP 0x00000077346fe350 IP 0x00007ff622aa5020  [image code] org.lwjgl.system.windows.WinBase.GetModuleHandle(WinBase.java:76)
  SP 0x00000077346fe370 IP 0x00007ff622aa6076  [image code] org.lwjgl.system.windows.WindowsLibrary.<clinit>(WindowsLibrary.java:25)
  SP 0x00000077346fe3a0 IP 0x00007ff61f3c61eb  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:361)
  SP 0x00000077346fe3b0 IP 0x00007ff61f3c5148  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:277)
  SP 0x00000077346fe560 IP 0x00007ff622a545d8  [image code] org.lwjgl.system.APIUtil.apiCreateLibrary(APIUtil.java:109)
  SP 0x00000077346fe580 IP 0x00007ff622a6a27e  [image code] org.lwjgl.system.Library.loadNative(Library.java:363)
  SP 0x00000077346fe5d0 IP 0x00007ff622a6a72e  [image code] org.lwjgl.system.Library.loadNativeFromLibraryPath(Library.java:352)
  SP 0x00000077346fe5e0 IP 0x00007ff622a68cc9  [image code] org.lwjgl.system.Library.loadNative(Library.java:266)
  SP 0x00000077346fe670 IP 0x00007ff622a8f3b9  [image code] org.lwjgl.system.Library.loadNative(Library.java:224)
  SP 0x00000077346fe670 IP 0x00007ff622a8f3b9  [image code] org.lwjgl.system.jemalloc.JEmalloc.<clinit>(JEmalloc.java:34)
  SP 0x00000077346fe6b0 IP 0x00007ff61f3c61eb  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:361)
  SP 0x00000077346fe6c0 IP 0x00007ff61f3c5148  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:277)
  SP 0x00000077346fe870 IP 0x00007ff622a8f711  [image code] org.lwjgl.system.jemalloc.JEmallocAllocator.<clinit>(JEmallocAllocator.java:17)
  SP 0x00000077346fe880 IP 0x00007ff61f3c61eb  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:361)
  SP 0x00000077346fe890 IP 0x00007ff61f3c5148  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:277)
  SP 0x00000077346fea40 IP 0x00007ff61fc92d28  [image code] java.lang.Class.ensureInitialized(DynamicHub.java:528)
  SP 0x00000077346fea40 IP 0x00007ff61fc92d28  [image code] java.lang.Class.forName(DynamicHub.java:1135)
  SP 0x00000077346fea70 IP 0x00007ff622a735cf  [image code] java.lang.Class.forName(DynamicHub.java:1105)
  SP 0x00000077346fea70 IP 0x00007ff622a735cf  [image code] org.lwjgl.system.MemoryManage.getInstance(MemoryManage.java:44)
  SP 0x00000077346feac0 IP 0x00007ff622a773c3  [image code] org.lwjgl.system.MemoryUtil$LazyInit.<clinit>(MemoryUtil.java:146)
  SP 0x00000077346feaf0 IP 0x00007ff61f3c61eb  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:361)
  SP 0x00000077346feb00 IP 0x00007ff61f3c5148  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:277)
  SP 0x00000077346fecb0 IP 0x00007ff61f1bff34  [image code] org.lwjgl.system.MemoryUtil.getAllocator(MemoryUtil.java:221)
  SP 0x00000077346fecb0 IP 0x00007ff61f1bff34  [image code] com.mojang.blaze3d.platform.MemoryTracker.<clinit>(MemoryTracker.java:10)
  SP 0x00000077346fecc0 IP 0x00007ff61f3c61eb  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:361)
  SP 0x00000077346fecd0 IP 0x00007ff61f3c5148  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:277)
  SP 0x00000077346fee80 IP 0x00007ff61f1e8f24  [image code] com.mojang.blaze3d.vertex.BufferBuilder.<init>(BufferBuilder.java:45)
  SP 0x00000077346feea0 IP 0x00007ff61f1f2a1f  [image code] com.mojang.blaze3d.vertex.Tesselator.<init>(Tesselator.java:20)
  SP 0x00000077346feed0 IP 0x00007ff61f1f28f3  [image code] com.mojang.blaze3d.vertex.Tesselator.<init>(Tesselator.java:24)
  SP 0x00000077346feed0 IP 0x00007ff61f1f28f3  [image code] com.mojang.blaze3d.vertex.Tesselator.<clinit>(Tesselator.java:12)
  SP 0x00000077346feef0 IP 0x00007ff61f3c61eb  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:361)
  SP 0x00000077346fef00 IP 0x00007ff61f3c5148  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:277)
  SP 0x00000077346ff0b0 IP 0x00007ff61f1e08fd  [image code] com.mojang.blaze3d.systems.RenderSystem.<clinit>(RenderSystem.java:46)
  SP 0x00000077346ff0e0 IP 0x00007ff61f3c61eb  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.invokeClassInitializer(ClassInitializationInfo.java:361)
  SP 0x00000077346ff0f0 IP 0x00007ff61f3c5148  [image code] com.oracle.svm.core.classinitialization.ClassInitializationInfo.initialize(ClassInitializationInfo.java:277)
  SP 0x00000077346ff2a0 IP 0x00007ff62092d7c3  [image code] net.minecraft.client.main.Main.run(Main.java:174)
  SP 0x00000077346ff5b0 IP 0x00007ff620561d5b  [image code] net.minecraft.client.main.Main.main(Main.java:51)
  SP 0x00000077346ff5b0 IP 0x00007ff620561d5b  [image code] mcp.client.Start.main(Start.java:17)
  SP 0x00000077346ff5e0 IP 0x00007ff61f3b62aa  [image code] com.oracle.svm.core.JavaMainWrapper.runCore0(JavaMainWrapper.java:175)
  SP 0x00000077346ff620 IP 0x00007ff61f3b5f33  [image code] com.oracle.svm.core.JavaMainWrapper.runCore(JavaMainWrapper.java:135)
  SP 0x00000077346ff620 IP 0x00007ff61f3b5f33  [image code] com.oracle.svm.core.JavaMainWrapper.doRun(JavaMainWrapper.java:232)
  SP 0x00000077346ff660 IP 0x00007ff61f4104c6  [image code] com.oracle.svm.core.JavaMainWrapper.run(JavaMainWrapper.java:218)
  SP 0x00000077346ff660 IP 0x00007ff61f4104c6  [image code] com.oracle.svm.core.code.IsolateEnterStub.JavaMainWrapper_run_5087f5482cc9a6abc971913ece43acb471d2631b(IsolateEnterStub.java:0)

VM mutexes:
  mutex "thread" is locked by thread 0x0000017b6746adc0
  mutex "referencePendingList" is unlocked.
  mutex "mainVMOperationControlWorkQueue" is locked by thread 0x0000017b6746adc0

AOT compiled code is mapped at 0x00007ff61ef91000 - 0x00007ff623224c3f

Heap settings and statistics:
  Supports isolates: true
  Heap base: 0x0000017b67700000
  Object reference size: 8
  Aligned chunk size: 1048576
  Incremental collections: 10
  Complete collections: 5

Native image heap boundaries:
  ReadOnly Primitives: 0x0000017b67801028 - 0x0000017b687ba118
  ReadOnly References: 0x0000017b687ba118 - 0x0000017b68f541e8
  ReadOnly Relocatables: 0x0000017b68f55000 - 0x0000017b6969cb80
  Writable Primitives: 0x0000017b6969d000 - 0x0000017b697d5920
  Writable References: 0x0000017b697d5920 - 0x0000017b6a4db5f0
  Writable Huge: 0x0000017b6a500030 - 0x0000017b6a753148
  ReadOnly Huge: 0x0000017b6a754030 - 0x0000017b6b9e5228

Heap:
  Young generation:
    Eden:
      edenSpace:
        aligned: 0/0 unaligned: 0/0
    Survivors:
      Survivor-1 From:
        aligned: 7340032/7 unaligned: 131088/1
        aligned chunks:
          0x0000017b6d100000 (0x0000017b6d101028-0x0000017b6d1fffe8)
          0x0000017b6ea00000 (0x0000017b6ea01028-0x0000017b6eb00000)
          0x0000017b6eb00000 (0x0000017b6eb01028-0x0000017b6ebfffc0)
          0x0000017b6ec00000 (0x0000017b6ec01028-0x0000017b6ed00000)
          0x0000017b6f300000 (0x0000017b6f301028-0x0000017b6f3fffd0)
          0x0000017b6f400000 (0x0000017b6f401028-0x0000017b6f4fffd8)
          0x0000017b73e00000 (0x0000017b73e01028-0x0000017b73ed1248)
        unaligned chunks:
          0x0000017b6f270000 (0x0000017b6f270030-0x0000017b6f290040)
      Survivor-1 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-2 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-2 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-3 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-3 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-4 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-4 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-5 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-5 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-6 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-6 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-7 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-7 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-8 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-8 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-9 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-9 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-10 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-10 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-11 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-11 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-12 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-12 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-13 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-13 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-14 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-14 To:
        aligned: 0/0 unaligned: 0/0
      Survivor-15 From:
        aligned: 0/0 unaligned: 0/0
      Survivor-15 To:
        aligned: 0/0 unaligned: 0/0
  Old generation:
    oldFromSpace:
      aligned: 90177536/86 unaligned: 11446936/6
      aligned chunks:
        0x0000017b74600000 (0x0000017b74601028-0x0000017b746fffe8)
        0x0000017b74700000 (0x0000017b74701028-0x0000017b747fffb0)
        0x0000017b74800000 (0x0000017b74801028-0x0000017b748ffdd8)
        0x0000017b74900000 (0x0000017b74901028-0x0000017b749ffff8)
        0x0000017b74a00000 (0x0000017b74a01028-0x0000017b74afffe8)
        0x0000017b74b00000 (0x0000017b74b01028-0x0000017b74c00000)
        0x0000017b74c00000 (0x0000017b74c01028-0x0000017b74cfffe8)
        0x0000017b75300000 (0x0000017b75301028-0x0000017b753fffe8)
        0x0000017b76800000 (0x0000017b76801028-0x0000017b768ffff0)
        0x0000017b76700000 (0x0000017b76701028-0x0000017b767fff78)
        0x0000017b76600000 (0x0000017b76601028-0x0000017b766fffc0)
        0x0000017b76500000 (0x0000017b76501028-0x0000017b765fffc8)
        0x0000017b76400000 (0x0000017b76401028-0x0000017b764ffff0)
        0x0000017b76300000 (0x0000017b76301028-0x0000017b763fffd0)
        0x0000017b74d00000 (0x0000017b74d01028-0x0000017b74dfffb8)
        0x0000017b76c00000 (0x0000017b76c01028-0x0000017b76cfffc8)
        0x0000017b76b00000 (0x0000017b76b01028-0x0000017b76c00000)
        0x0000017b76a00000 (0x0000017b76a01028-0x0000017b76b00000)
        0x0000017b76900000 (0x0000017b76901028-0x0000017b769fffe0)
        0x0000017b75200000 (0x0000017b75201028-0x0000017b752ffff8)
        0x0000017b76f00000 (0x0000017b76f01028-0x0000017b76fffff0)
        0x0000017b76e00000 (0x0000017b76e01028-0x0000017b76efffb8)
        0x0000017b76d00000 (0x0000017b76d01028-0x0000017b76e00000)
        0x0000017b74e00000 (0x0000017b74e01028-0x0000017b74effff8)
        0x0000017b70100000 (0x0000017b70101028-0x0000017b701ffff8)
        0x0000017b70000000 (0x0000017b70001028-0x0000017b70100000)
        0x0000017b6ff00000 (0x0000017b6ff01028-0x0000017b70000000)
        0x0000017b6fe00000 (0x0000017b6fe01028-0x0000017b6fefffe0)
        0x0000017b6fd00000 (0x0000017b6fd01028-0x0000017b6fe00000)
        0x0000017b6fc00000 (0x0000017b6fc01028-0x0000017b6fcffef8)
        0x0000017b6fb00000 (0x0000017b6fb01028-0x0000017b6fbffff8)
        0x0000017b6fa00000 (0x0000017b6fa01028-0x0000017b6fafffa8)
        0x0000017b6f900000 (0x0000017b6f901028-0x0000017b6f9ffff0)
        0x0000017b6f800000 (0x0000017b6f801028-0x0000017b6f8fff88)
        0x0000017b6f700000 (0x0000017b6f701028-0x0000017b6f7fff80)
        0x0000017b6f600000 (0x0000017b6f601028-0x0000017b6f6ffff0)
        0x0000017b6f500000 (0x0000017b6f501028-0x0000017b6f5fffc8)
        0x0000017b6ba00000 (0x0000017b6ba01028-0x0000017b6bafffe0)
        0x0000017b6bb00000 (0x0000017b6bb01028-0x0000017b6bbfffe0)
        0x0000017b6bd00000 (0x0000017b6bd01028-0x0000017b6bdfffb0)
        0x0000017b6c200000 (0x0000017b6c201028-0x0000017b6c2fffe8)
        0x0000017b6ce00000 (0x0000017b6ce01028-0x0000017b6cf00000)
        0x0000017b6cf00000 (0x0000017b6cf01028-0x0000017b6cffffe8)
        0x0000017b71d00000 (0x0000017b71d01028-0x0000017b71dfffd8)
        0x0000017b71e00000 (0x0000017b71e01028-0x0000017b71efffe8)
        0x0000017b71f00000 (0x0000017b71f01028-0x0000017b71fffff0)
        0x0000017b72000000 (0x0000017b72001028-0x0000017b72100000)
        0x0000017b72100000 (0x0000017b72101028-0x0000017b721fffe0)
        0x0000017b72200000 (0x0000017b72201028-0x0000017b722fffb8)
        0x0000017b72300000 (0x0000017b72301028-0x0000017b723fffe8)
        0x0000017b72400000 (0x0000017b72401028-0x0000017b724ffff8)
        0x0000017b72500000 (0x0000017b72501028-0x0000017b725fffe8)
        0x0000017b72600000 (0x0000017b72601028-0x0000017b726fffe8)
        0x0000017b72700000 (0x0000017b72701028-0x0000017b727ffff0)
        0x0000017b72900000 (0x0000017b72901028-0x0000017b729fffe8)
        0x0000017b72d00000 (0x0000017b72d01028-0x0000017b72dffff8)
        0x0000017b72800000 (0x0000017b72801028-0x0000017b72900000)
        0x0000017b72a00000 (0x0000017b72a01028-0x0000017b72afffe8)
        0x0000017b73200000 (0x0000017b73201028-0x0000017b732fffe8)
        0x0000017b73300000 (0x0000017b73301028-0x0000017b733ffff0)
        0x0000017b73400000 (0x0000017b73401028-0x0000017b73500000)
        0x0000017b73500000 (0x0000017b73501028-0x0000017b73600000)
        0x0000017b73100000 (0x0000017b73101028-0x0000017b731ffff8)
        0x0000017b73000000 (0x0000017b73001028-0x0000017b73100000)
        0x0000017b72f00000 (0x0000017b72f01028-0x0000017b72fffd10)
        0x0000017b72e00000 (0x0000017b72e01028-0x0000017b72effff0)
        0x0000017b72c00000 (0x0000017b72c01028-0x0000017b72cfffe0)
        0x0000017b72b00000 (0x0000017b72b01028-0x0000017b72bfffe8)
        0x0000017b75700000 (0x0000017b75701028-0x0000017b757ffff8)
        0x0000017b75800000 (0x0000017b75801028-0x0000017b758fffe8)
        0x0000017b75900000 (0x0000017b75901028-0x0000017b759fffe8)
        0x0000017b75a00000 (0x0000017b75a01028-0x0000017b75afffe8)
        0x0000017b75b00000 (0x0000017b75b01028-0x0000017b75bffff8)
        0x0000017b75100000 (0x0000017b75101028-0x0000017b751ffe40)
        0x0000017b75000000 (0x0000017b75001028-0x0000017b750ffe38)
        0x0000017b74f00000 (0x0000017b74f01028-0x0000017b75000000)
        0x0000017b74500000 (0x0000017b74501028-0x0000017b745ffff8)
        0x0000017b78b00000 (0x0000017b78b01028-0x0000017b78bffff8)
        0x0000017b78c00000 (0x0000017b78c01028-0x0000017b78cfffe8)
        0x0000017b78d00000 (0x0000017b78d01028-0x0000017b78e00000)
        0x0000017b78e00000 (0x0000017b78e01028-0x0000017b78efffe8)
        0x0000017b78f00000 (0x0000017b78f01028-0x0000017b78ffffe8)
        0x0000017b79000000 (0x0000017b79001028-0x0000017b790ffff8)
        0x0000017b79100000 (0x0000017b79101028-0x0000017b79200000)
        0x0000017b79200000 (0x0000017b79201028-0x0000017b792ffff8)
        0x0000017b79300000 (0x0000017b79301028-0x0000017b79362f60)
      unaligned chunks:
        0x0000017b6c300000 (0x0000017b6c300030-0x0000017b6cd00040)
        0x0000017b67680000 (0x0000017b67680030-0x0000017b676c0040)
        0x0000017b6cd70000 (0x0000017b6cd70030-0x0000017b6cd90040)
        0x0000017b6cda0000 (0x0000017b6cda0030-0x0000017b6cde0048)
        0x0000017b6e9a0000 (0x0000017b6e9a0030-0x0000017b6e9c0048)
        0x0000017b6e9d0000 (0x0000017b6e9d0030-0x0000017b6e9faa68)
    oldToSpace:
      aligned: 0/0 unaligned: 0/0

  Unused:
    aligned: 14680064/14
    aligned chunks:
      0x0000017b75c00000 (0x0000017b75c01028-0x0000017b75c01028)
      0x0000017b73f00000 (0x0000017b73f01028-0x0000017b73f01028)
      0x0000017b74000000 (0x0000017b74001028-0x0000017b74001028)
      0x0000017b74100000 (0x0000017b74101028-0x0000017b74101028)
      0x0000017b74200000 (0x0000017b74201028-0x0000017b74201028)
      0x0000017b74300000 (0x0000017b74301028-0x0000017b74301028)
      0x0000017b73600000 (0x0000017b73601028-0x0000017b73601028)
      0x0000017b73700000 (0x0000017b73701028-0x0000017b73701028)
      0x0000017b73800000 (0x0000017b73801028-0x0000017b73801028)
      0x0000017b73900000 (0x0000017b73901028-0x0000017b73901028)
      0x0000017b73a00000 (0x0000017b73a01028-0x0000017b73a01028)
      0x0000017b73b00000 (0x0000017b73b01028-0x0000017b73b01028)
      0x0000017b73c00000 (0x0000017b73c01028-0x0000017b73c01028)
      0x0000017b73d00000 (0x0000017b73d01028-0x0000017b73d01028)

Segfault detected, aborting process. Use runtime option -R:-InstallSegfaultHandler if you don't want to use SubstrateSegfaultHandler.

Does this mean that desktop graphics applications created with lwjgl are not supported?

@fniephaus
Copy link
Member

Apart from JavaFX, I believe desktop graphics APIs are not fully supported by Native Image yet. #4921 should soon unlock AWT and Swing for Linux and macOS.

Anyway, this project appears to be able to compile the Minecraft client to native. Note that it uses internal Native Image APIs for doing so (e.g., here). Maybe you can build on that. I hope this helps.

I'm going to close this issue as we'd need a reproducer to look into this particular problem in more detail but unfortunately, Minecraft is closed-source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants