Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f8086b95f6f303354a27cad8a98f946f990fa840
Ticket: 2458202fffffffffffffffffffffffffffffffff
Reflected channel crash on exit
User & Date: nobody on 2008-12-23 21:00:01
Changes

  1. icomment:
    I've tried reducing the implementation causing this and so far it seems to require Tk to be in use. It seems like I always have one of these channels open even though there is no channel registered for the file. As it is a gif I looked at the [image create photo] code but it looks like the channel should be closed there to me.
    So far the smallest bug reproducing script I have got is to create a vfs folder with a gif image and the following main.tcl. Then make a starkit and tclkit-gui test.kit, close the window and it crashes. I have used zipkit and metakit and both crash so it is not dependent on the vfs implementation. [rechan] is ok - presumably a Memchan [memchan] would be fine too.
    
    package require Tk
    package require starkit
    if {[starkit::startup] ne "sourced"} {
        set img [image create photo -file [file join $starkit::topdir tkchat48.gif]]
    
        wm iconphoto . $img
        tkwait window .
        #exit
    }
    
    Uncommenting exit seems to resolve the problem - so I think it is an interaction with Tk finalization and Tcl finalization.
    
    In tkchat we have the whiteboard which is implemented using safetk and a safe interp. When I close that using this tclkit it crashes as well in the same place when destroying this safe interpreter.
    
    
  2. login: "[email protected]"
  3. mimetype: "text/plain"
  4. username: "[email protected]"