[Bug 35697] System locks up when watching fullscreen flash video

bugzilla-daemon
2011-03-28T02:18:46Z

--- Comment #11 from Mario Kleiner <mario.kleiner@tuebingen.mpg.de> 2011-03-27 19:18:46 PDT ---
(In reply to comment #10)
> (In reply to comment #8)
> > Pure guesswork, but maybe worth trying:
> >
> > Can you check in your ~/.kde/share/config/kwinrc if setting the option
> > UnredirectFullscreen to false...
> >
> > UnredirectFullscreen=false
> >
> > ...and restarting kwin makes any difference?
>
> Yes. This also fixes the issue. Another "issue" appears though when doing this:
> fullscreen animations are not smooth anymore; there's frameskipping at every
> exact interval (about one second.) This is not video related though. With
> compositing active, all animations, including glxgears running in a very small
> window, exhibit this frameskipping. The only way to get really even and smooth
> animations is to run in fullscreen (which suspends compositing by default on
> KDE.)
>
> So I guess the issue is triggered when KDE unredirects the rendering. But it's
> strange that it happens only with Flash and not other applications (KDE
> unredirects them too).
>
>
> (In reply to comment #9)
> > Might be related to bug 35452. You might also try the xserver patch on that
> > bug.
>
> Just tried the patch. Doesn't help.

If UnredirectFullscreen=false fixes the problem then it really sounds like it
is bug 35452 and that xserver patch should help. Without that patch and
unredirected rendering you should observe screen corruption in most other
fullscreen apps as well, esp. when they switch out of fullscreen mode. At least
Compiz is almost unuseable without that patch with unredirected fullscreen
windows.

The frameskipping with redirected windows is probably because the compositor
doesn't run at the same composition rate as the redraw rate of the app or the
refresh rate of the monitor.