Forums > MaxMSP

Crash with wave~

November 14, 2007 | 2:04 pm

I get a reproducable crash when changing the reference of wave~ to a
different buffer with the following stripped down patch (the original
bigger version will crash faster…):

Change the waveform and hit the bang – draw… It will crash sooner or
later on my Powerbook OSX 10.4.10, Max 4.6.3 and also on an old Desktop
Mac with OSX 10.3.9…

It doesn’t crash if I use the default buffer~, only after I changed
it… I can also post a complete crash report if necessary…

Stefan

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 19 60 50 196617 autopattr;
#X prestore flonum 1 0 94.;
#X prestore number 1 0 0;
#X prestore number[1] 1 0 20;
#P objectname u442000001;
#P newex 258 116 43 196617 s start;
#P button 258 92 15 0;
#P user gain~ 98 410 24 100 158 0 1.071519 7.94321 10.;
#P user ezdac~ 93 543 137 576 0;
#P user umenu 51 363 101 196647 1 64 379 1;
#X add Sinus;
#X add Saw;
#X add Quader;
#X add Tri;
#X add Hand;
#N vpatcher 20 74 620 474;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 194 71 50 196617 b;
#P window linecount 1;
#P newex 117 50 87 196617 sel Hand;
#P message 194 91 73 196617 mode select;
#P message 117 91 73 196617 mode draw;
#P hidden newex 50 71 59 196617 prepend set;
#P inlet 50 28 15 0;
#P outlet 50 128 15 0;
#P connect 1 0 2 0;
#P connect 4 0 0 0;
#P connect 3 0 0 0;
#P connect 2 0 0 0;
#P connect 1 0 5 0;
#P connect 5 0 3 0;
#P connect 5 1 6 0;
#P connect 6 0 4 0;
#P pop;
#P hidden newobj 417 296 52 196617 p selector;
#P newex 315 400 98 196617 buffer~ Hand 11.61;
#N vpatcher 452 353 668 630;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 40 188 97 196617 buffer~ Tri 11.61;
#P window linecount 0;
#P newex 40 30 50 196617 loadbang;
#N vpatcher 50 40 202 305;
#P window setfont "Sans Serif" 9.;
#P newex 22 171 28 196617 – 1.;
#P newex 80 119 37 196617 !- 512;
#P newex 22 148 38 196617 / 128.;
#P newex 22 95 68 196617 split 0 256;
#P outlet 22 208 15 0;
#P inlet 22 33 15 0;
#P connect 0 0 2 0;
#P connect 4 0 3 0;
#P connect 2 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 1 0;
#P connect 2 1 4 0;
#P pop;
#P newobj 80 120 60 196617 p Tri;
#P newex 40 143 50 196617 pack 0 0.;
#P newex 40 164 80 196617 peek~ Tri;
#P newex 40 98 50 196617 t i i;
#P newex 40 60 52 196617 uzi 513 0;
#P connect 5 0 0 0;
#P connect 0 2 1 0;
#P connect 1 0 3 0;
#P connect 3 0 2 0;
#P connect 1 1 4 0;
#P connect 4 0 3 1;
#P pop;
#P newobj 316 379 97 196617 p generate Tri;
#N vpatcher 486 386 702 663;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 40 188 106 196617 buffer~ Quader 11.61;
#P window linecount 0;
#P newex 40 30 50 196617 loadbang;
#N vpatcher 50 40 202 305;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 63 119 36 196617 t -1.;
#P window linecount 0;
#P newex 22 119 36 196617 t 1.;
#P newex 22 95 68 196617 split 0 255;
#P outlet 22 208 15 0;
#P inlet 22 33 15 0;
#P connect 0 0 2 0;
#P connect 2 0 3 0;
#P connect 4 0 1 0;
#P connect 3 0 1 0;
#P connect 2 1 4 0;
#P pop;
#P newobj 80 120 60 196617 p Quader;
#P newex 40 143 50 196617 pack 0 0.;
#P newex 40 164 80 196617 peek~ Quader;
#P newex 40 98 50 196617 t i i;
#P newex 40 60 52 196617 uzi 513 0;
#P connect 5 0 0 0;
#P connect 0 2 1 0;
#P connect 1 0 3 0;
#P connect 3 0 2 0;
#P connect 1 1 4 0;
#P connect 4 0 3 1;
#P pop;
#P newobj 316 359 97 196617 p generate Quader;
#N vpatcher 452 353 668 630;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 40 188 97 196617 buffer~ Sinus 11.61;
#P window linecount 0;
#P newex 40 30 50 196617 loadbang;
#N vpatcher 114 125 435 479;
#P window setfont "Sans Serif" 9.;
#P newex 22 95 69 196617 sin;
#P newex 22 59 67 196617 * 0.012272;
#P outlet 22 133 15 0;
#P inlet 22 33 15 0;
#P comment 102 60 64 196617 * 2pi/512;
#P connect 1 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 2 0;
#P pop;
#P newobj 80 120 60 196617 p Sinus;
#P newex 40 143 50 196617 pack 0 0.;
#P newex 40 164 80 196617 peek~ Sinus;
#P newex 40 98 50 196617 t i i;
#P newex 40 60 52 196617 uzi 513 0;
#P connect 5 0 0 0;
#P connect 0 2 1 0;
#P connect 1 0 3 0;
#P connect 3 0 2 0;
#P connect 1 1 4 0;
#P connect 4 0 3 1;
#P pop;
#P newobj 316 319 97 196617 p generate Sinus;
#P user waveform~ 417 319 329 121 3 9;
#W mode select;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P user umenu 339 269 88 196647 1 64 285 1;
#X add Sinus;
#X add Saw;
#X add Quader;
#X add Tri;
#X add Hand;
#N vpatcher 451 278 1051 678;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P newex 50 120 141 196617 wave~ Sinus;
#P newex 50 96 141 196617 phasor~ 0;
#P message 50 73 35 196617 signal;
#P newex 50 50 124 196617 route signal int float;
#P inlet 50 30 15 0;
#P outlet 50 142 15 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P fasten 2 1 4 0 93 92 55 92;
#P fasten 2 2 4 0 131 92 55 92;
#P connect 4 0 5 0;
#P fasten 2 3 5 0 169 116 55 116;
#P connect 5 0 0 0;
#P pop;
#P newobj 46 76 65 196617 p waveosc~;
#P window linecount 1;
#P newex 243 51 62 196617 prepend set;
#P inlet 243 30 15 0;
#P window linecount 0;
#P message 176 53 36 196617 0;
#P window linecount 1;
#P newex 176 32 36 196617 r stop;
#P window linecount 0;
#P newex 178 95 43 196617 r start;
#P newex 224 95 50 196617 r Dauer;
#P window linecount 1;
#P message 224 120 71 196617 setdomain $1;
#P outlet 224 144 15 0;
#P newex 46 50 71 196617 r Fundamental;
#P newex 120 50 31 196617 line~;
#P newex 46 119 84 196617 *~ 1.;
#P inlet 120 30 15 0;
#P outlet 46 141 15 0;
#P fasten 12 0 13 0 248 72 51 72;
#P connect 4 0 13 0;
#P connect 13 0 2 0;
#P connect 2 0 0 0;
#P connect 10 0 3 0;
#P connect 1 0 3 0;
#P connect 3 0 2 1;
#P connect 9 0 10 0;
#P connect 7 0 6 0;
#P connect 6 0 5 0;
#P connect 8 0 5 0;
#P connect 11 0 12 0;
#P pop;
#P newobj 98 387 42 196617 p ycle0;
#P hidden newex 42 224 71 196617 s Fundamental;
#P hidden newex 117 224 46 196617 s Dauer;
#P user function 51 305 151 360 1 1 0 0;
#X frgb 82 82 82;
#X brgb 204 204 204;
#X rgb2 85 85 85;
#X rgb3 255 255 255;
#X rgb4 0 0 0;
#X rgb5 0 0 0;
#X add 0. 0. 0;
#X add 10000. 1. 0;
#X add 20000. 0. 0;
#X domain 20000.;
#X range 0. 1.;
#X done;
#N vpatcher 10 59 264 312;
#P window setfont "Sans Serif" 9.;
#P newex 64 60 62 196617 t b i;
#P newex 64 84 50 196617 * 60000;
#P newex 116 84 43 196617 * 1000;
#P newex 64 106 62 196617 +;
#P inlet 64 40 15 0;
#P inlet 37 40 15 0;
#P outlet 64 128 15 0;
#P connect 2 0 6 0;
#P connect 1 0 5 0;
#P connect 6 0 5 0;
#P connect 5 0 3 0;
#P connect 3 0 0 0;
#P connect 6 1 4 0;
#P connect 4 0 3 1;
#P pop;
#P hidden newobj 117 174 67 196617 p time to ms;
#P hidden flonum 117 198 59 9 0 0 128 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 452 353 668 630;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 40 188 97 196617 buffer~ Saw 11.61;
#P window linecount 0;
#P newex 40 30 50 196617 loadbang;
#N vpatcher 50 40 202 305;
#P window setfont "Sans Serif" 9.;
#P newex 80 145 28 196617 – 2.;
#P newex 80 120 28 196617 * 2.;
#P newex 22 119 28 196617 * 2.;
#P newex 22 95 68 196617 split 0. 0.5;
#P newex 22 59 38 196617 / 512.;
#P outlet 22 208 15 0;
#P inlet 22 33 15 0;
#P connect 0 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 6 0 1 0;
#P connect 4 0 1 0;
#P connect 3 1 5 0;
#P connect 5 0 6 0;
#P pop;
#P newobj 80 120 60 196617 p sawtooth;
#P newex 40 143 50 196617 pack 0 0.;
#P newex 40 164 80 196617 peek~ Saw;
#P newex 40 98 50 196617 t i i;
#P newex 40 60 52 196617 uzi 513 0;
#P connect 5 0 0 0;
#P connect 0 2 1 0;
#P connect 1 0 3 0;
#P connect 3 0 2 0;
#P connect 1 1 4 0;
#P connect 4 0 3 1;
#P pop;
#P newobj 316 339 97 196617 p generate Saw;
#P flonum 42 175 36 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum;
#P comment 80 176 35 196617 Hz;
#P number 117 147 36 9 0 59 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[1];
#P number 42 147 36 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P comment 80 148 35 196617 Min;
#P window linecount 2;
#P comment 156 366 124 196617 change the wave and then switch on audio…;
#P hidden connect 13 0 20 0;
#P hidden connect 25 0 2 0;
#P hidden connect 25 0 5 0;
#P hidden connect 5 0 11 0;
#P hidden connect 12 1 9 0;
#P connect 22 0 21 0;
#P hidden connect 9 1 12 0;
#P connect 12 0 22 0;
#P hidden connect 25 0 3 0;
#P hidden connect 2 0 8 0;
#P hidden connect 8 0 7 0;
#P hidden connect 7 0 10 0;
#P connect 22 0 21 1;
#P hidden connect 20 1 12 1;
#P hidden connect 3 0 8 1;
#P connect 23 0 24 0;
#P hidden connect 13 1 19 0;
#P hidden connect 19 0 14 0;
#P window clipboard copycount 26;

