Forums > Jitter

jit.qt.movie "voc n" change crashing galore

April 18, 2006 | 5:51 pm

hi,

i am desperate with this issue, can’t see where i got it wrong.
an my patch is crashing on my like crazy but only on the latest versions of mac os x, max and jitter (older versions are brave). the below patch demonstrates my problem.

it seams that the handling of the "voc n" message to jit.qt.movie has changed or at least has become very "sensible" as soon as multiple jit.qt.movie objects try to access a firewire video out component (canopus 110 in my case) directly.
i also remember, that i used to get a "sucess" message for every instance of jit.qt.movie i initialized with "voc n" (n being number of "firewire" output) this is not the case anymore, even if they all output to the voc.

could someone with a firewire out device successfull in use reproduce my crashing ? … oh, and tell me why ? … and how not to ;)

cheers,
and thanks in advance,
tatsu.

//sorry for the hefty patch?

max v2;
#N vpatcher 311 47 1000 608;
#P origin -86 58;
#P window setfont Arial 12.;
#P comment 22 485 297 131137548 (a build with from 10.4.5 with max 4.5.3 and jitter 1.2.3 on the crashing system 10.4.6 does however NOT crash with the above procedure as well);
#P window setfont "Arial Black" 24.;
#P comment 643 182 21 791478296 2;
#P comment 643 36 21 791478296 1;
#P window setfont "Arial Black" 12.;
#P comment 22 450 297 791478284 on os 10.4.5 with max 4.5.3 and jitter 1.2.3 the above procedure does not crash;
#P window setfont "Sans Serif" 9.;
#P hidden newex 576 372 50 196617 t start i stop;
#P window setfont "Sans Serif" 14.;
#P hidden user ubumenu 576 339 74 196622 0 1 1 0;
#X setrgb 31 31 31 83 210 231 234 234 234 4 4 4 141 141 141 112 112 112;
#X add off;
#X add play 1;
#X add play 2;
#X prefix_set 0 0 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 576 415 50 196617 gate 2;
#P hidden newex 576 438 36 196617 s tom1;
#P hidden newex 616 438 36 196617 s tom2;
#P window setfont "Sans Serif" 12.;
#P comment 443 60 209 196620 < - load video;
#P comment 443 148 209 196620 < - vocmode;
#P comment 443 132 209 196620 < - video to voc x;
#P window setfont Arial 10.;
#P message 282 116 158 131137546 video to jit.pwindow;
#B color 4;
#P window setfont "Sans Serif" 9.;
#N vpatcher 10 59 961 337;
#P window setfont "Sans Serif" 9.;
#P newex 491 174 50 196617 s tom1;
#P newex 491 118 50 196617 loadbang;
#P message 491 142 126 196617 getvoclist , getvocmodes , getvoc , getvocmode;
#P message 14 124 121 196617 bang;
#B color 2;
#P newex 14 90 39 196617 loadbang;
#P button 631 47 15 0;
#P message 631 67 48 196617 voc -1;
#B color 2;
#P inlet 631 26 15 0;
#P outlet 72 209 15 0;
#P newex 72 187 108 196617 prepend set;
#P newex 72 165 108 196617 route read;
#P button 70 47 15 0;
#P message 70 67 47 196617 read;
#B color 2;
#P inlet 70 26 15 0;
#N vpatcher 10 59 432 237;
#P window setfont "Sans Serif" 9.;
#P newex 120 73 62 196617 prepend set;
#P newex 260 73 62 196617 prepend set;
#N vpatcher 119 391 347 546;
#P inlet 60 26 15 0;
#P outlet 60 115 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 60 44 45 196617 sel bang;
#P button 149 69 15 0;
#P message 149 91 31 196617 clear;
#P newex 60 69 25 196617 iter;
#P newex 60 91 75 196617 prepend append;
#P connect 6 0 4 0;
#P fasten 4 1 1 0 100 65 65 65;
#P connect 1 0 0 0;
#P connect 0 0 5 0;
#P fasten 2 0 5 0 154 110 65 110;
#P fasten 4 0 3 0 65 65 154 65;
#P fasten 4 1 3 0 100 65 154 65;
#P connect 3 0 2 0;
#P pop;
#P newobj 190 73 62 196617 p build_m;
#N vpatcher 119 391 347 546;
#P inlet 60 26 15 0;
#P outlet 60 115 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 60 44 45 196617 sel bang;
#P button 149 69 15 0;
#P message 149 91 31 196617 clear;
#P newex 60 69 25 196617 iter;
#P newex 60 91 75 196617 prepend append;
#P connect 6 0 4 0;
#P fasten 4 1 1 0 100 65 65 65;
#P connect 1 0 0 0;
#P fasten 2 0 5 0 154 110 65 110;
#P connect 0 0 5 0;
#P fasten 4 1 3 0 100 65 154 65;
#P fasten 4 0 3 0 65 65 154 65;
#P connect 3 0 2 0;
#P pop;
#P newobj 50 73 62 196617 p build_m;
#P newex 50 50 291 196617 route voclist voc vocmodes vocmode;
#P inlet 50 30 15 0;
#P outlet 190 95 15 0;
#P outlet 50 95 15 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P lcolor 1;
#P connect 4 0 0 0;
#P connect 7 0 0 0;
#P connect 3 1 7 0;
#P lcolor 1;
#P connect 3 2 5 0;
#P lcolor 1;
#P connect 5 0 1 0;
#P connect 6 0 1 0;
#P connect 3 3 6 0;
#P lcolor 1;
#P pop;
#P newobj 293 162 150 196617 p build;
#P newex 293 139 50 196617 r frm1;
#P newex 293 107 50 196617 s tom1;
#P message 418 67 122 196617 vocmode $1 , getvocmode , getvoc;
#P message 293 67 122 196617 voc $1 , getvocmode , getvoc;
#P inlet 418 26 15 0;
#P inlet 293 26 15 0;
#P outlet 433 184 15 0;
#P outlet 293 184 15 0;
#P connect 18 0 19 0;
#P connect 9 0 11 0;
#P connect 11 0 10 0;
#P fasten 7 0 12 0 298 160 77 160;
#P connect 12 0 13 0;
#P connect 19 0 13 0;
#P connect 13 0 14 0;
#P connect 2 0 4 0;
#P fasten 10 0 6 0 75 101 298 101;
#P fasten 5 0 6 0 423 98 298 98;
#P connect 4 0 6 0;
#P fasten 16 0 6 0 636 104 298 104;
#P connect 7 0 8 0;
#P connect 8 0 0 0;
#P connect 3 0 5 0;
#P connect 8 1 1 0;
#P connect 21 0 20 0;
#P connect 20 0 22 0;
#P connect 15 0 17 0;
#P connect 17 0 16 0;
#P pop;
#P newobj 281 82 150 196617 p from&to_movie1;
#P message 281 61 158 196617 bang;
#P user ubumenu 282 148 158 196617 0 1 1 0;
#X setrgb 31 31 31 255 141 171 234 234 234 4 4 4 141 141 141 112 112 112;
#X add "Apple FireWire NTSC";
#X add "Apple FireWire PAL";
#X add "Apple FireWire DVCPRO NTSC";
#X add "Apple FireWire DVCPRO PAL";
#X add "Apple FireWire DVCPRO50 NTSC";
#X add "Apple FireWire DVCPRO50 PAL";
#X prefix_set 0 0
0;
#P window setfont Arial 10.;
#P user ubumenu 282 132 158 131137546 0 1 1 0;
#X setrgb 31 31 31 255 141 171 234 234 234 4 4 4 141 141 141 112 112 112;
#X add "DVCPRO HD";
#X add "Digital Cinema Desktop";
#X add FireWire;
#X prefix_set 0 0
0;
#P window setfont "Sans Serif" 12.;
#P comment 443 116 209 196620 < - video to jit.pwindow;
#P comment 443 203 209 196620 < - load video;
#P comment 443 291 209 196620 < - vocmode;
#P comment 443 275 209 196620 < - video to voc x;
#P window setfont Arial 10.;
#P message 282 259 158 131137546 video to jit.pwindow;
#B color 4;
#P window setfont "Sans Serif" 9.;
#N vpatcher 10 59 961 337;
#P window setfont "Sans Serif" 9.;
#P newex 498 181 50 196617 s tom2;
#P newex 498 125 50 196617 loadbang;
#P message 498 149 126 196617 getvoclist , getvocmodes , getvoc , getvocmode;
#P message 21 131 11 196617 bang;
#B color 2;
#P newex 21 97 50 196617 loadbang;
#P button 631 47 15 0;
#P message 631 67 48 196617 voc -1;
#B color 2;
#P inlet 631 26 15 0;
#P outlet 72 209 15 0;
#P newex 72 187 108 196617 prepend set;
#P newex 72 165 108 196617 route read;
#P button 70 47 15 0;
#P message 70 67 47 196617 read;
#B color 2;
#P inlet 70 26 15 0;
#N vpatcher 10 59 432 237;
#P window setfont "Sans Serif" 9.;
#P newex 120 73 62 196617 prepend set;
#P newex 260 73 62 196617 prepend set;
#N vpatcher 119 391 347 546;
#P inlet 60 26 15 0;
#P outlet 60 115 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 60 44 45 196617 sel bang;
#P button 149 69 15 0;
#P message 149 91 31 196617 clear;
#P newex 60 69 25 196617 iter;
#P newex 60 91 75 196617 prepend append;
#P connect 6 0 4 0;
#P fasten 4 1 1 0 100 65 65 65;
#P connect 1 0 0 0;
#P fasten 2 0 5 0 154 110 65 110;
#P connect 0 0 5 0;
#P fasten 4 1 3 0 100 65 154 65;
#P fasten 4 0 3 0 65 65 154 65;
#P connect 3 0 2 0;
#P pop;
#P newobj 190 73 62 196617 p build_m;
#N vpatcher 119 391 347 546;
#P inlet 60 26 15 0;
#P outlet 60 115 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 60 44 45 196617 sel bang;
#P button 149 69 15 0;
#P message 149 91 31 196617 clear;
#P newex 60 69 25 196617 iter;
#P newex 60 91 75 196617 prepend append;
#P connect 6 0 4 0;
#P fasten 4 1 1 0 100 65 65 65;
#P connect 1 0 0 0;
#P connect 0 0 5 0;
#P fasten 2 0 5 0 154 110 65 110;
#P fasten 4 0 3 0 65 65 154 65;
#P fasten 4 1 3 0 100 65 154 65;
#P connect 3 0 2 0;
#P pop;
#P newobj 50 73 62 196617 p build_m;
#P newex 50 50 291 196617 route voclist voc vocmodes vocmode;
#P inlet 50 30 15 0;
#P outlet 190 95 15 0;
#P outlet 50 95 15 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P lcolor 1;
#P connect 7 0 0 0;
#P connect 4 0 0 0;
#P connect 3 1 7 0;
#P lcolor 1;
#P connect 3 2 5 0;
#P lcolor 1;
#P connect 6 0 1 0;
#P connect 5 0 1 0;
#P connect 3 3 6 0;
#P lcolor 1;
#P pop;
#P newobj 293 162 150 196617 p build;
#P newex 293 139 50 196617 r frm2;
#P newex 293 107 50 196617 s tom2;
#P message 418 67 122 196617 vocmode $1 , getvocmode , getvoc;
#P message 293 67 122 196617 voc $1 , getvocmode , getvoc;
#P inlet 418 26 15 0;
#P inlet 293 26 15 0;
#P outlet 433 184 15 0;
#P outlet 293 184 15 0;
#P connect 18 0 19 0;
#P connect 9 0 11 0;
#P connect 11 0 10 0;
#P fasten 7 0 12 0 298 160 77 160;
#P connect 12 0 13 0;
#P connect 19 0 13 0;
#P connect 13 0 14 0;
#P connect 2 0 4 0;
#P fasten 10 0 6 0 75 101 298 101;
#P fasten 5 0 6 0 423 98 298 98;
#P connect 4 0 6 0;
#P fasten 16 0 6 0 636 104 298 104;
#P connect 7 0 8 0;
#P connect 8 0 0 0;
#P connect 3 0 5 0;
#P connect 8 1 1 0;
#P connect 21 0 20 0;
#P connect 20 0 22 0;
#P connect 15 0 17 0;
#P connect 17 0 16 0;
#P pop;
#P newobj 281 225 150 196617 p from&to_movie1;
#P message 281 204 158 196617 bang;
#P user ubumenu 282 291 158 196617 0 1 1 0;
#X setrgb 31 31 31 255 141 171 234 234 234 4 4 4 141 141 141 112 112 112;
#X add "Apple FireWire NTSC";
#X add "Apple FireWire PAL";
#X add "Apple FireWire DVCPRO NTSC";
#X add "Apple FireWire DVCPRO PAL";
#X add "Apple FireWire DVCPRO50 NTSC";
#X add "Apple FireWire DVCPRO50 PAL";
#X prefix_set 0 0
0;
#P window setfont Arial 10.;
#P user ubumenu 282 275 158 131137546 0 1 1 0;
#X setrgb 31 31 31 255 141 171 234 234 234 4 4 4 141 141 141 112 112 112;
#X add "DVCPRO HD";
#X add "Digital Cinema Desktop";
#X add FireWire;
#X prefix_set 0 0
0;
#P window setfont "Sans Serif" 9.;
#P newex 199 250 50 196617 s frm2;
#P newex 196 96 50 196617 s frm1;
#P window setfont "Sans Serif" 12.;
#P comment 443 259 209 196620 < - video to jit.pwindow;
#P user jit.pwindow 32 252 63 48 0 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P newex 33 202 50 196617 r tom2;
#P newex 33 228 176 196617 jit.qt.movie 720 576 @autostart 0;
#B color 5;
#P user jit.pwindow 29 98 63 48 0 1 0 0 1 0;
#P newex 30 47 50 196617 r tom1;
#P newex 30 73 176 196617 jit.qt.movie 720 576 @autostart 0;
#B color 5;
#P user panel 19 182 645 143;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 19 36 645 143;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P hidden user panel 562 328 102 139;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P window setfont "Arial Black" 12.;
#P comment 22 337 297 791478284 on os 10.4.6 with max 4.5.7 and jitter 1.5.2 this patch is sure to crash when: 1. load a movie in each player 2. choose a firewire voc with the apropriate vocmode for both players 3. switch one player back to video output to jit.pwindow (voc -1);
#P connect 5 0 4 0;
#P connect 4 0 6 0;
#P connect 8 0 7 0;
#P connect 7 0 9 0;
#P connect 4 1 11 0;
#P connect 7 1 12 0;
#P fasten 25 0 24 0 286 104 275 104 275 49 286 49;
#P connect 24 0 25 0;
#P fasten 16 0 15 0 286 247 275 247 275 192 286 192;
#P connect 15 0 16 0;
#P hidden connect 25 1 22 0;
#P hidden connect 25 2 23 0;
#P hidden connect 16 1 13 0;
#P hidden connect 16 2 14 0;
#P hidden connect 22 0 25 1;
#P hidden connect 13 0 16 1;
#P hidden connect 23 0 25 2;
#P hidden connect 14 0 16 2;
#P hidden connect 26 0 25 3;
#P hidden connect 17 0 16 3;
#P hidden connect 33 0 34 0;
#P hidden connect 34 1 32 0;
#P hidden connect 32 0 31 0;
#P hidden connect 34 2 32 1;
#P hidden connect 34 0 32 1;
#P hidden connect 32 1 30 0;
#P pop;


