Bug 127413 - LibreOffice crash when attempting to activate a chart
Summary: LibreOffice crash when attempting to activate a chart
Status: RESOLVED DUPLICATE of bug 127306
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2019-09-06 17:47 UTC by Francisco
Modified: 2019-09-23 17:01 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Just an example ODS file with many charts in it (632.10 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-09-07 14:55 UTC, Francisco
Details
bug screenshot (49.87 KB, image/png)
2019-09-11 00:36 UTC, Francisco
Details
Sample file (17.29 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-09-23 10:53 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco 2019-09-06 17:47:06 UTC
Since LibreOffice 6.3 release, I have experienced a random but persistent crash when activating a chart within Calc.

Now I don't remember if the crash has happened also with the chart already activated, but it happens with both, Qt5 and GTK toolkits.

When LibreOffice executed from console, when the crash happens, I've got the following message:

$ libreoffice 
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbConnection: XCB error: 3 (BadWindow), sequence: 42765, resource id: 23972462, major code: 40 (TranslateCoords), minor code: 0
QXcbClipboard::setMimeData: Cannot set X11 selection owner
QXcbClipboard::setMimeData: Cannot set X11 selection owner
QXcbClipboard::setMimeData: Cannot set X11 selection owner
LibreOffice 6.3 - Fatal Error: getCurrentController was called on an already disposed or closed model

The crash happens with any file, but I can upload one example if needed.

Steps:
0) Open calc, fill it with some data
1) insert a chart, and some series
2) exit the chart and continue working
3) try activate the chart

Results
4) Option 1: LibreOffice crash
5) Option 2: no crash, go to step 2) and repeat

Expected
No crash


Additional info
Versión: 6.3.1.2
Id. de compilación: 1:6.3.1~rc2-0ubuntu0.18.04.1~lo1
Subprocs. CPU: 4; SO: Linux 4.15; Repres. IU: predet.; VCL: kde5; 
Configuración regional: en-US (es_AR.UTF-8); Idioma de IU: es-ES
Calc: threaded
Comment 1 Oliver Brinzing 2019-09-06 18:39:23 UTC
Thank you for reporting the bug. 
Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 2 Francisco 2019-09-07 14:55:53 UTC
Created attachment 154006 [details]
Just an example ODS file with many charts in it
Comment 3 Francisco 2019-09-07 14:57:26 UTC
I forgot to mention that, under GTK tooklit, when LibreOffice crashes a small window appears informing the same error:

Fatal Error: getCurrentController was called on an already disposed or closed model.

Regards,

Francisco
Comment 4 Jean-Baptiste Faure 2019-09-08 11:32:09 UTC
What do you mean by "activate the chart" ? One click to select the chart or double-click to edit the chart ?

When you say GTK toolkit, do you mean GTK2 (SAL_USE_VCLPLUGIN=gtk) or GTK3 (SAL_USE_VCLPLUGIN=gtk3) ?

Status has been set to NEEDINFO, please set it back to UNCONFIRMED once requested information has been provided.

