Bug 156596 - LO crashes while loading specific document
Summary: LO crashes while loading specific document
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace, regression
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2023-08-03 13:12 UTC by Robert Großkopf
Modified: 2023-08-13 03:39 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Try to open the attached document with LO 24.2.0.0 alpha0. (1.44 MB, application/vnd.oasis.opendocument.text)
2023-08-03 13:12 UTC, Robert Großkopf
Details
Backtrace - LO crashed while loading attached file in KDE (18.35 KB, text/x-log)
2023-08-03 17:39 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Großkopf 2023-08-03 13:12:26 UTC
Created attachment 188747 [details]
Try to open the attached document with LO 24.2.0.0 alpha0.

Open the attached file in LO 24.2.0.0 alpha0.
LO tries to load the document and crashes.
Have reset the user profile, also downloaded the next daily build - doesn't help.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: eef0c5d4d45ba35acfb6d8f7551fe565ca4badaa
CPU threads: 6; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded
(Master from 2023-08-03)

Could load the document without any problem with LO 7.4.7.2 on the same machine.
Comment 1 Stéphane Guillou (stragu) 2023-08-03 14:29:41 UTC Comment hidden (off-topic)
Comment 2 ⁨خالد حسني⁩ 2023-08-03 15:15:35 UTC Comment hidden (off-topic)
Comment 3 Julien Nabet 2023-08-03 16:05:35 UTC
On pc Debian x86-64 with master sources updated today (f7ff0468616d3ed8ded78598649a32bcb4e1ef1a), I don't reproduce this gen, gtk3, kf5 or qt5 renderings.
(I used German/Germany locale and UI)

Robert: do you think you can retrieve a backtrace? (see https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU/Linux:_How_to_get_a_backtrace)
Comment 4 Robert Großkopf 2023-08-03 17:39:38 UTC
Created attachment 188750 [details]
Backtrace - LO crashed while loading attached file in KDE

This isn't a special behavior of KDE. It will crash also with 
SAL_USE_VCLPLUGIN=gen ./soffice

Note: I have only installed the main packages, not help and no special languages package.
Comment 5 Michael Weghorn 2023-08-03 17:45:21 UTC Comment hidden (off-topic)
Comment 6 Stéphane Guillou (stragu) 2023-08-03 17:48:34 UTC Comment hidden (off-topic)
Comment 7 Michael Weghorn 2023-08-03 17:54:12 UTC Comment hidden (off-topic)
Comment 8 Julien Nabet 2023-08-03 20:21:09 UTC
(In reply to Robert Großkopf from comment #4)
> Created attachment 188750 [details]
> Backtrace - LO crashed while loading attached file in KDE
> 
> This isn't a special behavior of KDE. It will crash also with 
> SAL_USE_VCLPLUGIN=gen ./soffice
> 
> Note: I have only installed the main packages, not help and no special
> languages package.

Could you try again but this time, each time you got "??" or something like this, just type "c" (without quotes) until having something else than "??"
then you'll get the "real" backtrace.
Comment 9 Robert Großkopf 2023-08-04 06:40:28 UTC
(In reply to Julien Nabet from comment #8)
> 
> Could you try again but this time, each time you got "??" or something like
> this, just type "c" (without quotes) until having something else than "??"
> then you'll get the "real" backtrace.

Don't know how to type anything there. I start in Konsole with 
./soffice --backtrace
Then I try to open the document.
After some seconds LO crashes and Konsole will have written content to gdbtrace.log.
Comment 10 Robert Großkopf 2023-08-04 07:28:46 UTC
Uninstalled master from 2023-08-03

Installed this version I downloaded 2023-07-28

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 24d0a62bd75b9a895c419aa165da648ab18f134d
CPU threads: 6; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

Could open the document with this version.
Comment 11 Julien Nabet 2023-08-04 18:38:22 UTC
(In reply to Robert Großkopf from comment #9)
> (In reply to Julien Nabet from comment #8)
> > 
> > Could you try again but this time, each time you got "??" or something like
> > this, just type "c" (without quotes) until having something else than "??"
> > then you'll get the "real" backtrace.
> 
> Don't know how to type anything there. I start in Konsole with 
> ./soffice --backtrace
> Then I try to open the document.
> After some seconds LO crashes and Konsole will have written content to
> gdbtrace.log.

You're right, you need to use the old to retrieve the backtrace.
1) Open a first Konsole and launch LO (don't open the document for the moment)
2) Open a second Konsole and type this:
gdb --pid=$(pidof soffice.bin)

=> it takes some seconds then it'll stop with a prompt
3) type "c"
4) Open the first Konsole with LO, open the document
=> on the second Konsole, gdb should stop at a moment with "??"
5) type "c" until you see something else than "??"
6) type "bt"

I know it's far more complicated but it's due to the interaction of Java with gdb. I just know there's some config lacking but I don't know more.
Comment 12 Robert Großkopf 2023-08-04 18:59:55 UTC
Have downloaded no this version:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2b0b4ddc8bd8fdd4cd689300620fe4621d7533b7
CPU threads: 6; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

2023-08-04

Could open the document with this version without any crash. Seems there has been something going wrong with version from 2023-08-03 and 2023-08-02.

Will close this bug as WORKSFORME.