We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › Execution protection violation
Page Index Toggle Pages: 1
Execution protection violation (Read 2481 times)
Execution protection violation
Aug 18th, 2005, 1:24pm
 
Ahoi all.. i know its a library, but it comes from processing, so i thought this report comes here.

import processing.video.*;
Movie myMovie;

void setup()
{
 size(200, 200);
 background(0);
 // Load and play the video in a loop
 myMovie = new Movie(this, "4dmindkettoforog.mov");
 myMovie.loop();
}

void movieEvent(Movie myMovie) {
 myMovie.read();
}


void draw()
{
 tint(255, 20);
 image(myMovie, mouseX-myMovie.width/2, mouseY-myMovie.height/2);
}

the standard video example on the processing.org site.
when i press play and run, the following error msg pops in:

Execution protection violation

even before the 200x200 screen is drawn to screen.
Re: Execution protection violation
Reply #1 - Aug 18th, 2005, 4:55pm
 
do any other video examples work?

have you read the faq? http://processing.org/faq/bugs.html#video

what platform are you on?
Re: Execution protection violation
Reply #2 - Aug 22nd, 2005, 4:57pm
 
Error log part1:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x05c603d0, pid=2976, tid=3108
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode, sharing)
# Problematic frame:
# C  0x05c603d0
#

---------------  T H R E A D  ---------------

Current thread (0x01c16270):  JavaThread "Thread-5" [_thread_in_native, id=3108]

siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x00000008 0x05c603d0

Registers:
EAX=0x05c603d0, EBX=0x26bd0230, ECX=0x0531cb60, EDX=0x00000000
ESP=0x0505f680, EBP=0x0505f6ac, ESI=0x26bd0230, EDI=0x01c16270
EIP=0x05c603d0, EFLAGS=0x00010293

Top of Stack: (sp=0x0505f680)
0x0505f680:   0204826f 01c1632c 0505f6b4 00000000
0x0505f690:   0505f690 26bd0230 0505f6bc 26bd28b0
0x0505f6a0:   00000000 26bd0230 0505f6bc 0505f6e4
0x0505f6b0:   02042a25 26bd0b98 02046445 00000000
0x0505f6c0:   00000001 20aadc00 0505f6c0 26bcea48
0x0505f6d0:   0505f700 26bd28b0 00000000 26bceb20
0x0505f6e0:   0505f6fc 0505f720 02042923 00000000
0x0505f6f0:   00000000 00000000 20aadc00 00000000

Instructions: (pc=0x05c603d0)
0x05c603c0:   00 00 01 00 00 00 00 00 11 00 00 00 41 00 00 00
0x05c603d0:   ff 25 e0 03 c6 05 00 00 a0 03 c6 05 d0 03 c6 05


Stack: [0x04f60000,0x05060000),  sp=0x0505f680,  free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x05c603d0
j  quicktime.QTSession.initialize(ILjava/lang/Class;)V+64
j  quicktime.QTSession.initialize(I)V+2
j  quicktime.QTSession.open(III)V+1
j  quicktime.QTSession.open()V+3
j  processing.video.Movie.<clinit>()V+0
v  ~StubRoutines::call_stub
V  [jvm.dll+0x82696]
V  [jvm.dll+0xd6fd9]
V  [jvm.dll+0x82567]
V  [jvm.dll+0x7576b]
V  [jvm.dll+0x7467e]
V  [jvm.dll+0x7d152]
j  video_test.setup()V+17
j  processing.core.PApplet.display()V+29
j  processing.core.PGraphics.requestDisplay(Lprocessing/core/PApplet;)V+1
j  processing.core.PApplet.run()V+8
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [jvm.dll+0x82696]
V  [jvm.dll+0xd6fd9]
V  [jvm.dll+0x82567]
V  [jvm.dll+0x822c4]
V  [jvm.dll+0x9d216]
V  [jvm.dll+0x101489]
V  [jvm.dll+0x101457]
C  [msvcrt.dll+0x2b530]
C  [kernel32.dll+0x26063]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  quicktime.QTSession.InitializeQTML(I)S+0
j  quicktime.QTSession.initialize(ILjava/lang/Class;)V+64
j  quicktime.QTSession.initialize(I)V+2
j  quicktime.QTSession.open(III)V+1
j  quicktime.QTSession.open()V+3
j  processing.video.Movie.<clinit>()V+0
v  ~StubRoutines::call_stub
j  video_test.setup()V+17
j  processing.core.PApplet.display()V+29
j  processing.core.PGraphics.requestDisplay(Lprocessing/core/PApplet;)V+1
j  processing.core.PApplet.run()V+8
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
=>0x01c16270 JavaThread "Thread-5" [_thread_in_native, id=3108]
 0x011b14b0 JavaThread "AWT-EventQueue-2" [_thread_blocked, id=2336]
 0x0529d8d8 JavaThread "Thread-3" [_thread_blocked, id=2864]
 0x051bbf80 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=3608]
 0x01c255f8 JavaThread "thread applet-video_test" [_thread_blocked, id=1428]
 0x01c1b688 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=3824]
 0x01bfea90 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=3156]
 0x01bf9498 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2516]
 0x01bf9018 JavaThread "AWT-Shutdown" [_thread_blocked, id=3356]
 0x01bf8200 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3520]
 0x01ad0630 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3052]
 0x01aac298 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3840]
 0x01b5abe8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2572]
 0x01a7f4e8 JavaThread "Finalizer" daemon [_thread_blocked, id=1936]
 0x01b7de40 JavaThread "Reference Handler" daemon [_thread_blocked, id=3132]
 0x01a6ce18 JavaThread "main" [_thread_in_native, id=3672]

