code-disaster / steamworks4j

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

EXCEPTION_ACCESS_VIOLATION jvm.dll Steam Test Purchase #87

Closed sebaber closed 4 years ago

sebaber commented 4 years ago

I have that error when the app try to invoke the method:

@Override public void onMicroTxnAuthorization(int appID, long orderID, boolean authorized) { if(authorized){ finishPurchase(orderID); } }

This is the crash:

+++++ Begin Crash ++++++ A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d5aef5d, pid=1928, tid=0x0000000000001b34

JRE version: OpenJDK Runtime Environment (8.0_242-b08) (build 1.8.0_242-b08) Java VM: OpenJDK 64-Bit Server VM (25.242-b08 mixed mode windows-amd64 compressed oops) Problematic frame: V [jvm.dll+0x12ef5d]

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

If you would like to submit a bug report, please visit:

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

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value RBX=0x0000000000000000 is an unknown value RCX=0x000001a94ac85000 is a thread RDX=0x00000000ed5b9ca8 is an oop java.lang.NoSuchMethodError

Stack: [0x00000093e55f0000,0x00000093e5ac0000], sp=0x00000093e5abf190, free space=4924k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [jvm.dll+0x12ef5d] C [steamworks4j64.dll+0x130c] C [steamworks4j64.dll+0x622e] C [steamworks4j64.dll+0x123d] C [steamworks4j64.dll+0x633d] C [steam_api64.dll+0x66df] C [steam_api64.dll+0x6a51] C [steam_api64.dll+0x9658] C [steam_api64.dll+0x902a] C 0x000001a936479c8e

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.codedisaster.steamworks.SteamAPI.runCallbacks()V+0 j com.mobilecostudios.littlewaronline.desktop.f.run()V+0 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub

--------------- P R O C E S S --------------- Internal exceptions (250 events): Event: 22.918 Thread 0x000001a94ac85000 Exception <a 'java/lang/NoClassDefFoundError': com/codedisaster/steamworks/SteamException> (0x00000000ed5b9a48) thrown at [D:\a\1\s\lookaside\java-1.8.0-openjdk\hotspot\src\share\vm\classfile\systemDictionary.cpp, line 199] Event: 22.918 Thread 0x000001a94ac85000 Exception <a 'java/lang/NoSuchMethodError': onMicroTxnAuthorization> (0x00000000ed5b9ca8) thrown at [D:\a\1\s\lookaside\java-1.8.0-openjdk\hotspot\src\share\vm\prims\jni.cpp, line 1584] +++++ End Crash +++++

To export to Steam im using:

When i run with Android Studio i can complete the purchase without problem, i cant when i run in Steam client

sebaber commented 4 years ago

my bad it was a problem with obfuscation, i dont put steamworksj4 clases, so never will find that method with that name hehe. Sorry