Bug 163067 - Crash on mail merge
Summary: Crash on mail merge
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, haveBacktrace, regression
Depends on:
Blocks: Mail-Merge
  Show dependency treegraph
 
Reported: 2024-09-20 18:04 UTC by Andreas Säger
Modified: 2024-10-31 12:05 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Database linked to spreadsheet, to be registered as "Laufzettel" (2.73 KB, application/vnd.sun.xml.base)
2024-09-20 18:05 UTC, Andreas Säger
Details
Spreadsheet source of the database (78.20 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-09-20 18:06 UTC, Andreas Säger
Details
Crashing form letter (12.53 KB, application/vnd.oasis.opendocument.text)
2024-09-20 18:07 UTC, Andreas Säger
Details
bt (11.47 KB, text/plain)
2024-09-21 08:23 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Säger 2024-09-20 18:04:56 UTC
Description:
https://crashreport.libreoffice.org/stats/crash_details/019d8084-caa1-4f24-8a46-33b34e2affa1


Steps to Reproduce:
1.Register the database document as "Laufzettel"
2. Open the spreadsheet document with further instructions and a hyperlink to a form letter.
3. Print the form letter.

Actual Results:
Crash before printing.

Expected Results:
Print form letter.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
https://crashreport.libreoffice.org/stats/crash_details/019d8084-caa1-4f24-8a46-33b34e2affa1

Safe mode makes no difference.
Comment 1 Andreas Säger 2024-09-20 18:05:38 UTC
Created attachment 196568 [details]
Database linked to spreadsheet, to be registered as "Laufzettel"
Comment 2 Andreas Säger 2024-09-20 18:06:30 UTC
Created attachment 196570 [details]
Spreadsheet source of the database

Ignore any macros. They have nothing to do with this issue.
Comment 3 Andreas Säger 2024-09-20 18:07:18 UTC
Created attachment 196571 [details]
Crashing form letter
Comment 4 m_a_riosv 2024-09-20 23:04:13 UTC
Reproducible, even in safe mode, with
Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

But not with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d500848976b6244048684a9972322b582559910a
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Latest version that works on the ones I have installed.
Version: 24.2.6.2 (X86_64) / LibreOffice Community
Build ID: ef66aa7e36a1bb8e65bfbc63aba53045a14d0871
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 5 Julien Nabet 2024-09-21 08:23:37 UTC
Created attachment 196580 [details]
bt

On pc Debian x86-64 with master sources updated today, I got a crash with a different backtrace when "printing" in a file.
Comment 6 Gabor Kelemen (allotropia) 2024-10-31 11:33:42 UTC
Bibisected in linux 24-8 to:

https://git.libreoffice.org/core/+/ae7807c889c19145f89cec40afac82eee191837c

commit ae7807c889c19145f89cec40afac82eee191837c	[log]
author	Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de>	Wed Jan 10 20:07:47 2024 +0100
committer	Armin Le Grand <Armin.Le.Grand@me.com>	Fri Jan 12 12:15:54 2024 +0100

ITEM: No longer register Items at Pool
Comment 7 Gabor Kelemen (allotropia) 2024-10-31 12:05:38 UTC
STR:

1. Open  attachment 196571 [details] 
2. Edit - Exchange Database -> Browse..., then select attachment 196568 [details], under Available Databases select the Laufzettel_ab_Heute table, press Define
3. On the Mail Merge toolbar press one of the Edit / Save / Print buttons -> crash

On the other hand, can't reproduce the crash in 25.2 master:

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b0195d40f3abc343b88f767f4fe109a9c1d44347
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: en-US
Calc: threaded

bibisect in 25.2 repo shows this commit fixed it:

https://git.libreoffice.org/core/+/290c8f6e048fedf63437e3fdf629555ac89dd3ad

commit 290c8f6e048fedf63437e3fdf629555ac89dd3ad	[log]
author	Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de>	Wed May 01 19:34:36 2024 +0200
committer	Armin Le Grand <Armin.Le.Grand@me.com>	Tue Jun 11 17:26:42 2024 +0200

ITEM: Change SfxItemSet to use unordered_set