Bug #2748

tab switch flickers and freezes vdemo

Added by G. Walck over 6 years ago. Updated over 6 years ago.

Status:ResolvedStart date:11/22/2017
Priority:HighDue date:
Assignee:L. Schillingmann% Done:

0%

Category:-
Target version:-

Description

after clicking "start all" I usually want to switch tabs to see the progress in each tab, and today I could reproduce several times a flicker effect which completely blocks vdemo when switching tab until I move the window or resize it then the flickering stops and starting sequence continues

switching to another tab was never immediate (because the starting process is busy, but at some point it switched and I am fine with that behavior, but the flickering is bad.

see attached video

vdemo_render_oscillates.ogv (1.02 MB) G. Walck, 11/22/2017 04:02 PM

History

#1 Updated by L. Schillingmann over 6 years ago

I cannot reproduce this. Try to comment out the grid forget in proc resize {path {autowidth 0} }. Does it have an impact? In general, I will need to look at your configuration / setup, to see why this happens.

#2 Updated by G. Walck over 6 years ago

I used
/vol/famula/nightly/bin/vdemo_sfb.sh
and one does not even need to start, the switching tab is sufficient especially the flobi tab. It has 11 components and they do not fit the default size of the vdemo because only 10.5 components are visible with the new font size.
this demo asks for a password to ssh to localhost

The flicker does not happen every time, but sometimes, and I always manage to get it once at least if madly clicking from one tab to another. today I switched 5 times for one trial and a second run I needed only 3.
I noticed that at tab switching, the windows resizes completely, vertical and horizontal depending on tab content (sometimes long title triggers a resize, or sometimes too many components also trigger a resize. The flicker happens at that time, but not all the time.

But once the window size is okay, it does not flicker anymore. It is sort of a local minima of the optimization of the window size

if I disable the grid forget I cannot reproduce it (although the windows still adjusts to content) especially if I disable only the vertical one

 # Vertical scrolling.
        if { [winfo reqheight $content] > [winfo height $canvas] } {
            grid $path.scrolly  -row 0 -column 1 -sticky ns
        } else {
            #grid forget $path.scrolly
        }

#3 Updated by L. Schillingmann over 6 years ago

Hmm, the window should adjust to the content only once at startup and only for the width if no GEOMETRY environment variable is set.
Anyway try the current master again. I fixed the vertical component widget size now at another point.
What window manager are you using?

#4 Updated by G. Walck over 6 years ago

Looks good to me now, no resizing anymore, but now horizontal scrollbars appear which is fine too

I am using XFCE.

#5 Updated by L. Schillingmann over 6 years ago

Ok, then this needs a bit more testing with XFCE. I need to check whats the difference in window events here.

#6 Updated by L. Schillingmann over 6 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF