code-disaster / steamworks4j

A thin Java wrapper to access the Steamworks API
https://code-disaster.github.io/steamworks4j/
MIT License
468 stars 64 forks source link

EXCEPTION_ACCESS_VIOLATION caused by SteamAPI.runCallbacks() #145

Open vminc opened 3 months ago

vminc commented 3 months ago

This is reproducible 100% of the times by launching the app via the Launch button in Steam, but not when open the Exe file directly thorugh Settings/Installed files after installed from Steam (not sure why the difference between the two). The app is a java jpackage app.


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff9025cc610, pid=22772, tid=11040
#
# JRE version: OpenJDK Runtime Environment (12.0+32) (build 12+32)
# Java VM: OpenJDK 64-Bit Server VM (12+32, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x1ec610]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

---------------  S U M M A R Y ------------

Command Line: -Djpackage.app-version=2190 -Djpackage.app-path=C:\Program Files (x86)\Steam\steamapps\common\Game\windows\Game\Game.exe com.company.desktop.DesktopLauncher

Host: Intel(R) Core(TM) i9-10885H CPU @ 2.40GHz, 16 cores, 63G,  Windows 10 , 64 bit Build 22621 (10.0.22621.3527)
Time: Sun May 26 08:07:22 2024 Eastern Daylight Time elapsed time: 3 seconds (0d 0h 0m 3s)

---------------  T H R E A D  ---------------

Current thread (0x000001f95e1bd800):  JavaThread "main" [_thread_in_vm, id=11040, stack(0x0000001d1f000000,0x0000001d1f100000)]

Stack: [0x0000001d1f000000,0x0000001d1f100000],  sp=0x0000001d1f0fe9d8,  free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x1ec610]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.codedisaster.steamworks.SteamAPI.runCallbacks()V+0
j  com.company.desktop.t.b()V+6
j  com.company.u.a.render()V+43
j  com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update()Z+185
j  com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop()V+110
j  com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lcom/badlogic/gdx/ApplicationListener;Lcom/badlogic/gdx/backends/lwjgl3/Lwjgl3ApplicationConfiguration;)V+269
j  com.company.desktop.DesktopLauncher.main([Ljava/lang/String;)V+528
v  ~StubRoutines::call_stub

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0x0000000000000000

Register to memory mapping:

RIP=0x00007ff9025cc610 jvm.dll
RAX=0x0 is NULL
RBX=0x0 is NULL
RCX=0x0 is NULL
RDX=0x0000000000000006 is an unknown value
RSP=0x0000001d1f0fe9d8 is pointing into the stack for thread: 0x000001f95e1bd800
RBP=0x0 is NULL
RSI=0x000001f95e1bd800 is a thread
RDI=0x000001f95e1bd800 is a thread
R8 =0x00007ff99dd283e0 steamworks4j64.dll
R9 =0x00007ff9c5a3131a ucrtbase.dll
R10=0x000001f9792de040 points into unknown readable memory: 00 00 00 00 00 00 00 00
R11=0x0000001d1f0fe9d8 is pointing into the stack for thread: 0x000001f95e1bd800
R12=0x0000000000000001 is an unknown value
R13=0x00007ff99dd283e0 steamworks4j64.dll
R14=0x00007ff99dd2a800 steamworks4j64.dll
R15=0x000001f97a0c0b20 points into unknown readable memory: 8f 2b 68 fd c4 d6 4c b6