Other Threads:
 0x01a77188 VMThread [id=2152]
 0x01ac1b40 WatcherThread [id=3884]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation   total 576K, used 378K [0x20a60000, 0x20b00000, 0x211c0000)
 eden space 512K,  61% used [0x20a60000, 0x20aae918, 0x20ae0000)
 from space 64K, 100% used [0x20af0000, 0x20b00000, 0x20b00000)
 to   space 64K,   0% used [0x20ae0000, 0x20ae0000, 0x20af0000)
tenured generation   total 1408K, used 1007K [0x211c0000, 0x21320000, 0x26a60000)
  the space 1408K,  71% used [0x211c0000, 0x212bbd80, 0x212bbe00, 0x21320000)
compacting perm gen  total 8192K, used 1510K [0x26a60000, 0x27260000, 0x2aa60000)
  the space 8192K,  18% used [0x26a60000, 0x26bd9848, 0x26bd9a00, 0x27260000)
   ro space 8192K,  62% used [0x2aa60000, 0x2af693f0, 0x2af69400, 0x2b260000)
   rw space 12288K,  46% used [0x2b260000, 0x2b7efe20, 0x2b7f0000, 0x2be60000)
Re: Execution protection violation
Reply #3 - Aug 22nd, 2005, 4:58pm
 
