[jit.cellblock], [coll] and empty cells problems

Dec 7, 2009 at 2:56pm

[jit.cellblock], [coll] and empty cells problems

As I already wrote “1 year ago” on the previous forum, there are strange things happening with empty cells.
(-> http://cycling74.com/forums/topic.php?id=14398 )

I finally took some time to build a patch explaining what I meant “1 year ago”. (now using 5.1 under X.5.8 – I found workarounds for Max4).

BTW, while playing with this patch, I crashed Max5.1 two times (see at the bottom of this mail).

– Pasted Max Patch, click to expand. –

The crashes:

I clicked 5 or 6 times in a cell to nervously select its contents and got this crashlog :

Thread 0 Crashed:
0 com.cycling74.MaxMSP 0×00157797 maxviewer_getcelltext + 41
1 com.cycling74.MaxMSP 0x000b94bf object_method + 901
2 com.cycling74.MaxMSP 0x00133a5a jdataview_getcelltext + 104
3 com.cycling74.MaxMSP 0x00110b71 DataViewComponent::paintCell(juce::Graphics&, int, int, int, int, bool) + 177
4 com.cycling74.MaxMSP 0x0039a216 juce::TableListRowComp::paint(juce::Graphics&) + 402
5 com.cycling74.MaxMSP 0x002f1692 juce::Component::paintEntireComponent(juce::Graphics&) + 684
6 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
7 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
8 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
9 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
10 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
11 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
12 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
13 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
14 com.cycling74.MaxMSP 0x001b7432 PatcherLayerComponent::paintEntireComponent(juce::Graphics&) + 80
15 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
16 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
17 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
18 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
19 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
20 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
21 com.cycling74.MaxMSP 0x002f182b juce::Component::paintEntireComponent(juce::Graphics&) + 1093
22 com.cycling74.MaxMSP 0x00389eb0 juce::ComponentPeer::handlePaint(juce::LowLevelGraphicsContext&) + 48
23 com.cycling74.MaxMSP 0x002d41b6 juce::HIViewComponentPeer::RepaintManager::paint(CGContext*, int, int, int, int) + 862
24 com.cycling74.MaxMSP 0x002d46bb juce::HIViewComponentPeer::hiViewDraw(OpaqueEventRef*) + 619
25 com.cycling74.MaxMSP 0x002d48af juce::HIViewComponentPeer::hiViewEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 425
26 com.apple.HIToolbox 0x93edc13d DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1181
27 com.apple.HIToolbox 0x93edb57b SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 405
28 com.apple.HIToolbox 0x93edb3e0 SendEventToEventTargetWithOptions + 58
29 com.apple.HIToolbox 0x93efeded HIView::SendDraw(short, OpaqueGrafPtr*, __HIShape const*, CGContext*) + 475
30 com.apple.HIToolbox 0x93efe8c6 HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 728
31 com.apple.HIToolbox 0x93efea2f HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1089
32 com.apple.HIToolbox 0x93efea2f HIView::RecursiveDrawComposited(__HIShape const*, unsigned long, HIView*, CGContext*, unsigned char, float) + 1089
33 com.apple.HIToolbox 0x93efdccc HIView::DrawComposited(short, OpaqueGrafPtr*, __HIShape const*, unsigned long, HIView*, CGContext*) + 668
34 com.apple.HIToolbox 0x93efd9df HIView::Draw(short, OpaqueGrafPtr*, unsigned long) + 83
35 com.apple.HIToolbox 0x93efd92f HIView::Render(unsigned long, CGContext*) + 45
36 com.apple.HIToolbox 0x93f05d67 FlushWindowObject(WindowData*, void**, unsigned char) + 749
37 com.apple.HIToolbox 0x93f0577e FlushAllBuffers(__CFRunLoopObserver*, unsigned long, void*) + 168
38 com.apple.CoreFoundation 0x948c9772 __CFRunLoopDoObservers + 466
39 com.apple.CoreFoundation 0x948ca9a2 CFRunLoopRunSpecific + 546
40 com.apple.CoreFoundation 0x948cbaa8 CFRunLoopRunInMode + 88
41 com.apple.HIToolbox 0x93f042ac RunCurrentEventLoopInMode + 283
42 com.apple.HIToolbox 0x93f040c5 ReceiveNextEventCommon + 374
43 com.apple.HIToolbox 0x93f62b56 _AcquireNextEvent + 58
44 com.apple.HIToolbox 0x93fbc735 _TrackMouseLocationOrAreaReturningEvent + 571
45 com.apple.HIToolbox 0x93fbc488 TrackMouseLocationWithOptions + 94
46 com.cycling74.MaxMSP 0x002ccd20 juce::juce_dispatchNextMessageOnSystemQueue(bool, bool) + 104
47 com.cycling74.MaxMSP 0x002d69c7 juce::MessageManager::dispatchNextMessage(bool, bool*, bool) + 79
48 com.cycling74.MaxMSP 0x002d6a86 juce::MessageManager::runDispatchLoop() + 42
49 com.cycling74.MaxMSP 0x002d53e1 juce::JUCEApplication::main(juce::String&, juce::JUCEApplication*) + 605
50 com.cycling74.MaxMSP 0x002d54bb juce::JUCEApplication::main(int, char**, juce::JUCEApplication*) + 125
51 com.cycling74.MaxMSP 0x001ded86 main + 76
52 com.cycling74.MaxMSP 0×00005856 _start + 216
53 com.cycling74.MaxMSP 0x0000577d start + 41

And I got the following crashlog after I clicked in the first message of the patch, i.e. clear, 1 1, 2 2 3 4, 3 3 4 5

Thread 0 Crashed:
0 com.cycling74.MaxMSP 0×00132553 jdataview_notifycomponents(_jdataview*, symbol*, void*) + 39
1 com.cycling74.MaxMSP 0×00133567 jcolumn_update + 31
2 com.cycling74.MaxAPI 0x00edf4f3 jcolumn_setminwidth + 36
3 com.cycling74.jit.cellblock 0x183ee084 cellblock_addcol + 184
4 com.cycling74.jit.cellblock 0x183e7d5b cellblock_qcols + 141
5 com.cycling74.MaxMSP 0x0002a0e7 sched_dequeue + 119
6 com.cycling74.MaxMSP 0x000121af max_tick + 77
7 com.cycling74.MaxMSP 0x001de96a maxapplication_eventtimerproc(__EventLoopTimer*, void*) + 22
8 com.apple.CoreFoundation 0x948cb8f5 CFRunLoopRunSpecific + 4469
9 com.apple.CoreFoundation 0x948cbaa8 CFRunLoopRunInMode + 88
10 com.apple.HIToolbox 0x93f042ac RunCurrentEventLoopInMode + 283
11 com.apple.HIToolbox 0x93f040c5 ReceiveNextEventCommon + 374
12 com.apple.HIToolbox 0×94047377 ReceiveNextEvent + 58
13 com.cycling74.MaxMSP 0x002ccee2 juce::juce_dispatchNextMessageOnSystemQueue(bool, bool) + 554
14 com.cycling74.MaxMSP 0x002d69c7 juce::MessageManager::dispatchNextMessage(bool, bool*, bool) + 79
15 com.cycling74.MaxMSP 0x002d6a86 juce::MessageManager::runDispatchLoop() + 42
16 com.cycling74.MaxMSP 0x002d53e1 juce::JUCEApplication::main(juce::String&, juce::JUCEApplication*) + 605
17 com.cycling74.MaxMSP 0x002d54bb juce::JUCEApplication::main(int, char**, juce::JUCEApplication*) + 125
18 com.cycling74.MaxMSP 0x001ded86 main + 76
19 com.cycling74.MaxMSP 0×00005856 _start + 216
20 com.cycling74.MaxMSP 0x0000577d start + 41

#47087

You must be logged in to reply to this topic.