April 23, 2006 | 6:56 pm

so i tried my patch on another system running jitter 1.2.3 without a crash.
to me it’s the latest jitter release that is causing a crash when the voc is changed and more than one jit.qt.movie instances are directly accessing the same output component.
but i might be wrong, it would be great if someone who`s firewire video out is working well could test my patch in the original post "jit.qt.movie "voc n" change crashing galore".

thanks in advance,
tatsu.


July 13, 2006 | 5:01 pm

hi there,

this is still a major issue to me and i wonder if noone else can reproduce my problem with the patch i provided at first.

the bottomline is: as soon as multiple jit.qt.movie objects access video-out hardware (firewire canopus in my case) the system becomes extremly unstable up to sure to crash.
this is only the case with jitter 1.5.x not 1.2.x !
so something must have been changed to cause this.

any idea on what -i- might be able to do in order to have multiple jit.qt.movie objects directly output to my firewire interface is very apreciated.

below is an example crashlog
cheers,
t.

OS Version: 10.4.7 (Build 8J135)
Report Version: 4

Command: MaxMSP 4.5.app
Path: /Applications/MaxMSP 4.5/MaxMSP 4.5.app
Parent: WindowServer [69]

Version: 4.5.7 (4.5.7 – 3 February 2006)

PID: 653
Thread: 0

Exception: EXC_BAD_ACCESS (0×0001)
Codes: KERN_INVALID_ADDRESS (0×0001) at 0xf97821a1

Thread 0 Crashed:
0 com.apple.QD 0×91763420 GetPixBaseAddr + 28
1 …ickTimeComponents.component 0x98b005dc Video2GWorldChanged + 292
2 …ple.CoreServices.CarbonCore 0x90bda1bc CallComponentFunctionCommon + 1076
3 …ple.CoreServices.CarbonCore 0x90bd9d24 CallComponent + 260
4 com.apple.QuickTime 0x94776c08 MediaGWorldChanged + 44
5 com.apple.QuickTime 0x94776bb8 CallMediaGWorldChanged + 176
6 com.apple.QuickTime 0x9471e1c4 ForEachMedia_priv + 132
7 com.apple.QuickTime 0x9471ca0c SetMovieGWorldPriv + 276
8 com.apple.QuickTime 0x9473f0e8 SetMovieGWorld_priv + 488
9 jitlib 0x0604b9ac jit_qt_movie_movie_prep + 780
10 jitlib 0x0608e224 jit_qt_movie_prep_output + 356
11 jitlib 0x0608e5d0 jit_qt_movie_voc_open + 480
12 jitlib 0x0608e71c jit_qt_movie_voc + 204
13 MaxPPC3.1pwpc 0x00536af4 object_method + 924
14 jitlib 0x0607ada0 jit_object_method + 172
15 jitlib 0x06019c10 max_jit_attr_set + 60
16 jitlib 0x0601a530 max_jit_usurp_qfn + 112
17 jitlib 0x06019a98 jit_usurp_method + 848
18 jitlib 0x0601a47c max_jit_usurp_method + 116
19 MaxPPC3.1pwpc 0x00436fa8 typedmess_fun + 200
20 MaxPPC3.1pwpc 0x0050a164 outlet_anything + 320
21 MaxPPC3.1pwpc 0x00436fa8 typedmess_fun + 200
22 MaxPPC3.1pwpc 0x0050a164 outlet_anything + 320
23 MaxPPC3.1pwpc 0x004b7d28 send_anything__FP4sendP6symbolsP4atom + 56
24 MaxPPC3.1pwpc 0x00436fa8 typedmess_fun + 200
25 MaxPPC3.1pwpc 0x0050a164 outlet_anything + 320
26 MaxPPC3.1pwpc 0x00436fa8 typedmess_fun + 200
27 MaxPPC3.1pwpc 0x00436c60 typedmess + 92
28 MaxPPC3.1pwpc 0×00438200 aeval + 1264
29 MaxPPC3.1pwpc 0x0040bfc0 atombuf_eval + 124
30 MaxPPC3.1pwpc 0x004d32ec vmessage_int__FP9_vmessagel + 80
31 MaxPPC3.1pwpc 0x00509aa8 outlet_int + 356
32 MaxPPC3.1pwpc 0x005084a0 inlet_int + 212
33 MaxPPC3.1pwpc 0x00509a64 outlet_int + 288
34 ubumenu 0x217e5778 ubumenu_bang + 568
35 ubumenu 0x217e925c ubumenu_drag + 2336
36 MaxPPC3.1pwpc 0x00418adc max_dragguts + 244
37 MaxPPC3.1pwpc 0x004189a8 max_dodrag + 60
38 MaxPPC3.1pwpc 0x0042dc94 app_eventhandler + 1736
39 com.apple.HIToolbox 0x931e5554 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692
40 com.apple.HIToolbox 0x931e4cac SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
41 com.apple.HIToolbox 0x931eba60 SendEventToEventTarget + 40
42 com.apple.HIToolbox 0x93277d48 HandleMouseEventForWindow(OpaqueWindowPtr*, OpaqueEventRef*, unsigned short) + 236
43 com.apple.HIToolbox 0x932772c0 HandleMouseEvent(OpaqueEventRef*) + 368
44 com.apple.HIToolbox 0x931ebdcc ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 496
45 com.apple.HIToolbox 0x931e57a4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1284
46 com.apple.HIToolbox 0x931e4cac SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
47 com.apple.HIToolbox 0x931eba60 SendEventToEventTarget + 40
48 com.apple.HIToolbox 0x9322c7a0 ToolboxEventDispatcher + 92
49 com.apple.HIToolbox 0x9322c72c HLTBEventDispatcher + 16
50 com.apple.HIToolbox 0x9322ace4 RunApplicationEventLoop + 148
51 MaxPPC3.1pwpc 0x0042d534 app_run + 48
52 MaxPPC3.1pwpc 0x0042c314 main + 820

Thread 1:
0 libSystem.B.dylib 0x900551a8 semaphore_timedwait_signal_trap + 8
1 libSystem.B.dylib 0×90071828 pthread_cond_timedwait_relative_np + 556
2 …ple.CoreServices.CarbonCore 0x90bf4550 TSWaitOnSemaphoreCommon + 176
3 …ple.CoreServices.CarbonCore 0x90bfc4ec TimerThread + 60
4 libSystem.B.dylib 0x9002bc28 _pthread_body + 96

Thread 2:
0 libSystem.B.dylib 0x900551a8 semaphore_timedwait_signal_trap + 8
1 libSystem.B.dylib 0×90071828 pthread_cond_timedwait_relative_np + 556
2 …ple.CoreServices.CarbonCore 0x90bf4550 TSWaitOnSemaphoreCommon + 176


Viewing 3 posts - 1 through 3 (of 3 total)