i am testing the new gsvideo version (0.7) but playing a fullhd movie crash randomly with this:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c342eee, pid=368, tid=2476
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# C [msvcr71.dll+0x2eee]
#
# An error report file with more information is saved as:
# C:U use officeDesktopprocessing-1.1hs_err_pid368.log
#
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
i have problem exporting too..it give me this:
Exception in thread "Thread-10" java.lang.OutOfMemoryError: Java heap space
at processing.app.Base.loadBytesRaw(Unknown Source)
at processing.app.Sketch.exportApplet(Unknown Source)
at processing.app.Sketch.exportApplet(Unknown Source)
at processing.app.Editor$DefaultExportHandler.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
OS windows 7 32 bit - GL graphics 0.9.4 - GSvideo 0.7 - Processing 1.1
this is the sketch:
import processing.opengl.*;
import codeanticode.glgraphics.*;
import javax.media.opengl.*;
import codeanticode.gsvideo.*;
char inChar = '1';
char pre_inChar = '1';
PFont fnt;
GSMovie myMovie;
GLTexture tex;
void setup()
{
size(1920, 1080, GLConstants.GLGRAPHICS);
frame.setLocation(0,0);
set_movie();
fnt = loadFont("Aharoni-Bold-48.vlw");
}
public void init(){
frame.removeNotify();
frame.setUndecorated(true);
frame.addNotify();
super.init();
}
void draw()
{
background(0);
println("frameRate: " + frameRate);
if(inChar == '0') {
if(pre_inChar != inChar) {
if(myMovie != null) {
// myMovie.stop();
myMovie.dispose();
System.gc();
}
}
pre_inChar = inChar;
}
if(inChar == '1') {
if(pre_inChar != inChar) {
if(myMovie != null) {
// myMovie.stop();
myMovie.dispose();
System.gc();
}
myMovie = new GSMovie(this, dataPath("") + "hdclip.mov");
myMovie.loop();
}
pre_inChar = inChar;
if(myMovie.available()) {
myMovie.read();
tex.putPixelsIntoTexture(myMovie);
}
image(tex,0,0);
}
if(inChar == '2') {
if(pre_inChar != inChar) {
if(myMovie != null) {
// myMovie.stop();
myMovie.dispose();
System.gc();
}
myMovie = new GSMovie(this, dataPath("") + "hdclip.mov");
myMovie.loop();
}
pre_inChar = inChar;
if(myMovie.available()) {
myMovie.read();
tex.putPixelsIntoTexture(myMovie);
}
image(tex,0,0);
}
if(inChar == '3') {
if(pre_inChar != inChar) {
if(myMovie != null) {
// myMovie.stop();
myMovie.dispose();
System.gc();
}
myMovie = new GSMovie(this, dataPath("") + "hdclip.mov");
myMovie.loop();
}
pre_inChar = inChar;
if(myMovie.available()) {
myMovie.read();
tex.putPixelsIntoTexture(myMovie);
}
image(tex,0,0);
}
textFont(fnt,248);
text(inChar,width/2,height/2);
}
void keyPressed() {
inChar = char(key);
}
void set_movie() {
tex = new GLTexture(this);
myMovie = new GSMovie(this, dataPath("") + "hdclip.mov");
myMovie.loop();
}
1