Bug 157354 - Importing an jpg image crashes LibreOffice Draw
Summary: Importing an jpg image crashes LibreOffice Draw
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.6.1.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-20 17:25 UTC by alimantiris
Modified: 2024-03-20 11:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature: ["__scrt_throw_std_bad_alloc()"]


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alimantiris 2023-09-20 17:25:14 UTC
Description:
In a LO Draw document of 4 pages, I try to import, in a random page, a (big 9280x6944 px) image (Mobile Phone Picture in a jpg format) and the Libre Office crashes and it tries to recovers the document after that. It is always successful in the recovery. And if I repeat the import the whole process starts again. I use a portable version of the L.O. Community version 7.6.1.2
If needed I can provide my working document.

Steps to Reproduce:
1. See Description
2.
3.

Actual Results:
Libre Office crashes and it tries to recovers the document after that. It is always successful in the recovery. And if I repeat the import the whole process starts again.

Expected Results:
Import the image in a box


Reproducible: Always


User Profile Reset: No

Additional Info:
https://crashreport.libreoffice.org/stats/crash_details/26e9b4fe-e40b-4d0c-a373-a7954183e8c5
Comment 1 Stéphane Guillou (stragu) 2023-09-20 19:38:17 UTC
Thank you for the report.
Yes, please attach the sample document so we can test in similar conditions.
I haven't been able to reproduce the crash with a large photo and:

Version: 7.6.1.2 (X86_64) / LibreOffice Community
Build ID: f5defcebd022c5bc36bbb79be232cb6926d8f674
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 2 m_a_riosv 2023-09-20 20:07:04 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 3 QA Administrators 2024-03-19 03:12:55 UTC
Dear alimantiris,

This bug has been in NEEDINFO status with no change for at least
6 months. Please provide the requested information as soon as
possible and mark the bug as UNCONFIRMED. Due to regular bug
tracker maintenance, if the bug is still in NEEDINFO status with
no change in 30 days the QA team will close the bug as INSUFFICIENTDATA
due to lack of needed information.

For more information about our NEEDINFO policy please read the
wiki located here:
https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO

If you have already provided the requested information, please
mark the bug as UNCONFIRMED so that the QA team knows that the
bug is ready to be confirmed.
 
Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-NeedInfo-Ping
Comment 4 Stéphane Guillou (stragu) 2024-03-19 04:31:40 UTC
I tested with this 10,097 × 8,086 picture:
https://commons.wikimedia.org/wiki/File:%22On_Bicycles_Built_For_One.%22_Washington_D.C.,_June_30._The_Boy_Scout%27s_motto_of_%22do_a_good_turn_daily%22_was_well_observed_by_these_Flint,_Mich.,_scouts,_John_Kleinnheksel,_and_Dave_Matthews,_LCCN2016871930.jpg

Into a new, 4-page document in Draw:

Version: 7.6.5.2 (X86_64) / LibreOffice Community
Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

And on Windows 11:

Version: 7.6.5.2 (X86_64) / LibreOffice Community
Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b
CPU threads: 4; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

I tested drag-and-drop from the file browser, as well as Insert > Image. No crash.
Comment 5 alimantiris 2024-03-20 09:49:29 UTC
I'm very sorry, but I cannot attach the file because it contains a picture with person faces that I don't have the permission to share. I tried to changed it before  I share it or even delete it but I cannot as the program crashes before I can do anything with it.
Comment 6 Stéphane Guillou (stragu) 2024-03-20 11:22:06 UTC
(In reply to alimantiris from comment #5)
> I tried to
> changed it before  I share it or even delete it but I cannot as the program
> crashes before I can do anything with it.
So the program crashes only with this file, as soon as you do anything to it?
Can you please:
- test again with the latest 24.2 release: https://www.libreoffice.org/download/download/
- if it still crashes, and you can't find any way to sanitise the file before sharing it, maybe you can try collecting a backtrace of the crash: https://wiki.documentfoundation.org/How_to_get_a_backtrace_with_WinDbg
- which version of Windows do you use? Have you checked that all updates are installed, including for your graphics drivers?

Thank you.