[PD] Tcl/Tk Error with PD-0.49 (#578)

oliver oliver at klingt.org
Thu Jul 11 21:52:09 CEST 2019


umläute wrote:
> @Ant1r <https://github.com/Ant1r> you could check out the 
> |intellipatch2| branch from https://git.iem.at/pd/pure-data (which 
> contains the supposed fix, and some merges with |master| and |updates/0.50|)
> 
> but anyhow, I already know that the example that i gave 
> <https://github.com/pure-data/pure-data/issues/578#issuecomment-501293126> 
> triggers /some/ bug, and that my commit will fix that.
> the question i'm really interested in is: is this the bug that 
> @oliverstotz <https://github.com/oliverstotz> reported or something else?
> 

hi, just to give a little update on this issue after some tryouts ...

======================================================================

along with IOhannes recipe, attached patches (open "tcltk_error_A.pd") 
will reliably produce a "non-fatal" TCL/TK error with this error message:

(Tcl) UNHANDLED ERROR: bad window path name ".x248ccc0"
     while executing
"wm title $mytoplevel "$name$dirtychar$arguments - $path""
     (procedure "pdtk_canvas_reflecttitle" line 15)
     invoked from within
"pdtk_canvas_reflecttitle .x248ccc0 {D:/pd_0.48/extra/ol_lib/GUI} 
{ol_radio_inside} { [edit]} 0"
     ("uplevel" body line 940)
     invoked from within
"uplevel #0 $docmds"

======================================================================

while working on this very simple patch, the "fatal" TCL/TK error (where 
  the GUI disappears and patches can't be saved anymore) occured once. 
unfortunately (still) i can't reliably reproduce it, but i wrote a short 
description of what i did, when this error occured.

while the error message seems similar to the "non-fatal" error, the 
difference here are the ".x2596028: no such object" lines in the PD 
console. The error-log will write this line anytime the mouse is moved, 
after the error was triggered.

(Tcl) UNHANDLED ERROR: bad window path name ".x3b212c8"
     while executing
"wm title $mytoplevel "$name$dirtychar$arguments - $path""
     (procedure "pdtk_canvas_reflecttitle" line 15)
     invoked from within
"pdtk_canvas_reflecttitle .x3b212c8 {D:/pd_0.48/extra/ol_lib/GUI} 
{ol_radio_inside} { [edit]} 0"
     ("uplevel" body line 718)
     invoked from within
"uplevel #0 $docmds".x2596028: no such object
.x2596028: no such object
.x2596028: no such object
.x2596028: no such object

======================================================================


best

oliver
-------------- next part --------------
#N canvas 400 50 487 384 10;
#N canvas 601 509 450 300 INSIDE 0;
#X obj 47 91 tcltk_error_B;
#X floatatom 47 157 5 0 0 0 - - -;
#X floatatom 125 157 5 0 0 0 - - -;
#X text 54 12 ABSTRACTION;
#X text 53 51 inside a GOP;
#X text 42 35 "tcltk_error_B";
#X connect 0 0 1 0;
#X connect 0 1 2 0;
#X coords 0 -1 1 1 203 194 2 0 0;
#X restore 36 166 pd INSIDE;
#X obj 38 53 tcltk_error_B;
#X text 37 15 abstraction "tcltk_error_B";
#X floatatom 38 122 5 0 0 0 - - -;
#X floatatom 116 121 5 0 0 0 - - -;
#X text 142 71 Right-click / Open this abstraction \, change something
and save it ---> Voila, f 36;
#X text 142 48 TO TRIGGER TCL/TK ERROR:;
#X text 263 195 Open this GOP \; Change something \; Close it again.
;
#X text 264 169 Also try this:;
#X text 263 244 Doing this several times and then saving the main patch
can also trigger the error (sometimes ...), f 28;
#X connect 1 0 3 0;
#X connect 1 1 4 0;
-------------- next part --------------
#N canvas 398 320 450 300 10;
#X obj 12 10 hsl 60 15 0 127 0 0 \$0-slider1 \$0-slider1-r empty -2
-8 0 10 -262144 -1 -1 0 1;
#X obj 12 34 hsl 60 15 0 127 0 0 \$0-slider2 \$0-slider2-r empty -2
-8 0 10 -262144 -1 -1 0 1;
#X obj 36 140 outlet;
#X obj 158 140 outlet;
#X obj 36 114 r \$0-slider1;
#X obj 158 114 r \$0-slider2;
#X connect 4 0 2 0;
#X connect 5 0 3 0;
#X coords 0 -1 1 1 85 60 2 0 0;


More information about the Pd-list mailing list