Loading...
Logo
Processing Forum
Hi

I am running a sketch in which a number of movie sequences is used to manipulate a 3D structure in OpenGL. After running for a while I get this error:

 #
# A fatal error has been detected by the Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 1920000 bytes for jint in C:\BUILD_AREA\jdk6_24\hotspot\src\share\vm\prims\jni.cpp. Out of swap space?
#
#  Internal Error (allocation.inline.hpp:39), pid=5772, tid=4564
#  Error: jint in C:\BUILD_AREA\jdk6_24\hotspot\src\share\vm\prims\jni.cpp
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 )
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError

 I have tried to increase the maximum available memory, but it does not seem to help? Rather, when I increase it, it crashes earlier?   

 Any ideas?

 

Replies(2)

Well after posting this,I tried the counter intuitive approach and decreased the available memory. Strangely enough it doesn’t crash anymore? So problem solved, but I would still like to understand the reason why.

For the record, the crash happens in an internal part of Java, in JNI, ie. in the low level part of the API, close of the system. Perhaps it is an issue with the OpenGL interface.