FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1088 : Video library example code does not work on Processing 1.0.1 for MacOSX 10.5.5
Last modified: 2010-06-05 02:26
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
WONTFIX -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
iCowboy
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-12-01 15:49
Hi,
The example video code given on
http://processing.org/reference/libraries/video/Movie.html
doesn't work on
an Intel MacBook running MacOSX 10.5.5. The code:
import processing.video.*;
Movie myMovie;
void setup() {
size(200, 200);
myMovie = new Movie(this, "totoro.mov");
myMovie.loop();
}
void draw() {
tint(255, 20);
image(myMovie, 0, 0);
}
// Called every time a new frame is available to read
void movieEvent(Movie m) {
m.read();
}
Produces an error:
Exception in thread "Animation Thread"
java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at
sun.awt.image.IntegerInterleavedRaster.setDataElements(IntegerInterleavedRaster.java:416)
at processing.core.PGraphicsJava2D$ImageCache.update(PGraphicsJava2D.java:920)
at processing.core.PGraphicsJava2D.imageImpl(PGraphicsJava2D.java:807)
at processing.core.PGraphics.image(PGraphics.java:2150)
at processing.core.PApplet.image(PApplet.java:7100)
at movie_test.draw(movie_test.java:30)
at processing.core.PApplet.handleDraw(PApplet.java:1406)
at processing.core.PApplet.run(PApplet.java:1311)
at java.lang.Thread.run(Thread.java:613)
Obviously I've made sure I have a movie file in the correct location with
the correct name. I've copied and pasted the code from the reference pages
and checked for errors, with no luck.
I've even copied the video library folder into the current Processing
project folder, but with no luck.
The code *does* work correctly on Processing 0135 which was the previous
version installed on this machine.
Please let me know if there is any more information you need.
Mike.
Additional Comment
#1 From fry 2008-12-01 19:26
try running Examples > Libraries > Video (Movie) > Loop. does that work?
and if not, try reinstalling 0135 and see if that still works.
Additional Comment
#2 From iCowboy 2008-12-02 02:31
Hi,
I've just installed 1.0.1 on a second Mac (MacPro running 10.5.5) and tried both the movie()
code and the loop() code from Examples > Libraries > Video (Movie) > Loop. Both pieces of
code crash and do not run the movie. The error for the loop() program is:
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException:
Coordinate out of bounds!
at
sun.awt.image.IntegerInterleavedRaster.setDataElements(IntegerInterleavedRaster.java:416)
at processing.core.PGraphicsJava2D$ImageCache.update(PGraphicsJava2D.java:929)
at processing.core.PGraphicsJava2D.imageImpl(PGraphicsJava2D.java:807)
at processing.core.PGraphics.image(PGraphics.java:2150)
at processing.core.PApplet.image(PApplet.java:7100)
at Test.draw(Test.java:29)
at processing.core.PApplet.handleDraw(PApplet.java:1406)
at processing.core.PApplet.run(PApplet.java:1311)
at java.lang.Thread.run(Thread.java:613)
This machine also has 0135 installed. When I run both programs under 0135, neither raises an
exception. They work as expected.
Hope this helps.
Mike.
Additional Comment
#3 From fry 2008-12-02 03:36
And just to be clear, you're using a completely unmodified version of the
"Loop" example? (No change to the movie, just using the one provided.)
I can't make this happen on any of the machines I have access to (or the 8
or so OS X machines we were testing on while preparing the 1.0 release) so
I'm pretty baffled.
Additional Comment
#4 From tanepierre 2008-12-02 16:11
(In reply to
comment #3
)
Just checked the Loop example verbatim on my own machine (MBP 2.4 GHz, 4GB
RAM, MacOS X 10.5.5, java version "1.5.0_16") and it seems to work just
fine. Hope this helps.
Additional Comment
#5 From fry 2010-06-05 02:26
closing this bug, because we'll be replacing the current video library with
another sometime later this summer. as such, i won't be doing any more bug
fixes on the current video library.