Bug 167395 - Using the Lock feature in an AutoFilter with dates causes a crash
Summary: Using the Lock feature in an AutoFilter with dates causes a crash
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.0.0 beta1+
Hardware: x86-64 (AMD64) All
: highest critical
Assignee: Sahil Gautam
URL:
Whiteboard:
Keywords: haveBacktrace, implementationError
: 169594 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-07-05 18:32 UTC by Andreas Säger
Modified: 2025-12-02 12:32 UTC (History)
6 users (show)

See Also:
Crash report or crash signature: ["SvTabListBox::GetEntryText(SvTreeListEntry%20const%20*,unsigned%20short)"]


Attachments
Screen recording (1.50 MB, image/gif)
2025-07-05 18:32 UTC, Andreas Säger
Details
My test document (58.78 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-07-05 18:34 UTC, Andreas Säger
Details
GDB trace of crash (22.34 KB, text/plain)
2025-11-23 16:53 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Säger 2025-07-05 18:32:36 UTC
Created attachment 201671 [details]
Screen recording

See screen recording where I just pick arbitrary year entries from a date column, click the new "Lock" option, then OK and the application crashes.
Comment 1 Andreas Säger 2025-07-05 18:34:52 UTC
Created attachment 201672 [details]
My test document

Test document with a database range "Import1" and auto-filter set.
Comment 2 m_a_riosv 2025-07-06 00:45:59 UTC
Reproducible

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 36a55369a6ac72ae985cf31405b7f52686665d84
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (es_ES); UI: en-US
Calc: CL threaded

Versions with Lock option crash, it has begun with 24.2
Comment 3 Buovjaga 2025-11-23 16:50:49 UTC
Implemented in bug 133836
Comment 4 Buovjaga 2025-11-23 16:50:59 UTC
*** Bug 169594 has been marked as a duplicate of this bug. ***
Comment 5 Buovjaga 2025-11-23 16:53:31 UTC
Created attachment 204229 [details]
GDB trace of crash
Comment 6 Sahil Gautam 2025-12-02 11:42:01 UTC
@Andreas thanks for reporting the issue, i can reproduce it. back when i implemented it, i was a half baked programmer, not that things have changed drastically since then ;). i will push a fix shortly :).
Comment 7 Sahil Gautam 2025-12-02 12:32:09 UTC
I remember now, (after looking at the code), in the code, there's this condition which checks if the entry is a date or not, and i had no idea on how to handle dates, so i only added the lock related code for entries which are not dates :).