Tk Source Code

View Ticket
Login
Ticket UUID: 1088807
Title: Aqua: canvPs-3.1 panic
Type: Bug Version: obsolete: 8.5a3
Submitter: dgp Created on: 2004-12-21 04:04:39
Subsystem: 06. Canvas Postscript Assigned To: fvogel
Priority: 2 Severity: Minor
Status: Closed Last Modified: 2022-08-30 18:19:51
Resolution: Fixed Closed By: fvogel
    Closed on: 2022-08-30 18:19:51
Description:
---- canvPs-3.1 start
XGetImage Failure: XGetImage: only ZPixmap types are
implemented
User Comments: fvogel added on 2022-08-30 18:19:51:
OK. Thanks for this answer.

chrstphrchvz added on 2022-08-30 18:06:51:

Previously only the first (or is it the third?) message was seen. This is with xcode only, not with clang --enable-aqua. I understand this as being expected, do you agree?

Yes, for the time being. These messages only appear when built with TK_MAC_DEBUG defined. The first “XGetImage does not handle XYPixmaps at the moment” is triggered by .c create arc … -stipple question in canvPs-3.1. “Unrecognized bitmap format” is triggered by .c create window … in canvPs-3.1. And the second “XGetImage does not handle XYPixmaps” was already being triggered by canvPs-5.1.


fvogel added on 2022-08-30 10:43:38:

Github Actions is happy, therefore I have merged into core-8-6-branch and trunk.

Note that the test suite on aqua now spits:

canvPs.test
2022-08-30 07:54:37.805 tktest[35731:80449] tkMacOSXImage.c:822: XGetImage(): XGetImage does not handle XYPixmaps at the moment.
2022-08-30 07:54:37.862 tktest[35731:80449] tkMacOSXImage.c:784: XGetImage(): XGetImage: Unrecognized bitmap format
2022-08-30 07:54:37.900 tktest[35731:80449] tkMacOSXImage.c:822: XGetImage(): XGetImage does not handle XYPixmaps at the moment.

Previously only the first (or is it the third?) message was seen. This is with xcode only, not with clang --enable-aqua. I understand this as being expected, do you agree?


fvogel added on 2022-08-29 19:01:08:

Indeed, good catch! Committed in [74fded7a]. Let's see what Github Actions think of it, we should be able to close this ticket then. Thanks!


chrstphrchvz added on 2022-08-29 18:28:53:

The underlying cause for this issue is the same one described in [424773a00c] and addressed by [74fded7a0b8e]. I suggest removing the notAqua constraint from canvPs-3.1.


jaspert added on 2008-07-06 23:26:05:
Logged In: YES 
user_id=456242
Originator: NO

Why such low priority? This leads to a crash, and all you have to do to produce it is generate postscript from a canvas containing a stippled (although not displayed as such) item. For instance...

$ wish
% pack [canvas .c]
% .c create rect 100 100 300 200 -fill blue -stipple gray25
1
% .c postscript
XGetImage Failure: XGetImage: only ZPixmap types are implemented
/usr/bin/wish: line 2:   401 Bus error               "$(dirname $0)/../../System/Library/Frameworks/Tk.framework/Versions/8.4/Resources/Wish Shell.app/Contents/MacOS/Wish Shell" "$@"

dgp added on 2006-03-14 11:59:34:
Logged In: YES 
user_id=80530


Added a constraint so this
test stops crashing the
Tk test suite.

Leaving open, as the panic
still indicates a bug.