Hi, I've been making my own zelda like rpg game and the game runs actually fine, but when closing it console prints this:

FATAL ERROR in native method: JDWP Can't allocate jvmti memory, jvmtiError=JVMTI_ERROR_INVALID_ENVIRONMENT(116)
JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class status [../../../src/share/back/util.c:1265]
JDWP exit error JVMTI_ERROR_INVALID_ENVIRONMENT(116): Can't allocate jvmti memory [../../../src/share/back/util.c:1779]
FATAL ERROR in native method: JDWP on getting class status, jvmtiError=JVMTI_ERROR_WRONG_PHASE(112)
java(7569,0x114ac1000) malloc: *** error for object 0x7fc961c2863: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug

what does that message mean?

Recommended Answers

All 2 Replies

It looks like you are using JNI for low level interfacing, correct?

No I dont. I think. I draw using Javas own Graphics library and bufferstrategy for double buffering. And keyboard is listened via keyAdapter.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.