Bug 169690 - Crash with GDI backend after playing animated GIF for a while
Summary: Crash with GDI backend after playing animated GIF for a while
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.6.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
Depends on:
Blocks: Images-Animated
  Show dependency treegraph
 
Reported: 2025-11-25 19:11 UTC by Gabor Kelemen (Collabora)
Modified: 2025-12-15 12:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Presentation with resized animated gif (3.88 MB, application/vnd.oasis.opendocument.presentation)
2025-11-25 19:11 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (Collabora) 2025-11-25 19:11:22 UTC
Created attachment 204285 [details]
Presentation with resized animated gif

When the attached document is left alone on the second slide to play the resized GIF animation, Impress crashes after some 2.5 minutes with GDI backend.

1. Open attached file on Windows, after turning off Skia
2. Go to the second slide, leave the animated gif to play (it may be necessary to have it go at full screen on a large monitor)
-> crash after some minutes.

Version: 25.8.0.4 (X86_64)
Build ID: 48f00303701489684e67c38c28aff00cd5929e67
CPU threads: 24; OS: Windows 10 X86_64 (build 19045); UI render: default; VCL: win
Locale: de-AT (hu_HU); UI: de-DE
Calc: threaded

Looks like in 26.2 master, Skia can no longer be disabled, so - good/ignore?

Seems to have started in 7.6 with:

https://git.libreoffice.org/core/+/4f347ebabad6355014889f0a81b107dc774590fe

commit 4f347ebabad6355014889f0a81b107dc774590fe	[log]
author	Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>	Sat Feb 25 19:12:23 2023 +0900
committer	Tomaž Vajngerl <quikee@gmail.com>	Sat Apr 08 07:56:19 2023 +0200

use shared_ptr for model::Theme instead of unique_ptr


Before this commit, opening the example file crashed, so can't really say this is a regression, but, still not perfect either.
Comment 1 rram 2025-11-28 02:04:20 UTC
Hello Gabor Kelemen (Collabora),

Thank you for reporting this bug. I attempted to reproduce it but was unable to do so.

I am using dual 1920×1080 monitors and left the second page open for almost 10 minutes without any issues. In the release version, when Skia is turned off, the GIF does not display, but the application does not crash.

I can confirm in the alpha version, I was unable to turn off Skia, leaving it on the second page for several minutes did not cause a crash.

Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 8; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 26.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 8; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 2 rram 2025-11-28 02:11:07 UTC
Hello Gabor Kelemen (Collabora),

I just noticed the file you uploaded is for Impress, not Writer and your description seems to suggest this is a Impress issue, but this bug is filed under Writer. can you please confirm if this is an Impress issue.
Comment 3 Buovjaga 2025-11-29 19:29:52 UTC
(In reply to rram from comment #2)
> Hello Gabor Kelemen (Collabora),
> 
> I just noticed the file you uploaded is for Impress, not Writer and your
> description seems to suggest this is a Impress issue, but this bug is filed
> under Writer. can you please confirm if this is an Impress issue.

Let's assume it was an omission.

Skia is indeed mandatory on Windows and macOS in version 26.2, but of course 25.8 will live for a while still, so would be nice to fix crashes. I couldn't get the file to crash, though. It keeps the CPU fairly busy, but there is no memory leaking. Ran for 5 minutes.

Version: 25.8.3.2 (X86_64)
Build ID: 8ca8d55c161d602844f5428fa4b58097424e324e
CPU threads: 2; OS: Windows 11 X86_64 (build 26100); UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 4 Sarah Lim 2025-12-15 12:05:46 UTC Comment hidden (obsolete)