Error log part2:
Dynamic libraries:
0x00400000 - 0x00a69000 C:\Program Files\Mozilla Firefox\firefox.exe
0x7c800000 - 0x7c8c0000 C:\WINDOWS\system32\ntdll.dll
0x77e40000 - 0x77f42000 C:\WINDOWS\system32\kernel32.dll
0x60070000 - 0x600c4000 C:\Program Files\Mozilla Firefox\js3250.dll
0x60130000 - 0x60156000 C:\Program Files\Mozilla Firefox\nspr4.dll
0x77f50000 - 0x77fec000 C:\WINDOWS\system32\ADVAPI32.dll
0x77c50000 - 0x77cef000 C:\WINDOWS\system32\RPCRT4.dll
0x71bb0000 - 0x71bb9000 C:\WINDOWS\system32\WSOCK32.dll
0x71c00000 - 0x71c17000 C:\WINDOWS\system32\WS2_32.dll
0x77ba0000 - 0x77bfa000 C:\WINDOWS\system32\msvcrt.dll
0x71bf0000 - 0x71bf8000 C:\WINDOWS\system32\WS2HELP.dll
0x602d0000 - 0x60330000 C:\Program Files\Mozilla Firefox\xpcom.dll
0x60200000 - 0x60207000 C:\Program Files\Mozilla Firefox\plc4.dll
0x60210000 - 0x60216000 C:\Program Files\Mozilla Firefox\plds4.dll
0x7c8d0000 - 0x7d0d3000 C:\WINDOWS\system32\SHELL32.dll
0x77c00000 - 0x77c48000 C:\WINDOWS\system32\GDI32.dll
0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
0x77da0000 - 0x77df2000 C:\WINDOWS\system32\SHLWAPI.dll
0x77670000 - 0x777a4000 C:\WINDOWS\system32\ole32.dll
0x60230000 - 0x6024a000 C:\Program Files\Mozilla Firefox\smime3.dll
0x60160000 - 0x601b5000 C:\Program Files\Mozilla Firefox\nss3.dll
0x60250000 - 0x602aa000 C:\Program Files\Mozilla Firefox\softokn3.dll
0x602b0000 - 0x602cb000 C:\Program Files\Mozilla Firefox\ssl3.dll
0x60330000 - 0x60344000 C:\Program Files\Mozilla Firefox\xpcom_compat.dll
0x762b0000 - 0x762fa000 C:\WINDOWS\system32\comdlg32.dll
0x77420000 - 0x77523000 C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.379
0.1830_x-ww_7AE38CCF\COMCTL32.dll
0x77d00000 - 0x77d8c000 C:\WINDOWS\system32\OLEAUT32.dll
0x77b90000 - 0x77b98000 C:\WINDOWS\system32\VERSION.dll
0x73070000 - 0x73097000 C:\WINDOWS\system32\WINSPOOL.DRV
0x770e0000 - 0x771ea000 C:\WINDOWS\system32\SETUPAPI.dll
0x777b0000 - 0x77833000 C:\WINDOWS\system32\CLBCatQ.DLL
0x77010000 - 0x770d6000 C:\WINDOWS\system32\COMRes.dll
0x71b20000 - 0x71b61000 C:\WINDOWS\system32\mswsock.dll
0x5f270000 - 0x5f2c9000 C:\WINDOWS\system32\hnetcfg.dll
0x71ae0000 - 0x71ae8000 C:\WINDOWS\System32\wshtcpip.dll
0x744c0000 - 0x744ea000 C:\WINDOWS\system32\msimtf.dll
0x4b8d0000 - 0x4b921000 C:\WINDOWS\system32\MSCTF.dll
0x6d5b0000 - 0x6d5c1000 C:\Program Files\Java\jre1.5.0_04\bin\NPOJI610.dll
0x5e9a0000 - 0x5e9b7000 C:\WINDOWS\system32\OLEPRO32.DLL
0x6d440000 - 0x6d44c000 C:\Program Files\Java\jre1.5.0_04\bin\jpioji.dll
0x6d420000 - 0x6d435000 C:\Program Files\Java\jre1.5.0_04\bin\jpinscp.dll
0x6d450000 - 0x6d468000 C:\Program Files\Java\jre1.5.0_04\bin\jpishare.dll
0x60020000 - 0x6002d000 C:\Program Files\Mozilla Firefox\components\jar50.dll
0x10000000 - 0x102c5000 C:\WINDOWS\system32\xpsp2res.dll
0x71b70000 - 0x71ba6000 C:\WINDOWS\system32\uxtheme.dll
0x76280000 - 0x76285000 C:\WINDOWS\system32\msimg32.dll
0x6d640000 - 0x6d7c9000 C:\PROGRA~1\Java\JRE15~2.0_0\bin\client\jvm.dll
0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
0x6d280000 - 0x6d288000 C:\PROGRA~1\Java\JRE15~2.0_0\bin\hpi.dll
0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
0x6d610000 - 0x6d61c000 C:\PROGRA~1\Java\JRE15~2.0_0\bin\verify.dll
0x6d300000 - 0x6d31d000 C:\PROGRA~1\Java\JRE15~2.0_0\bin\java.dll
0x6d630000 - 0x6d63f000 C:\PROGRA~1\Java\JRE15~2.0_0\bin\zip.dll
0x6d000000 - 0x6d167000 C:\Program Files\Java\jre1.5.0_04\bin\awt.dll
0x76290000 - 0x762ad000 C:\WINDOWS\system32\IMM32.dll
0x73860000 - 0x738ac000 C:\WINDOWS\system32\ddraw.dll
0x73b30000 - 0x73b36000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d240000 - 0x6d27d000 C:\Program Files\Java\jre1.5.0_04\bin\fontmanager.dll
0x6d1f0000 - 0x6d203000 C:\Program Files\Java\jre1.5.0_04\bin\deploy.dll
0x77210000 - 0x772b8000 C:\WINDOWS\system32\WININET.dll
0x761b0000 - 0x76243000 C:\WINDOWS\system32\CRYPT32.dll
0x76190000 - 0x761a2000 C:\WINDOWS\system32\MSASN1.dll
0x772c0000 - 0x7736d000 C:\WINDOWS\system32\urlmon.dll
0x6d5d0000 - 0x6d5ed000 C:\Program Files\Java\jre1.5.0_04\bin\RegUtils.dll
0x745e0000 - 0x748a6000 C:\WINDOWS\system32\msi.dll
0x6d4c0000 - 0x6d4d3000 C:\Program Files\Java\jre1.5.0_04\bin\net.dll
0x76ed0000 - 0x76ef9000 C:\WINDOWS\system32\DNSAPI.dll
0x76f70000 - 0x76f77000 C:\WINDOWS\System32\winrnr.dll
0x76f10000 - 0x76f3e000 C:\WINDOWS\system32\WLDAP32.dll
0x76f80000 - 0x76f85000 C:\WINDOWS\system32\rasadhlp.dll
0x67800000 - 0x6782b000 C:\WINDOWS\system32\QTJava.DLL
0x67830000 - 0x6788a000 C:\WINDOWS\system32\QTJavaNative.dll
Re: Execution protection violation
Reply #4 - Aug 22nd, 2005, 4:59pm
 
VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~2.0_0\lib\deploy.jar;C:\PROGRA~1\Java\J
RE15~2.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_04 -Djavaplugin.nodotversion=150_04 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~2.0_0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE15~2.0_0\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~2.0_0\lib\deploy.jar;C:\PROGRA~1\Java\J
RE15~2.0_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0_04 -Djavaplugin.nodotversion=150_04 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~2.0_0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol  vfprintf
java_command: <unknown>

Environment Variables:
CLASSPATH="C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip"
PATH=C:\PROGRA~1\Java\JRE15~2.0_0\bin;C:\Program Files\Mozilla Firefox\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\backburner 2\;C:\Sun\AppServer\bin;.
USERNAME=bituman
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 12 Stepping 0, AuthenticAMD



---------------  S Y S T E M  ---------------

OS: Windows Server 2003 family Build 3790 Service Pack 1

CPU:total 1 family 15, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 1047252k(482348k free), swap 3052584k(2164936k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_04-b05) for windows-x86, built on Jun  3 2005 02:10:41 by "java_re" with MS VC++ 6.0
Re: Execution protection violation
Reply #5 - Aug 22nd, 2005, 5:01pm
 
import processing.video.*;
Movie myMovie;

void setup() {
 size(200, 200);
 framerate(30);
 myMovie = new Movie(this, "t.mov");
 // Prints the duration of the movie
//  println(myMovie.duration());
//  myMovie.play();
}

void draw() {
//  if(myMovie.available()) {
//    myMovie.read();
//  }
//  image(myMovie, 0, 0);
}


As you see i commented out line by line the code, and reached the problematic one.

myMovie = new Movie(this, "t.mov");

<< hence all sample codes crash.
Re: Execution protection violation
Reply #6 - Aug 23rd, 2005, 6:04am
 
again, do any other video examples work? there are some that uses movie, some that use capture. are they all broken?

and most important, have you read the faq? http://processing.org/faq/bugs.html#video
there are lots of common problems and solutions described there. from the error, most likely your quicktime installation is messed up.
Re: Execution protection violation
Reply #7 - Aug 23rd, 2005, 2:24pm
 
No examples work. Not even those using capture, err msg is the same. Ive read the link, read it through, installed qt for java etc...
Reinstalling QT didnt help at all.
Can someone then give me a link to a working QT player that i could install?
Re: Execution protection violation
Reply #8 - Aug 25th, 2005, 11:42am
 
The same system... reinstalled jre, jsdk, qt.
Processing 091 still reports an execution protection violation,
Processing 068 works fine.
Re: Execution protection violation
Reply #9 - Oct 15th, 2005, 8:21pm
 
not sure what's up here but since it's a crash inside quicktime, i don't think it's anything we can fix. if you run into it again, please log it in the bugs database (dev.processing.org/bugs) and include a link to this original post.
Page Index Toggle Pages: 1