waveform~ problems


    Aug 30 2006 | 8:52 pm
    Hi,
    I'm wrestling with waveform~ once again. Problems:
    Plain repeatable crash in my medium size patch when changing the
    start- and end selection and cropping immediately after using
    trigger, while the associated buffer~ is being reset by the size
    object. Crash dump below.
    Stopping recording in a buffer, and immediately cropping and
    normalizing the buffer~ via waveform~. again using trigger, doesn't
    work, sending the normalize message has to be delayed for several mS,
    depending on the size of the buffer(larger buffer needs larger
    delay). otherwise normalization will not happen.
    Reloading/resizing or re-recording in the buffer associated with
    waveform~ will leave ugly vertical lines in the waveform~ display.
    Doesn't matter if I switch off all bells and whistles in the
    inspector, and choose the same color for background and selection.
    This is not just the 4.6.1 version of the object, I stopped using
    waveform~ because it was so errorprone maybe 18 months ago.
    One thing: I'm using a fair amount of send receive pairs for
    communication between several patchers. Will using send/receive
    disturb the strict right-to-left order of t b b 1 etc. objects? I use
    these a lot too.
    Any chance of a quick 4.6.2 fix? Brilliant workarounds? Tips?
    Best,
    Zip
    Date/Time: 2006-08-30 16:13:31.120 +0200
    OS Version: 10.4.7 (Build 8J135)
    Report Version: 4
    Command: MaxMSP
    Path: /Applications/MaxMSP 4.6/MaxMSP.app/Contents/MacOS/MaxMSP
    Parent: WindowServer [93]
    Version: ??? (4.6.1)
    PID: 2922
    Thread: 0
    Exception: EXC_BAD_ACCESS (0x0001)
    Codes: KERN_INVALID_ADDRESS (0x0001) at 0x05f07000
    Thread 0 Crashed:
    0 com.cycling74.waveform~ 0x21de2498 waveform_redraw + 520
    (bundle1.s:283)
    1 com.cycling74.waveform~ 0x21de3ac4 waveform_qfn + 60
    (bundle1.s:283)
    2 com.cycling74.MaxMSP46 0x0007f2f4 sched_dequeue + 208
    (sched.c:351)
    3 com.cycling74.MaxMSP46 0x00037ca0 max_doeventtimerproc +
    136 (main.c:645)
    4 com.cycling74.MaxMSP46 0x00037dac max_eventtimerproc +
    52 (main.c:691)
    5 com.apple.CoreFoundation 0x907ef550 __CFRunLoopDoTimer + 184
    6 com.apple.CoreFoundation 0x907dbec8 __CFRunLoopRun + 1680
    7 com.apple.CoreFoundation 0x907db47c CFRunLoopRunSpecific +
    268
    8 com.apple.HIToolbox 0x931e6740
    RunCurrentEventLoopInMode + 264
    9 com.apple.HIToolbox 0x931e5dd4 ReceiveNextEventCommon
    + 380
    10 com.apple.HIToolbox 0x9322aee4 AcquireNextEventInMode
    + 72
    11 com.apple.HIToolbox 0x9322acd4
    RunApplicationEventLoop + 132
    12 com.cycling74.MaxMSP46 0x00038dc4 app_run + 96 (main.c:
    1458)
    13 com.cycling74.MaxMSP46 0x00039098 main + 704 (main.c:415)
    14 com.cycling74.MaxMSP46 0x00002788 _start + 340 (crt.c:272)
    15 com.cycling74.MaxMSP46 0x00002630 start + 60
    Thread 1:
    0 libSystem.B.dylib 0x900551a8
    semaphore_timedwait_signal_trap + 8
    1 libSystem.B.dylib 0x90071828
    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 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 com.apple.audio.midi.CoreMIDI 0x96aa7ac8
    XServerMachPort::ReceiveMessage(int&, void*, int&) + 84
    3 com.apple.audio.midi.CoreMIDI 0x96a9ac80 MIDIInPortThread::Run
    () + 64
    4 com.apple.audio.midi.CoreMIDI 0x96a9ef44 XThread::RunHelper
    (void*) + 28
    5 com.apple.audio.midi.CoreMIDI 0x96aa887c CAPThread::Entry
    (CAPThread*) + 96
    6 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 3:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 com.apple.CoreFoundation 0x907dbb78 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907db47c CFRunLoopRunSpecific +
    268
    4 com.apple.audio.CoreAudio 0x9145163c HALRunLoop::OwnThread
    (void*) + 264
    5 com.apple.audio.CoreAudio 0x914513dc CAPThread::Entry
    (CAPThread*) + 96
    6 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 4:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9b9e19f8 JNI_CreateJavaVM_Impl
    + 44348
    3 libjvm.dylib 0x9b9e1998 JNI_CreateJavaVM_Impl
    + 44252
    4 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    5 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 5:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44120 jio_snprintf + 377452
    3 libjvm.dylib 0x9ba43db4 jio_snprintf + 376576
    4 libjvm.dylib 0x9bb74ca4 JVM_OnExit + 269584
    5 libjvm.dylib 0x9bb74d48 JVM_OnExit + 269748
    6 libjvm.dylib 0x9bb74714 JVM_OnExit + 268160
    7 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    8 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 6:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44120 jio_snprintf + 377452
    3 libjvm.dylib 0x9ba43db4 jio_snprintf + 376576
    4 libjvm.dylib 0x9ba44374 jio_snprintf + 378048
    5 libjvm.dylib 0x9ba43bf4 jio_snprintf + 376128
    6 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    7 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 7:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44008 jio_snprintf + 377172
    3 libjvm.dylib 0x9ba532e8 JVM_MonitorWait + 2936
    4 libjvm.dylib 0x9ba52cac JVM_MonitorWait + 1340
    5 libjvm.dylib 0x9ba52a20 JVM_MonitorWait + 688
    6 <> 0x09d7b264 0 + 165130852
    7 <> 0x09d74ab0 0 + 165104304
    8 <> 0x09d74ab0 0 + 165104304
    9 <> 0x09d72164 0 + 165093732
    10 libjvm.dylib 0x9ba453c8 jio_snprintf + 382228
    11 libjvm.dylib 0x9ba45214 jio_snprintf + 381792
    12 libjvm.dylib 0x9ba525c8 JVM_StartThread + 2572
    13 libjvm.dylib 0x9ba524bc JVM_StartThread + 2304
    14 libjvm.dylib 0x9ba5244c JVM_StartThread + 2192
    15 libjvm.dylib 0x9ba52314 JVM_StartThread + 1880
    16 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    17 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 8:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44008 jio_snprintf + 377172
    3 libjvm.dylib 0x9ba532e8 JVM_MonitorWait + 2936
    4 libjvm.dylib 0x9ba52cac JVM_MonitorWait + 1340
    5 libjvm.dylib 0x9ba52a20 JVM_MonitorWait + 688
    6 <> 0x09d7b264 0 + 165130852
    7 <> 0x09d74ab0 0 + 165104304
    8 <> 0x09d749c0 0 + 165104064
    9 <> 0x09d749c0 0 + 165104064
    10 <> 0x09d72164 0 + 165093732
    11 libjvm.dylib 0x9ba453c8 jio_snprintf + 382228
    12 libjvm.dylib 0x9ba45214 jio_snprintf + 381792
    13 libjvm.dylib 0x9ba525c8 JVM_StartThread + 2572
    14 libjvm.dylib 0x9ba524bc JVM_StartThread + 2304
    15 libjvm.dylib 0x9ba5244c JVM_StartThread + 2192
    16 libjvm.dylib 0x9ba52314 JVM_StartThread + 1880
    17 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    18 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 9:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44008 jio_snprintf + 377172
    3 libjvm.dylib 0x9ba43e50 jio_snprintf + 376732
    4 libjvm.dylib 0x9bb753f8 JVM_OnExit + 271460
    5 libjvm.dylib 0x9ba52314 JVM_StartThread + 1880
    6 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    7 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 10:
    0 libSystem.B.dylib 0x9002c3d8 semaphore_wait_trap + 8
    1 libjvm.dylib 0x9ba67ea0 JVM_RegisterSignal +
    10160
    2 libjvm.dylib 0x9ba67bb4 JVM_RegisterSignal + 9412
    3 libjvm.dylib 0x9ba52314 JVM_StartThread + 1880
    4 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    5 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 11:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44008 jio_snprintf + 377172
    3 libjvm.dylib 0x9ba43e50 jio_snprintf + 376732
    4 libjvm.dylib 0x9ba691e4 JVM_RegisterSignal +
    15092
    5 libjvm.dylib 0x9ba68f24 JVM_RegisterSignal +
    14388
    6 libjvm.dylib 0x9ba52314 JVM_StartThread + 1880
    7 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    8 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 12:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44008 jio_snprintf + 377172
    3 libjvm.dylib 0x9ba43db4 jio_snprintf + 376576
    4 libjvm.dylib 0x9ba697fc JVM_RegisterSignal +
    16652
    5 libjvm.dylib 0x9ba52314 JVM_StartThread + 1880
    6 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    7 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 13:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44120 jio_snprintf + 377452
    3 libjvm.dylib 0x9ba7b630 JVM_RegisterSignal +
    89920
    4 libjvm.dylib 0x9ba7b2a0 JVM_RegisterSignal +
    89008
    5 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    6 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 14:
    0 libSystem.B.dylib 0x9000b268 mach_msg_trap + 8
    1 libSystem.B.dylib 0x9000b1bc mach_msg + 60
    2 libjvm.dylib 0x9ba44008 jio_snprintf + 377172
    3 libjvm.dylib 0x9ba532e8 JVM_MonitorWait + 2936
    4 libjvm.dylib 0x9ba52cac JVM_MonitorWait + 1340
    5 libjvm.dylib 0x9ba52a20 JVM_MonitorWait + 688
    6 <> 0x09e2f0e0 0 + 165867744
    7 <> 0x09e2fb28 0 + 165870376
    8 <> 0x09e30880 0 + 165873792
    9 <> 0x09d74e10 0 + 165105168
    10 <> 0x09d72164 0 + 165093732
    11 libjvm.dylib 0x9ba453c8 jio_snprintf + 382228
    12 libjvm.dylib 0x9ba45214 jio_snprintf + 381792
    13 libjvm.dylib 0x9ba525c8 JVM_StartThread + 2572
    14 libjvm.dylib 0x9ba524bc JVM_StartThread + 2304
    15 libjvm.dylib 0x9ba5244c JVM_StartThread + 2192
    16 libjvm.dylib 0x9ba52314 JVM_StartThread + 1880
    17 libjvm.dylib 0x9b9e188c JNI_CreateJavaVM_Impl
    + 43984
    18 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 15:
    0 libSystem.B.dylib 0x900551a8
    semaphore_timedwait_signal_trap + 8
    1 libSystem.B.dylib 0x90071828
    pthread_cond_timedwait_relative_np + 556
    2 ...ple.CoreServices.CarbonCore 0x90bf4550
    TSWaitOnSemaphoreCommon + 176
    3 ...ickTimeComponents.component 0x98b18b34
    ReadSchedulerThreadEntryPoint + 5208
    4 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 16:
    0 libSystem.B.dylib 0x900551a8
    semaphore_timedwait_signal_trap + 8
    1 libSystem.B.dylib 0x90071828
    pthread_cond_timedwait_relative_np + 556
    2 com.apple.audio.CoreAudio 0x91462794 CAGuard::WaitFor
    (unsigned long long) + 204
    3 com.apple.audio.CoreAudio 0x914626a4 CAGuard::WaitUntil
    (unsigned long long) + 304
    4 com.apple.audio.CoreAudio 0x914608e8 HP_IOThread::WorkLoop
    () + 852
    5 com.apple.audio.CoreAudio 0x91460580
    HP_IOThread::ThreadEntry(HP_IOThread*) + 16
    6 com.apple.audio.CoreAudio 0x914513dc CAPThread::Entry
    (CAPThread*) + 96
    7 libSystem.B.dylib 0x9002bc28 _pthread_body + 96
    Thread 0 crashed with PPC Thread State 64:
    srr0: 0x0000000021de2498 srr1:
    0x000000000200f030 vrsave: 0x0000000000000000
    cr: 0x44028224 xer: 0x0000000000000004 lr:
    0x0000000021de2384 ctr: 0x0000000000030ea8
    r0: 0x000000000003abb4 r1: 0x00000000bfffef00 r2:
    0x00000000000eb000 r3: 0x00000000bfffef6e
    r4: 0x00000000bfffef6e r5: 0x00000000ffffff80 r6:
    0x00000000ffffffff r7: 0x0000000000000000
    r8: 0x00000000020bde00 r9: 0x000000000006baa9 r10:
    0x0000000005e1c000 r11: 0x000000002221f040
    r12: 0x000000009174da44 r13: 0x0000000000000000 r14:
    0x0000000000000001 r15: 0x0000000000000000
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18:
    0x0000000000000000 r19: 0x0000000000000000
    r20: 0x000000007fffffff r21: 0x00000000ffffffff r22:
    0x0000000000d03b28 r23: 0x0000000000d03b20
    r24: 0x0000000000d03a10 r25: 0x0000000000d03b28 r26:
    0x0000000000000001 r27: 0x00000000000001dc
    r28: 0x0000000030071345 r29: 0x00000000067e9ed0 r30:
    0x00000000065e13a0 r31: 0x0000000021de22b4
    Model: PowerBook5,6, BootROM 4.9.1f3, 1 processors, PowerPC G4
    (1.2), 1.5 GHz, 2 GB
    Graphics: ATI Mobility Radeon 9700, ATY,RV360M11, AGP, 64 MB
    Memory Module: SODIMM0/J25LOWER, 1 GB, DDR SDRAM, PC2700U-25330
    Memory Module: SODIMM1/J25UPPER, 1 GB, DDR SDRAM, PC2700U-25330
    AirPort: AirPort Extreme, 404.2 (3.90.34.0.p16)
    Modem: Jump, , V.92, Version 1.0,
    Bluetooth: Version 1.7.5f10, 2 service, 0 devices, 1 incoming serial
    ports
    Network Service: Ingebouwd Ethernet, Ethernet, en0
    PCI Card: TXN,PCIXXXX-00, cardbus, PC Card
    Parallel ATA Device: MATSHITACD-RW CW-8123,
    Parallel ATA Device: Hitachi HTS541080G9AT00, 74.53 GB
    USB Device: Bluetooth HCI, , Up to 12 Mb/sec, 500 mA
    USB Device: Apple Internal Keyboard/Trackpad, Apple Computer, Up to
    12 Mb/sec, 500 mA
    USB Device: Hub, , Up to 480 Mb/sec, 500 mA
    USB Device: USB2223, SMSC, Up to 480 Mb/sec, 500 mA
    USB Device: Hub, , Up to 480 Mb/sec, 500 mA
    USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/
    sec, 500 mA
    USB Device: Apple Optical USB Mouse, Mitsumi Electric, Up to 1.5 Mb/
    sec, 100 mA
    USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec,
    250 mA