GSMovie not play big movie
in
Contributed Library Questions
•
2 years ago
Hi!
I'm using the new libraries GSVideo 0.9 (Snow Leopard 64 bit) and GLGraphics 0.99 inside Eclipse 64 bit on MacOSX.
I could play the sample movie station.mov, but when I try to play a big movie (898x506 AAC,H.264 for 17,3MB) the java crash with this error:
Process: java [2107]
Path: /usr/bin/java
Identifier: com.apple.javajdk16.cmd
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: eclipse [1698]
Date/Time: 2011-07-12 13:14:42.382 +0200
OS Version: Mac OS X 10.6.8 (10K540)
Report Version: 6
Interval Since Last Report: 33025 sec
Crashes Since Last Report: 47
Per-App Interval Since Last Report: 8353 sec
Per-App Crashes Since Last Report: 46
Anonymous UUID: C02872C7-9861-4D81-B439-26BAC02051DF
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000002581aa98
Crashed Thread: 27
Thread 0: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff800d4d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff800d53ed mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff8044c932 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff8044bdbf CFRunLoopRunSpecific + 575
4 com.apple.HIToolbox 0x00007fff839817ee RunCurrentEventLoopInMode + 333
5 com.apple.HIToolbox 0x00007fff839815f3 ReceiveNextEventCommon + 310
6 com.apple.HIToolbox 0x00007fff839814ac BlockUntilNextEventMatchingListInMode + 59
7 com.apple.AppKit 0x00007fff888caeb2 _DPSNextEvent + 708
8 com.apple.AppKit 0x00007fff888ca801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
9 libawt.jnilib 0x000000010b53e7a5 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
10 com.apple.AppKit 0x00007fff8889068f -[NSApplication run] + 395
11 libawt.jnilib 0x000000010b4e993c +[AWTStarter startAWT:] + 1495
12 libawt.jnilib 0x000000010b4e92b6 -[CPerformer perform] + 93
13 com.apple.Foundation 0x00007fff81c6454f __NSThreadPerformPerform + 219
14 com.apple.CoreFoundation 0x00007fff8044e401 __CFRunLoopDoSources0 + 1361
15 com.apple.CoreFoundation 0x00007fff8044c5f9 __CFRunLoopRun + 873
16 com.apple.CoreFoundation 0x00007fff8044bdbf CFRunLoopRunSpecific + 575
17 java 0x000000010000483e 0x100000000 + 18494
18 java 0x0000000100004295 0x100000000 + 17045
19 java 0x0000000100001a8c 0x100000000 + 6796
Thread 1:
0 libSystem.B.dylib 0x00007fff800d4d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff800d53ed mach_msg + 59
2 libclient64.dylib 0x000000010100d863 jio_snprintf + 37661
3 libclient64.dylib 0x000000010100d723 jio_snprintf + 37341
4 libclient64.dylib 0x000000010100d682 jio_snprintf + 37180
5 libclient64.dylib 0x000000010100d25d jio_snprintf + 36119
6 libclient64.dylib 0x000000010100d082 jio_snprintf + 35644
7 libclient64.dylib 0x00000001010c97f4 JVM_Write + 1920
8 libclient64.dylib 0x00000001010c9356 JVM_Write + 738
9 java 0x000000010000327a 0x100000000 + 12922
10 libSystem.B.dylib 0x00007fff8010dfd6 _pthread_start + 331
11 libSystem.B.dylib 0x00007fff8010de89 thread_start + 13
Thread 2: Java: Exception Handler Thread
0 libSystem.B.dylib 0x00007fff800d4d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff800d53ed mach_msg + 59
2 libSystem.B.dylib 0x00007fff80151a17 mach_msg_server + 468
3 libclient64.dylib 0x000000010100e72b jio_snprintf + 41445
4 libclient64.dylib 0x000000010100e5e3 jio_snprintf + 41117
5 libclient64.dylib 0x000000010100d1c4 jio_snprintf + 35966
6 libSystem.B.dylib 0x00007fff8010dfd6 _pthread_start + 331
7 libSystem.B.dylib 0x00007fff8010de89 thread_start + 13
Thread 3: Java: Gang worker#0 (Parallel GC Threads)
0 libSystem.B.dylib 0x00007fff800d4d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff800d53ed mach_msg + 59
2 libclient64.dylib 0x000000010100d863 jio_snprintf + 37661
3 libclient64.dylib 0x000000010100d723 jio_snprintf + 37341
4 libclient64.dylib 0x000000010100d682 jio_snprintf + 37180
5 libclient64.dylib 0x000000010100d25d jio_snprintf + 36119
6 libclient64.dylib 0x000000010100d103 jio_snprintf + 35773
7 libclient64.dylib 0x0000000101025f04 jio_vsnprintf + 312
8 libclient64.dylib 0x000000010100d1c4 jio_snprintf + 35966
9 libSystem.B.dylib 0x00007fff8010dfd6 _pthread_start + 331
10 libSystem.B.dylib 0x00007fff8010de89 thread_start + 13
Thread 4: Java: Gang worker#1 (Parallel GC Threads)
0 libSystem.B.dylib 0x00007fff800d4d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff800d53ed mach_msg + 59
2 libclient64.dylib 0x000000010100d863 jio_snprintf + 37661
3 libclient64.dylib 0x000000010100d723 jio_snprintf + 37341
4 libclient64.dylib 0x000000010100d682 jio_snprintf + 37180
5 libclient64.dylib 0x000000010100d25d jio_snprintf + 36119
6 libclient64.dylib 0x000000010100d103 jio_snprintf + 35773
7 libclient64.dylib 0x0000000101025f04 jio_vsnprintf + 312
8 libclient64.dylib 0x000000010100d1c4 jio_snprintf + 35966
9 libSystem.B.dylib 0x00007fff8010dfd6 _pthread_start + 331
10 libSystem.B.dylib 0x00007fff8010de89 thread_start + 13
Thread 5: Java: Concurrent Mark-Sweep GC Thread
0 libSystem.B.dylib 0x00007fff800d4d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff800d53ed mach_msg + 59
2 libclient64.dylib 0x000000010100d8f5 jio_snprintf + 37807
3 libclient64.dylib 0x000000010102c4aa jio_vsnprintf + 26334
4 libclient64.dylib 0x000000010100d25d jio_snprintf + 36119
5 libclient64.dylib 0x000000010100d103 jio_snprintf + 35773
6 libclient64.dylib 0x0000000101102a39 JVM_Close + 211677
7 libclient64.dylib 0x0000000101102923 JVM_Close + 211399
8 libclient64.dylib 0x000000010102c325 jio_vsnprintf + 25945
9 libclient64.dylib 0x000000010100d1c4 jio_snprintf + 35966
10 libSystem.B.dylib 0x00007fff8010dfd6 _pthread_start + 331
11 libSystem.B.dylib 0x00007fff8010de89 thread_start + 13
Thread 6: Java: VM Thread
0 libSystem.B.dylib 0x00007fff800d4d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff800d53ed mach_msg + 59
2 libclient64.dylib 0x000000010100d8f5 jio_snprintf + 37807
3 libclient64.dylib 0x000000010102c4aa jio_vsnprintf + 26334
4 libclient64.dylib 0x000000010100d25d jio_snprintf + 36119
5 libclient64.dylib 0x000000010100d103 jio_snprintf + 35773
6 libclient64.dylib 0x00000001010a3ef7 JVM_Lseek + 188645
7 libclient64.dylib 0x00000001010a3c47 JVM_Lseek + 187957
8 libclient64.dylib 0x000000010100d1c4 jio_snprintf + 35966
9 libSystem.B.dylib 0x00007fff8010dfd6 _pthread_start + 331
10 libSystem.B.dylib 0x00007fff8010de89 thread_start + 13
Thread 7: Java: Reference Handler
0 libSystem.B.dylib 0x00007fff800d4d7a mach_msg_trap + 10
1 libSystem.B.dylib 0x00007fff800d53ed mach_msg + 59
2 libclient64.dylib 0x000000010100d863 jio_snprintf + 37661
3 libclient64.dylib 0x000000010100d723 jio_snprintf + 37341
4 libclient64.dylib 0x00000001010b24ff JVM_MonitorWait + 3999
5 libclient64.dylib 0x00000001010b198c JVM_MonitorWait + 1068
6 libclient64.dylib 0x00000001010b15fa JVM_MonitorWait + 154
7 libjvmlinkage.dylib 0x0000000100093b9b JVM_MonitorWait + 59
8 ??? 0x0000000103811d6e 0 + 4353760622
9 ??? 0x000000010380685a 0 + 4353714266
10 ??? 0x000000010380685a 0 + 4353714266
11 ??? 0x0000000103801438 0 + 4353692728
12 libclient64.dylib 0x00000001010a50ba JVM_Lseek + 193192
13 libclient64.dylib 0x00000001010b1148 JVM_StartThread + 2565
14 libclient64.dylib 0x00000001010b103e JVM_StartThread + 2299
15 libclient64.dylib 0x00000001010b0fde JVM_StartThread + 2203
16 libclient64.dylib 0x00000001010b0e80 JVM_StartThread + 1853
17 libclient64.dylib 0x00000001010b0c95 JVM_StartThread + 1362
18 libclient64.dylib 0x000000010100d1c4 jio_snprintf + 35966
19 libSystem.B.dylib 0x00007fff8010dfd6 _pthread_start + 331
20 libSystem.B.dylib 0x00007fff8010de89 thread_start + 13
Thread 8: Java: Finalizer
Thread 9: Dispatch queue: com.apple.libdispatch-manager
Thread 10: Java: Surrogate Locker Thread (Concurrent GC)
Thread 11: Java: Signal Dispatcher
Thread 12: Java: C2 CompilerThread0
Thread 13: Java: C2 CompilerThread1
Thread 14: Java: Low Memory Detector
Thread 15: Java: VM Periodic Task Thread
Thread 16: Java: AWT-Shutdown
Thread 17: Java: Java2D Disposer
Thread 18: Java: AWT-EventQueue-0
Thread 19: Java: Animation Thread
Thread 20: Java: Poller SunPKCS11-Darwin
Thread 21: Java: gstreamer service thread 1
This is my code:
import processing.core.PApplet;
import codeanticode.gsvideo.*;
public class Test extends PApplet
{
GSMovie movie;
public void setup()
{
size(640, 480);
background(0);
// Load and play the video in a loop
movie = new GSMovie(this, "movie.mov");
movie.play();
}
public void draw()
{
if (movie.ready())
{
movie.read();
tint(255, 20);
image(movie, mouseX-movie.width/2, mouseY-movie.height/2);
}
}
}
I think it could be a memory issue but I can't solve it.
Thanks for suggestions.
Paolofuse
1