[PD] screen size tcl

zmoelnig at iem.at zmoelnig at iem.at
Wed Mar 8 15:51:27 CET 2017


On 03/08/2017 03:34 PM, Hans Roels wrote:
> Hello,
> 
> When I try to open the plugin~-help file from the Pd browser, the whole
> window is white and all objects in the file are invisible. This is the
> error message:
> 
> (Tcl) UNHANDLED ERROR: bad screen distance "-75,000000"
>     while executing
> "$tkcanvas create text $x $y -tags $tags -text $text -fill $color 
> -anchor nw -font [get_font_for_size $font_size]"
>     (procedure "pdtk_text_new" line 2)
>     invoked from within
> "pdtk_text_new .xe88180.c {.xe88180.tf3b1d0 msg text} -75,000000
> 538,000000 {pddp} 10 black"
>     ("uplevel" body line 4)
>     invoked from within
> "uplevel #0 $docmds"(Tcl) UNHANDLED ERROR: bad screen distance "86,000000"


this looks like a problem with locales.
i guess you are using Pd in a Belgian (or similar) locale, and when
creating a [plugin~] object (done by the help-patch), tcl suddenly
starts formatting floating-point values with "," as the decimal mark
rather than ".", breaking everything.
i remember similar things when working on [pdgst].

try forcing the locale of Pd to "C", with something like:

$ LANG=C pd

> 
> Is this perhaps related to the screen resolution of my laptop?

i don't think so.

fsa,rd
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170308/77ba0eed/attachment.sig>


More information about the Pd-list mailing list