Bug 523140 - Crash when exporting to HTML
Summary: Crash when exporting to HTML
Status: RESOLVED FIXED
Alias: None
Product: tellico
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.2.1
Platform: Other Other
: NOR crash
Target Milestone: ---
Assignee: Robby Stephenson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-16 15:51 UTC by Robby Stephenson
Modified: 2026-08-01 00:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 4.2.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robby Stephenson 2026-07-16 15:51:49 UTC
https://discuss.kde.org/t/html-export-issue/47470/5

Tellico::Export::HTMLExporter::writeEntryFiles (this=this@entry=0x555557991ab0)
at /usr/src/debug/tellico/tellico-4.2.1/src/translators/htmlexporter.cpp:826
826 bool multipleTitles = collection()->fieldByName(title)->hasFlag(Data::Field::AllowMultiple);
(gdb) bt
#0 Tellico::Export::HTMLExporter::writeEntryFiles (this=this@entry=0x555557991ab0)
at /usr/src/debug/tellico/tellico-4.2.1/src/translators/htmlexporter.cpp:826
#1 0x000055555588d3f0 in Tellico::Export::HTMLExporter::exec (this=0x555557991ab0)
at /usr/src/debug/tellico/tellico-4.2.1/src/translators/htmlexporter.cpp:185
#2 0x00005555556b7ab6 in Tellico::MainWindow::slotFileExport (this=0x555555bca3d0, format_=4)
at /usr/src/debug/tellico/tellico-4.2.1/src/mainwindow.cpp:1966
Comment 1 Robby Stephenson 2026-07-26 13:40:39 UTC
Git commit aa34639cdfe64d840cd2a77873855f715e380e48 by Robby Stephenson.
Committed on 26/07/2026 at 13:40.
Pushed by rstephenson into branch '4.2'.

Check title field existence before exporting entry HTML

Fix crash for entries with no fields at all or a non-title field. Use
"entry" in the exported file name if there is an empty title.
FIXED-IN: 4.2.2

M  +4    -0    ChangeLog
M  +48   -0    src/tests/htmlexportertest.cpp
M  +2    -0    src/tests/htmlexportertest.h
M  +8    -2    src/translators/htmlexporter.cpp

https://invent.kde.org/office/tellico/-/commit/aa34639cdfe64d840cd2a77873855f715e380e48
Comment 2 Robby Stephenson 2026-08-01 00:49:16 UTC
Git commit 69e223ad6fe7aa2b0f92a37f903ebd446ec8c8b8 by Robby Stephenson.
Committed on 01/08/2026 at 00:48.
Pushed by rstephenson into branch 'master'.

Check title field existence before exporting entry HTML

Fix crash for entries with no fields at all or a non-title field. Use
"entry" in the exported file name if there is an empty title.
FIXED-IN: 4.2.2

M  +4    -0    ChangeLog
M  +48   -0    src/tests/htmlexportertest.cpp
M  +2    -0    src/tests/htmlexportertest.h
M  +8    -2    src/translators/htmlexporter.cpp

https://invent.kde.org/office/tellico/-/commit/69e223ad6fe7aa2b0f92a37f903ebd446ec8c8b8