From: Christopher C. <chr...@gm...> - 2021-04-11 03:40:46
|
> The useful "image create photo -format window -data <canvasID>" command causes Wish to quit unexpectedly after upgrading to a new Macbook and current releases. > > The current platform consists of OSX 10.15.7 (Catalina), Tcl/Tk 8.6.11 (built locally per the instructions in Tcl-Tk_8.6.11/tk8.6.11/macosx/README *), and tkImg 1.4.13 (binary distribution from Img1.4.13-Darwin64.tar.gz on SourceForge **). > > The previous platform, where the canvas-to-image command used to work, consisted of a mid-2012 Macbook running 10.14.6 (Mojave), ActiveTcl 8.6.9, and Img 1.4.6. > > On the current platform, most of tkImg 1.4.13 seems to work. A test/demo script in the source distribution, /Img-1.4.13/demo.tcl, executes without any obvious flaw for all file formats that are supported as delivered. The only problem observed arises with the "-format window" option for creating a photo image from a displayed canvas. … > Executing the last test script line, "image create photo -format window -data $c" causes Wish to quit with no error report. > > Did I miss some configuration or installation step? > > Peter Martin Hello Peter, Your issue sounds closely related to the one I discuss in the more recent comments of this ticket: https://core.tcl-lang.org/tk/info/685ac30727 . I left a comment attempting to explain why this crash occurs. But the bigger remaining problem is that capturing a window has been broken for the past few Tk Aqua releases, although I thought 8.6.9 and possibly anyone using macOS 10.14 and later would've been affected, and I currently only know of a good way this might be fixed for macOS 10.13 and earlier. Christopher A. Chavez |