Tk Source Code

View Ticket
Login
Ticket UUID: 3001403
Title: Wish crash on Windows XP when trying to free a color
Type: Bug Version: obsolete: 8.5.8
Submitter: papa_nawell Created on: 2010-05-14 02:15:09
Subsystem: 68. Win Window Operations Assigned To: chengyemao
Priority: 5 Medium Severity:
Status: Open Last Modified: 2010-05-15 16:49:00
Resolution: None Closed By:
    Closed on:
Description:
Hello,

Using a tool emulating an msdos console (dosbox) in order to play old games. This tool change the colormap of the display.
I launch amsn, after what i launch this tool. Then an error message is displayed saying "Tried to free a color that isn't allocated."

I report the bug to the amsn team, which explain me it's linked to tcl/tk library -> http://www.amsn-project.net/forums/index.php/topic,7910.msg46589.html

This bug appears already occur on version 8.4 -> http://sourceforge.net/tracker/?func=detail&aid=1708823&group_id=12997&atid=112997
and on previous version too ? -> http://lists.jabber.ru/pipermail/tkabber/2003-February/000085.html

Regards,
Anael
User Comments: dkf added on 2010-05-15 16:49:00:
You don't need to give more info. We know what the problem is, and we know it's not fixed yet. The difficulty is in actually doing the fix; it's an area where the code is incomplete and there's a hard-coded assumption that things don't change (when in fact they do, though only rarely).

papa_nawell added on 2010-05-15 08:10:39:
Same problem occurs with the 8.6b1 version.

papa_nawell added on 2010-05-15 00:59:11:
Hi,

As  user, could I give more information, use a debug mode or anything other in order to improve the bug understanding / code location ?
Or any other actions ?

flatworm added on 2010-05-14 21:32:34:
Duplicate of http://sourceforge.net/tracker/?func=detail&aid=1708823&group_id=12997&atid=112997 which is a duplicate of http://sourceforge.net/tracker/index.php?func=detail&aid=570748&group_id=12997&atid=112997

Something should really be done with this bug -- if I got a penny for every Windows user complaining about their Tkabber crashing when they run a full-screen game, I would be a millionaire :-)

By the way , #1708823 did even propose working patches which were not considered. The patches are now lost, but I could get in contact with their author if someone skilled in Tk on Windows would show interest in fixing this bug.

dkf added on 2010-05-14 21:03:46:
The problem is that Tk-on-Windows assumes that the Visual (an X11 term that approximately means the bit-depth and how that bit-depth is used) is invariant throughout the run of the program. As you've found out, that's not true! But getting someone who can trigger it (I'm on OSX so can't help at all) and who also knows enough to be able to fix... it's very difficult...