error trying to compile the mod on the jni branch:
VMRunnable.java:48: error: incompatible types: long[] cannot be converted to byte[]
byte[] image = VB_HOOK.tick_vm(vbClient, vbMachine, (int)deltaX, (int)deltaY, mouseDeltaScroll, mouseVal, array);
I managed to "fix" the error by opening the vbhook jar in recaf and changing public native long[] tick_vm to public native byte[] tick_vm, however upon attempting to start a computer, I get a new error:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=(PC), pid=(PID), tid=(TID)
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (16.0.1+9) (build 16.0.1+9)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (16.0.1+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C [vbhook.dll+0x21a1]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# .minecraft\hs_err_pid(PID).log
#
# If you would like to submit a bug report, please visit:
# https://github.com/AdoptOpenJDK/openjdk-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
I assume this would be a related error, judging by the # C [vbhook.dll+0x21a1].
error trying to compile the mod on the jni branch:
I managed to "fix" the error by opening the vbhook jar in recaf and changing
public native long[] tick_vm
topublic native byte[] tick_vm
, however upon attempting to start a computer, I get a new error:I assume this would be a related error, judging by the
# C [vbhook.dll+0x21a1]
.java version is openj9 16.0.1