[PD-dev] more information on the gui getting stuck on 0.42.5

Ivica Ico Bukvic ico at vt.edu
Wed Mar 17 20:09:47 CET 2010


OK, more investigation brings up the following (I am including
surrounding commands jut in case I missed something):

pdtk_ping
.x9c14968.c coords 9c19e40KNOB 126 105 133 105
.x9c14968.c itemconfigure 9c1edc0NUMBER -fill #00fc04 -text {0} 
.x9c14968.c coords 9cfc848KNOB 666 106 673 106
.x9c14968.c itemconfigure 9cfffe0NUMBER -fill #b8b8b8 -text {0} 
.x9c14968.c coords 9cfe7f8KNOB 813 29 827 29
.x9c14968.c coords 9cfe7f8KNOB 813 25 827 25
.x9c14968.c itemconfigure 9cf5b58BUT -fill #000000
.x9c14968.c coords 9cfe7f8KNOB 813 19 827 19
.x9c14968.c itemconfigure 9cf60d8NUMBER -fill #fc8000 -text {0} 
.x9c14968.c coords 9cfed60KNOB 828 106 835 106
.x9c14968.c coords 9cfe2b0KNOB 801 106 808 106
.x9c14968.c coords 9cfdd68KNOB 774 106 781 106
.x9c14968.c coords 9cfd820KNOB 747 106 754 106
.x9c14968.c coords 9cfd2d8KNOB 720 106 727 106
.x9c14968.c coords 9cfcd90KNOB 693 106 700 106
.x9c14968.c coords 9cfc300KNOB 639 106 646 106
.xtext file
'/home/l2orkist/L2Ork/Exercises/4/Ico/Conductor_Presets_Full/ambiance.0.conductor.coll.preset.txt'}
.x9c14968.c coords 9cfbdb8KNOB 612 106 619 106
.x9c14968.c itemconfigure 9cf5b58BUT -fill #fc0.x9c.x9c14968.c coords
9cfb870KNOB 585 106 592 106
pdtk_ping
.x9c14968.c itemconfigure 9cf6868LABEL -text {All sounds off} 
missing close-brace
invalid color name "#fc0.x9c14968.c"
bad option "crepdtk_ping": must be addtag, bbox, bind, canvasx, canvasy,
cget, configure, coords, create, dchars, delete, dtag, find, focus,
gettags, icursor, index, insert, itemcget, itemconfigure, lower, move,
postscript, raise, scale, scan, select, type, xview, or yview
.x9c14968.c itemconfigure 9cf5b58BUT -fill #000000
pdtk_post {
coll: finished reading 28 lines from text file
'/home/l2orkist/L2Ork/Exercises/4/Ico/Conductor_Presets_Full/ambiance.0.conductor.coll.preset.txt'}
.x9c14968.c itemconfigure 9cf5b58BUT -fill #fc0400
.x9c14968.c itemconfigure 9cf6868LABEL -text {All sounds off} 
pdtk_post {
coll: finished reading 28 lines from text file
'/home/l2orkist/L2Ork/Exercises/4/Ico/Conductor_Presets_Full/ambiance.0.conductor.coll.preset.txt'}
.x9c14968.c itemconfigure 9cf5b58BUT -fill #000000
.x9c14968.c itemconfigure 9cf6868LABEL -text {All sounds off} 
.x9c14968.c itemconfigure 9cf5b58BUT -fill #fc0400
.x9c14968.c itemconfigure 9cf5b58BUT -fill #000000

Notice crepdtk_ping. It is almost as if create <something> got caught in
the middle of a pdtk_ping command that appears to flush the queue, so
the create <something> e.g. a rectangle command got truncated and
outputting garbage resulted in an invalid command after which the gui
stops corresponding. Disabling pdtk_ping in s_inter.c indeed disables
all GUI operations so this appears to be the culprit (as it runs in
while(1) loop and hence the asynchronous operation. I wonder if there is
a better way to invoke pdtk_ping than an apparently brute force

if (sys_bytessincelastping >= GUI_BYTESPERPING)

from the s_inter.c sys_flushqueue()?

Also, is the sys_flushtogui responsible for ensuring that whatever is
being flushed is sane? Perhaps here one needs to check that the cutoff
is indeed where \n exists?

Any thoughts?

Ico





More information about the Pd-dev mailing list