Bug 126006 - Calc with Tabbed UI crashes on Autofilter icon after File>>Reload if you had autofilter on in the old document
Summary: Calc with Tabbed UI crashes on Autofilter icon after File>>Reload if you had ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace, implementationError
Depends on:
Blocks:
 
Reported: 2019-06-19 15:31 UTC by Doug B
Modified: 2019-09-17 18:10 UTC (History)
4 users (show)

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


Attachments
Example CSV file (19 bytes, text/csv)
2019-06-26 21:33 UTC, Doug B
Details
bt with debug symbols (4.56 KB, text/plain)
2019-09-17 18:10 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Doug B 2019-06-19 15:31:58 UTC
Description:
If you add auto filter, reload the doc, and then try to toggle auto filter, the program will crash.

I used the CSV file format.

I've never looked at the Libreoffice code, but I have a feeling the solution is to update the state of the auto filter button after a document reload is performed.

Steps to Reproduce:
1.) Open a document. I used a CSV.
2.) Turn on the auto filter.
2.) Edit the file in another program. I used a text editor.
4.) In Libreoffice, go to File>>Reload.
5.) Try to toggle the auto filter. It will crash.

Actual Results:
Crashy, crash crash

Expected Results:
No crash


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.2.4.2
Build ID: 2412653d852ce75f65fbfa83fb7e7b669a126d64
CPU threads: 8; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Flatpak
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 m.a.riosv 2019-06-19 22:41:22 UTC
Please test Menu/Help/Restart in Safe Mode.
Comment 2 Doug B 2019-06-20 13:06:46 UTC
Just figured out a new piece of the puzzle. (Tried it in safe mode)

It's a problem with the Auto Filter button in the Tabbed user interface mode. Will update the reproduction steps.
Comment 3 Doug B 2019-06-20 13:12:42 UTC
Ok, I don't think it's possible for me to edit the Steps to Reproduce, so I'll put it here.

Steps to Reproduce:
1.) Open a document. I used a CSV.
2.) If it is not already enabled, turn on the Tabbed User Interface mode
3.) Turn on the auto filter.
4.) In Libreoffice, go to File>>Reload.
5.) Try to toggle the auto filter. It will crash.
Comment 4 Roman Kuznetsov 2019-06-26 20:52:18 UTC
no crash in

Version: 6.4.0.0.alpha0+ (x64)
Build ID: c0d1bdbb8a9aca2ef2e475268a953da995567700
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-06-22_23:10:51
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded

please attach your CSV file here
Comment 5 Doug B 2019-06-26 21:33:21 UTC
Created attachment 152434 [details]
Example CSV file

CSV is attached.

Here is a screencast: https://youtu.be/4eHJYB688as

Also worth mentioning my desktop environment is KDE.

I cannot generate a backtrace, but I do see this error: 

Executable: soffice PID: 12665 Signal: Segmentation fault (11) Time: 6/26/19 17:26:33
Comment 6 Doug B 2019-06-26 21:35:14 UTC
If I start KDE from the terminal, here is the output that happens during a crash:

(soffice:13638): Gdk-WARNING **: 17:34:07.442: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = soffice.bin path = /usr/lib/libreoffice/program pid = 13638
KCrash: Arguments: /usr/lib/libreoffice/program/soffice.bin --nocrashhandler 
KCrash: Attempting to start /usr/lib/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
Comment 7 Doug B 2019-06-26 21:35:38 UTC
Apologies. I meant "If I start Libreoffice"
Comment 8 QA Administrators 2019-06-27 02:57:21 UTC Comment hidden (obsolete)
Comment 9 Timur 2019-09-12 09:08:41 UTC
KDE is not necessary, I reproduced with LO6.3 and 6.4+ in Mint's gtk3.
Interesting, no Reload in Tabbed UI in File tab, so I had to use menu. 
On Reload, I Cancel All Changes. Filter seems lost, but icon stays on in Data tab. (that's the difference to old toolbar icon, that one would be turned off).
When I try to turn it off (to turn it on again) Lo crashes with crash report.
I have an issue that I don't see a link in crash report. Doug, if you do, please add it to "Crash report or crash signature:" field.
Comment 10 Xisco Faulí 2019-09-17 14:03:33 UTC
Also reproduced in

Versión: 6.3.1.2 (x86)
Id. de compilación: b79626edf0065ac373bd1df5c28bd630b4424273
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; VCL: win; 
Configuración regional: es-ES (es_ES); Idioma de IU: es-ES
Calc: threaded
Comment 11 Xisco Faulí 2019-09-17 14:06:33 UTC
Also reproduced in

Version: 6.1.0.0.alpha1+
Build ID: 3a801799536e6870f2fb111b1cc00b9575a35a39
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 12 Julien Nabet 2019-09-17 18:10:11 UTC
Created attachment 154236 [details]
bt with debug symbols

On pc Debian x86-64 with master sources updated today + gtk3, I could reproduce this.