Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: 40c2e5dec8ea0a0cfd81a744c1d0de1ab71037b3
Ticket: 3576114fffffffffffffffffffffffffffffffff
text widget crashes on long lines if -wrap none is set
User & Date: fvogel 2015-09-03 20:33:53
Changes

  1. assignee changed to: "aku"
  2. closer changed to: "nobody"
  3. comment changed to:
    With -wrap none, a sufficiently long line crashes the session.
    Running OpenSuse 11.4
    Crash occurs with tcl/tk 8.5.9 and 8.6b2
    Crash occurs with several different window managers
    
    Following program exhibits the crash:
    
    package require Tk
    set log_file /home/ian/tcl/crash_log
    
    proc main {} {
       text .t -width 80 -height 30 -bg white -font {arial -12} -wrap none
       pack .t -fill both -expand 1
       
       for {set i 0} {$i < 10000} {incr i} {
          update idletasks
          .t insert end "A"
          set fd [open $::log_file w]
          puts $fd $i
          close $fd
       }
    }
    main
    
    Note that the log file records how many characters were added
    before the crash. Experimenting with different font sizes shows
    that the crash occurs when the line exceeds about 8050 pixels.
    
    This is slightly similar to bug 624732 - but that is reported as fixed...
    
  4. icomment:
    Is this still happening (preferably on a recent system)?
    
    Can you provide a stack trace at the crash point?
    
  5. login: "fvogel"
  6. mimetype: "text/plain"
  7. severity changed to: "Minor"