Tk Source Code

View Ticket
Login
Ticket UUID: 1911853
Title: tk initialization error message tweak
Type: Bug Version: obsolete: 8.5.1
Submitter: lvirden Created on: 2008-03-11 13:29:08
Subsystem: 67. Unix Window Operations Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2010-01-05 16:16:56
Resolution: Duplicate Closed By: patthoyts
    Closed on: 2010-01-05 09:11:40
Description:
Sometimes, when I attempt to start a tk application, instead of windows I get:

Application initialization failed: this isn't a Tk applicationcouldn't connect to display "mysrv:0.0"
Error in startup script: this isn't a Tk applicationcouldn't connect to display "mysrv:0.0"
    while executing
"load /usr/tcl84/lib/tk8.4g/../libtk8.4g.so Tk"
    ("package ifneeded" script)
    invoked from within
"package require Tk "
    (file "/vol/multifig/n098/u10k/lib/MFigPGUI/main.tcl" line 2)
    invoked from within
"source "$u10k/lib/MFigPGUI/main.tcl""
    (file "/cas/bin/sun4/mfigp" line 39)


There appears to be a missing period and newline (or space or something) after the word "application".
User Comments: dkf added on 2010-01-05 16:16:55:
that was bug #697915

patthoyts added on 2010-01-05 16:11:40:

allow_comments - 1

On Linux with 8.4.19 and 8.6b1.1 I get
pat@frog:~$ env DISPLAY=:1 wish ./x.tcl 
Application initialization failed: couldn't connect to display ":1"
Error in startup script: couldn't connect to display ":1"

Looks like it was probably fixed by dkf on 7 Jan 2005 by adding a missing Tcl_ResetResult in tkWindow.c