![VM Computers](https://media.forgecdn.net/avatars/thumbnails/278/794/256/256/637275027058345492.png)
error: incompatible types: long[] cannot be converted to byte[]
Opened this issue ยท 3 comments
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]
.
java version is openj9 16.0.1
The jni branch is now up to date with my development status. Again, very sorry for not committing.