https://bugs.documentfoundation.org/show_bug.cgi?id=174531
Bug ID: 174531
Summary: Video and mouse stutter while a video plays in edit
mode. The media toolbar keeps resizing the video
window (kf6, Wayland)
Product: LibreOffice
Version: 26.8.2.2 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Impress
Assignee: [email protected]
Reporter: [email protected]
Description:
When I play a video in Impress edit mode (video selected, started with Play on
the Media Playback toolbar), the video and the mouse pointer stutter.
soffice.bin uses a full CPU core and the GPU goes to 100 %. The same video
plays fine in slideshow mode.
If I click an empty part of the slide while the video plays, the stutter and
the GPU load go away, but soffice.bin keeps using a full core until the video
ends.
I sampled the main thread with eu-stack while this happened (stacks.txt). With
the video selected, most samples are in a full repaint of the slide, and that
repaint starts from the media toolbar's timer:
MediaControl::implTimeoutHdl → ToolboxController::updateStatus →
MediaShellHelpers::GetState → ViewObjectContactOfSdrMediaObj::updateMediaWindow
→ MediaWindow::setPosSize → QWidget::setFixedSize
updateMediaWindow() sets the size twice, first 1 px wider and then the real
size, so the video window gets resized on every tick. After deselecting, the
samples are all in MediaControl::implTimeoutHdl. The Idle starts itself again
in its own handler, so it never waits.
Steps to Reproduce:
1.Open a slide with video
2.Select the video and press Play on the Media Playback toolbar
3.Mouse gets laggy
4. Click an empty part of the slide
5. Mouse lags goes away and video keeps on playing
Actual Results:
Step 3: video and mouse stutter, main thread around 90 %, GPU 100 %. Step 4:
stutter and GPU load gone, main thread still around 95 % until the video ends.
Expected Results:
No constant repainting and no busy main thread while a video plays.
Reproducible: Always
User Profile Reset: No
Additional Info:
Very visible on my desktop (NVIDIA RTX 4090, 3440x1440 at 175 Hz). On my
ThinkPad T480 (Intel graphics, 1920x1080) I don't see the stutter.
Version: 26.8.2.2 (680(Build:2)) OS: CachyOS (Arch based), kernel 7.3, Hyprland
0.57.2 (Wayland) VCL: kf6, Qt 6.12.0 Package: libreoffice-fresh 26.8.2-3
--
You are receiving this mail because:
You are the assignee for the bug.