Thread 14 Crashed:
0 wave~ 0x021f6614 wave_perform1 + 1216
1 com.cycling74.MaxAudioAPI 0x0593417c dspchain_tick + 132
(d_ugen.c:228)
2 com.cycling74.MaxAudioAPI 0x059325e0 ad_process + 440 (ad.c:1850)
3 com.cycling74.ad_coreaudio 0x06b49880 coreaudio_onedevice_ioproc
+ 276
4 com.apple.audio.CoreAudio 0x91469cf4
IOA_Device::CallIOProcs(AudioTimeStamp const&, AudioTimeStamp const&,
AudioTimeStamp const&) + 376
5 com.apple.audio.CoreAudio 0x91469a08
HP_IOThread::PerformIO(AudioTimeStamp const&) + 532
6 com.apple.audio.CoreAudio 0x91467a18 HP_IOThread::WorkLoop() + 1156
7 com.apple.audio.CoreAudio 0×91467580
HP_IOThread::ThreadEntry(HP_IOThread*) + 16
8 com.apple.audio.CoreAudio 0x914583dc
CAPThread::Entry(CAPThread*) + 96
9 libSystem.B.dylib 0x9002bd08 _pthread_body + 96

Thread 14 crashed with PPC Thread State 64:
srr0: 0x00000000021f6614 srr1: 0x000000000200f030
vrsave: 0×0000000000000000
cr: 0×84244024 xer: 0×0000000020000000 lr:
0x000000000593417c ctr: 0x000000000000003f
r0: 0x0000000031ce8a00 r1: 0x00000000f0101880 r2:
0x00000000021f1a00 r3: 0x0000000031ce89fc
r4: 0x000000007ffffffe r5: 0x00000000ffffffff r6:
0x00000000ffffffff r7: 0x00000000000000ff
r8: 0×0000000021638104 r9: 0x0000000007af960c r10:
0×0000000000000011 r11: 0x0000000007af8e4c
r12: 0x00000000021f1afc r13: 0×0000000000000000 r14:
0×0000000000000000 r15: 0×0000000000000000
r16: 0×0000000000000000 r17: 0×0000000000000000 r18:
0×0000000024000024 r19: 0x0000000021637c30
r20: 0x00000000002fd968 r21: 0x00000000058b87c8 r22:
0×0000000000000002 r23: 0x00000000021fe28c
r24: 0x0000000007af8d58 r25: 0x0000000007af8d54 r26:
0×0000000021604760 r27: 0×0000000000000040
r28: 0x00000000021d28f0 r29: 0×0000000000000001 r30:
0×0000000000000000 r31: 0x00000000021f1c30


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


January 12, 2008 | 4:42 am

I just spent about 3 hours scratching my head over this same problem -
swapping out index for wave seems to fix it. I’m on a g4 iMac with
Max 4.6.3.

There’s another thread on here about the same problem that seems to
indicate this only happens on PPC macs… The thread title is
"cellblock+wave~ crash max."

Best,
Erik

On 11/14/07, Stefan Tiedje wrote:
> I get a reproducable crash when changing the reference of wave~ to a
> different buffer with the following stripped down patch (the original
> bigger version will crash faster…):


music: http://www.hecanjog.com / http://www.cedarav.com
community: http://www.luvsound.org / http://www.storycorps.net


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