Menu

#78 XGetImage returns NULL under OSX10.9.1 + XQuartz

1.4.0
closed
nobody
None
1
2023-04-13
2014-01-06
chrism238
No

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!

1 Attachments

Discussion

  • chrism238

    chrism238 - 2014-01-06

    Oops, sorry, this applies to 1.4 and 1.4.2 (not the 1.2.4 group it's in).

     
  • Jan Nijtmans

    Jan Nijtmans - 2014-11-07
    • Group: 1.2.4 --> 1.4.0
     
  • Paul Obermeier

    Paul Obermeier - 2014-12-27

    Works for me on Mavericks 10.9.5 and ActiveState Tcl 8.6.3.

     
  • Paul Obermeier

    Paul Obermeier - 2023-04-13
    • status: open --> closed
     
  • Paul Obermeier

    Paul Obermeier - 2023-04-13

    Works with Tcl/Tk 8.6.13 and current Img version.
    Tested on Windows, Linux, Mac (Intel and AMD).

     

Log in to post a comment.