Best regards. JBF
Comment 5 Francisco 2019-09-09 17:29:42 UTC
(In reply to Jean-Baptiste Faure from comment #4)
> What do you mean by "activate the chart" ? One click to select the chart or
> double-click to edit the chart ?

Woof... good question. I was pretty sure it was while clicking when trying to activate it (double click).

But now that you mention it, I'm not completely sure and I think it has also happened when clicking anywhere inside the chart (single click), and even after it got activated (selecting the chart area, or trying to modify series, for example).

> When you say GTK toolkit, do you mean GTK2 (SAL_USE_VCLPLUGIN=gtk) or GTK3
> (SAL_USE_VCLPLUGIN=gtk3) ?

Sorry, I hadn't payed attention to that. It's GTK2 becuase it's the one installed in my computer.

> Status has been set to NEEDINFO, please set it back to UNCONFIRMED once
> requested information has been provided.

I'll continue my test and post it.

Regards,

Francisco
Comment 6 QA Administrators 2019-09-10 08:46:27 UTC Comment hidden (obsolete)
Comment 7 Xisco Faulí 2019-09-10 10:06:15 UTC
Hi Francisco,
Do you think it's a duplicate of bug 127306?
Comment 8 Francisco 2019-09-10 16:07:25 UTC
(In reply to Xisco Faulí from comment #7)
> Hi Francisco,
> Do you think it's a duplicate of bug 127306?

Not becuase of the message I got from console:
$ libreoffice 
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find ""
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find ""
terminate called after throwing an instance of 'com::sun::star::lang::DisposedException'

The message "getCurrentController was called on an already disposed or closed model." is missing. I emphasize this because this "getCurrentController" thing also appeared in a popup unider GTK.

Regadrs,

Francisco
Comment 9 Francisco 2019-09-11 00:36:22 UTC
Created attachment 154088 [details]
bug screenshot

It just has happened, using GTK2. This is the popup message.

Regards, 

Francisco
Comment 10 Francisco 2019-09-16 01:27:05 UTC
(In reply to Francisco from comment #5)

> I'll continue my test and post it.

Well, definitively it may happen with the chart already activated through doble click: sometimes, once the chart is activated, it chashes after the first click inside the chart (when attempting to select any part of it). And it happens with different charts, not one specific.

Regards,

Francisco
Comment 11 Francisco 2019-09-16 01:28:29 UTC
(In reply to Francisco from comment #10)
> (In reply to Francisco from comment #5)
> 
> > I'll continue my test and post it.
> 
> Well, definitively it may happen with the chart already activated through
> doble click: sometimes, once the chart is activated, it chashes after the
> first click inside the chart (when attempting to select any part of it). And
> it happens with different charts, not one specific.
> 
Sorry, forgot to add: it happens also with charts inserted in other apps, like Impress, for example.

Regards,

Francisco
Comment 12 Xisco Faulí 2019-09-17 05:21:17 UTC
To be certain the reported issue is not
related to corruption in the user profile, could you please reset your
Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and
re-test?

I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the issue is still present
Comment 13 Francisco 2019-09-17 12:40:14 UTC
(In reply to Xisco Faulí from comment #12)
> To be certain the reported issue is not
> related to corruption in the user profile, could you please reset your
> Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and
> re-test?
> 
> I have set the bug's status to 'NEEDINFO'. Please change it back to
> 'UNCONFIRMED' if the issue is still present

Ok, I'll try to work with a clean profile. I'll be a pain, but I'll do it.
Comment 14 Francisco 2019-09-17 16:22:49 UTC
(In reply to Francisco from comment #13)

> Ok, I'll try to work with a clean profile. I'll be a pain, but I'll do it.

The crash just happened using a clean profile, twice. This is the console info from last execution:

$ libreoffice 
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard: SelectionRequest too old
QXcbClipboard::setMimeData: Cannot set X11 selection owner
QXcbClipboard: Cannot transfer data, no data available
QXcbClipboard::setMimeData: Cannot set X11 selection owner
QXcbClipboard::setMimeData: Cannot set X11 selection owner
QXcbClipboard::setMimeData: Cannot set X11 selection owner
LibreOffice 6.3 - Fatal Error: getCurrentController was called on an already disposed or closed model
Comment 15 QA Administrators 2019-09-18 02:56:42 UTC Comment hidden (obsolete)
Comment 16 Alex Thurgood 2019-09-18 07:57:00 UTC
I get the folowing error message with

Version: 6.3.1.2
Build ID: b79626edf0065ac373bd1df5c28bd630b4424273
Threads CPU : 8; OS : Mac OS X 10.14.6; UI Render : par défaut; VCL: osx; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded

after creating a second chart via the wizard, then deleting that second chart and attempting to click on the first chart :

Fatal Error: getCurrentController was called on an already disposed or closed model

and the LO crashes and goes into recovery mode.

Obviously, I don't see any of the QK/KDE stuff as I'm on macOS.

Confirming.

Does seem similar to bug 127306 though.
Comment 17 Jean-Baptiste Faure 2019-09-21 15:33:03 UTC
Status set to NEW and OS to ALL from comment #16.

Best regards. JBF
Comment 18 Xisco Faulí 2019-09-23 10:53:55 UTC
Created attachment 154385 [details]
Sample file
Comment 19 Xisco Faulí 2019-09-23 10:55:07 UTC
How to reproduce it:
1. Open 'Sample file'
2. Click three times on any of the charts -> Chart dialog is prompted
3. Close the dialog a click somewhere outside the chart
4. Delete the chart
5. Click three times on the other chart

-> Crash
Comment 20 Xisco Faulí 2019-09-23 11:00:37 UTC
Regression introduced by 
https://cgit.freedesktop.org/libreoffice/core/commit/?id=b58aa94f1f365c746135470bceb97cc182c289bc
Closing as a dupe of bug 127306

*** This bug has been marked as a duplicate of bug 127306 ***
Comment 21 Francisco 2019-09-23 17:01:23 UTC
(In reply to Xisco Faulí from comment #20)
> Regression introduced by 
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=b58aa94f1f365c746135470bceb97cc182c289bc
> Closing as a dupe of bug 127306
> 
> *** This bug has been marked as a duplicate of bug 127306 ***

Xisco:

Thank you very much for finding specific steps to reproduce it. I really couldn't, as it happened to me when I was working and never could be sure.

Again, thank you.

Regards,

Francisco