tcl/tk BWidget ProgressDlg does not open correctly

Bug #2036760 reported by Fredrik Bennison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tk8.6 (Ubuntu)
New
Undecided
Unassigned

Bug Description

There is an issue with opening BWidget ProgressDlg when running Ubuntu 23.04. The problem is not present in Ubuntu 22.04.

Ubuntu release:

sysop@vb2304:~$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.04
Release: 23.04

Package version:

sysop@vb2304:~$ apt-cache policy tk8.6
tk8.6:
  Installed: 8.6.13-2

To reproduce:

Install new Ubuntu 23.04 and install bwidget package with 'apt install bwidget'-

Create a tcl file with this content:

=====================
package require Tk
package require BWidget

variable value
variable txtvar

ProgressDlg .p -type normal -variable value -maximum 100 -title "Titel" -textvariable txtvar

set txtvar "Test text"
set value 1

puts [info patchlevel]
while {$value < 100 } {
  set value [expr {$value + 1}]
  puts "value is $value"
  exec sleep 0.1
}
=====================

Run the file with:

wish test.tcl

Expected result: A progress bar appears counting filling up from 1 to 100. Test printout in shell window:

8.6.13
value is 2
value is 3
value is 4
....

This happens when running the same file in Ubuntu 22.04.

What happens instead:

Wish window appears, but no progress bar dialog. When closing the wish window the follow appears in the shell window:

sysop@vb2304:~$ wish test.tcl
Error in startup script: window ".p" was deleted before its visibility changed
    while executing
"tkwait visibility $path"
    (procedure "Dialog::draw" line 57)
    invoked from within
"Dialog::draw $path"
    (procedure "::ProgressDlg::create" line 26)
    invoked from within
"ProgressDlg .p -type normal -variable value -maximum 100 -title "Titel" -textvariable txtvar"
    (file "test.tcl" line 7)

Occasionally the first run of 'wish test.tcl' works but not subsequent calls.

Revision history for this message
Fredrik Bennison (freben-lfv) wrote :

Added information:

I have tested installing kubuntu-desktop and ubuntu-desktop together on the same machine and found this:

The test script works as expected when logging in to Plasma (Kubuntu), both Wayland and on Xorg.

The test script does not work when logging in to Ubuntu on Xorg.
The test script works on the first run, but not subsequent runs, when logging in to Ubuntu on Wayland.

It seems to me that the issue is somehow related to window creation when running the Ubuntu desktop.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.