Tk Source Code

View Ticket
Login
Ticket UUID: 488951
Title: $canvas postscript hangs wish Win98
Type: Bug Version: obsolete: 8.3.3
Submitter: tallniel Created on: 2001-12-04 16:46:01
Subsystem: 06. Canvas Postscript Assigned To: hobbs
Priority: 7 High Severity:
Status: Closed Last Modified: 2002-10-10 14:32:40
Resolution: Fixed Closed By: hobbs
    Closed on: 2002-10-10 07:32:40
Description:
On Windows 98 SE (only platform tested), the following script causes wish to hang (and not show 
up in the Windows process list), and hog system resources so that you need to do a hard reboot of 
Windows (Ctrl-Alt-Del, Ctrl-Alt-Del). System: ActiveTcl8.3.3.3. No extensions loaded.

canvas .c
text .c.t
.c.t insert end "Test\n"
pack .c -fill both -expand 1
.c create window 50 50 -window .c.t
.c postscript

results in a popup saying "GetImage not implemented" followed by invalid page fault and hang.
User Comments: hobbs added on 2002-10-10 14:32:40:
Logged In: YES 
user_id=72656

Slight variant of patch applied for 8.3.5/8.4.1.

hobbs added on 2002-10-10 13:13:46:

File Added - 32765: canvps.patch

Logged In: YES 
user_id=72656

The attached patch is a possible resolution.  Nobody ever 
bothered to implement this in the core, and there was a 
fundamental problem in the TkColormapData assumptions.  
The patches are against 8.4.0 but should apply against 8.3.4 
without too many changes.

msofer added on 2001-12-04 23:58:41:
Logged In: YES 
user_id=148712

This may be TWO bugs:
  -one bug that makes this script panic
  - bug in panic under W98 (see bug #415166)

tallniel added on 2001-12-04 23:50:00:
Logged In: YES 
user_id=102050

GetImage should be XGetImage, sorry.

Attachments: