porres / pd-cyclone

A set of Pure Data objects cloned from Max/MSP
BSD 3-Clause "New" or "Revised" License
198 stars 25 forks source link

[coll] gives tcl/tk errors with read message in threaded (default) mode #606

Open ErickEM9 opened 1 year ago

ErickEM9 commented 1 year ago

In this Patch if I move the number box for sometime in the main patch which controls cyclone's objects in abstractions, the patch crashes

In Pd if I create a symbol/message by using cyclone's library, in Pd window it removes the "symbol" format, I dont know if it's an issue or a feature Crash test.zip

porres commented 1 year ago

the symbol issue, I told you, is by design and a feature, check help file of [sprintf] carefully. I also need a minimal patch to test, it's best, no need for several abstractions, try to narrow things down please. Anyway, I see a tcl/tk error I need to see where that comes from and might be causeing the issue

porres commented 1 year ago

Here's my new and minimal test patch. It's giving me several different tcl/tk errors

coll_bug.zip

porres commented 1 year ago

@ErickEM9, if you use the object not in threaded mode you don't get this issue, use "@threaded 0", check the help file

porres commented 1 year ago

@derekxkwan and @brbrofsvl I can't fix this :) I have no idea where the tcl/tk errors may be coming from. Of course this doesn't happen in Purr Data because.... no tcl/tk :)

Here are some of the random errors I get, I hope you can help me fix this. BTW, Cyclone 0.7 coming next month in out 7th year annyversary

(Tcl) UNHANDLED ERROR: wrong # args: should be "::pdwindow::logpost object_id level message" while executing "::pdwindow::logpost 0x0 4 pdtk_text_set .x7f9b8a42b5c0.cres/Downloads/Crash test/Ionico_Chord.txt and succeeded" ("uplevel" body line 2) invoked from within; "uplevel #0 $docmds"; ; (Tcl) UNHANDLED ERROR: wrong # args: should be "pdtk_text_set tkcanvas tag text" while executing "pdtk_text_set .x7f9 0x0 4 tried /Users/porres/Downloads/Crash test/Frigio_Chord.txt and succeeded " ("uplevel" body line 2) invoked from within; "uplevel #0 $docmds"; ; (Tcl) UNHANDLED ERROR: extra characters after close-brace while executing "::pdwindow::logpost 0x0 4 tried /Users/porres/Downloads/Crash test/Locrio_Chord.txt and succeeded :" ("uplevel" body line 1) invoked from within; "uplevel #0 $docmds"; ; (Tcl) INVALID COMMAND NAME: invalid command name "::pdwindow::logpost:0x0" while executing "::pdwindow::logpost:0x0 4 tried /Users/porres/Downloads/Crash test/Misolidio_Chord.txt and succeeded " ("uplevel" body line 1) invoked from within "uplevel #0 $docmds"