I've an application primarily using Tcl/Tk to provide a GUI on both OS-X and Linux. One of its requirements is to take a 'snapshot' of a specific Tk canvas so that it can be manipulated at the pixel level. A small sample of its code and actions, that demonstrate the problem, may be found from https://www.dropbox.com/s/86pp744die1prf6/img-broken.tcl).
Under OSX-10.8.5 all was going well; upgrade to 10.9.1 and the application and sample script fail with the error message:
Error in startup script: Window ".f0.map" cannot be transformed into a pixmap (possibly obscured?)
while executing
"image create photo snap -format window -data $map" (file "./broken.tcl" line 35)
The error message comes from window/window.c:285 after a call to XGetImage() fails.
This combination of libraries/packages works for me:
OSX 10.8.5, Xcode 5.0.2, XQuartz 2.7.4
Tk 8.5, /System/Library/Tcl/8.5/Img1.4/
this combination does not:
OSX 10.9.1, Xcode 5.0.2, XQuartz 2.7.5 (or 2.7.4)
Tk 8.5 (or ActiveTcl 8.6), /System/Library/Tcl/8.5/Img1.4 (or Img1.4.2)
Any help most welcome, as I've found the error (message) but unsure which component is no longer working!
Oops, sorry, this applies to 1.4 and 1.4.2 (not the 1.2.4 group it's in).
Works for me on Mavericks 10.9.5 and ActiveState Tcl 8.6.3.
Works with Tcl/Tk 8.6.13 and current Img version.
Tested on Windows, Linux, Mac (Intel and AMD).