Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1397992

Summary: [fix available] Crash in calc after closing dialog box with a11y enabled
Product: Red Hat Enterprise Linux 7 Reporter: Jiri Koten <jkoten>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: bsanford, jraising, lmiksik
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libreoffice-5.0.6.2-5.el7 Doc Type: Bug Fix
Doc Text:
Cause: Mismanagement of accessibility resources Consequence: LibreOffice Calc CSV Import Dialog causes a crash Fix: Improved accessibility resource management Result: No crash
Story Points: ---
Clone Of:
: 1425536 (view as bug list) Environment:
Last Closed: 2017-08-01 12:21:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1425536    
Attachments:
Description Flags
backtrace
none
I suspect this will fix it none

Description Jiri Koten 2016-11-23 18:29:37 UTC
Created attachment 1223393 [details]
backtrace

Description of problem:
Libreoffice calc crashes after closing dialog box. This seems to only happen on system which was upgraded to 7.3 and with existing user.

With clean install or new user the issue is not reproducible.

console output [snip]:
(soffice:8177): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:8177): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:8177): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:8177): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:8177): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
 ...
** (soffice:8177): WARNING **: Unknown event notification 34

** (soffice:8177): WARNING **: Unknown event notification 35

** (soffice:8177): WARNING **: Unknown event notification 34

** (soffice:8177): WARNING **: Unknown event notification 35

** (soffice:8177): WARNING **: Unknown event notification 34

** (soffice:8177): WARNING **: Unknown event notification 35



Version-Release number of selected component (if applicable):
libreoffice-5.0.6.2-3.el7
gtk2-2.24.28-8.el7

How reproducible:
100%

Steps to Reproduce:
1. Load spreadsheet (ods)
2. Go to Sort dialog; Data > Sort
3. Click Cancel

Actual results:
Crash - recovery dialog

Expected results:
No crash

Additional info:

Comment 1 Caolan McNamara 2016-11-24 10:55:27 UTC
I have seen that backtrace before I think

Comment 2 Caolan McNamara 2016-11-24 11:25:32 UTC
This crashes for some users and not for others can I confirm my suspicion that the difference is that 

gsettings get org.gnome.desktop.interface toolkit-accessibility

is true for the crashing config and false for the not-crashing config.

If this is the case then a temporary workaround may be (unless the user needs a11y support of course) is to

gsettings set org.gnome.desktop.interface toolkit-accessibility false

Comment 3 Caolan McNamara 2016-11-24 11:30:46 UTC
Created attachment 1223794 [details]
I suspect this will fix it

My proposed patch, but I need to build and test this.

Comment 5 Jiri Koten 2016-11-24 12:33:25 UTC
(In reply to Caolan McNamara from comment #2)
> This crashes for some users and not for others can I confirm my suspicion
> that the difference is that 
> 
> gsettings get org.gnome.desktop.interface toolkit-accessibility
> 
> is true for the crashing config and false for the not-crashing config.
> 
> If this is the case then a temporary workaround may be (unless the user
> needs a11y support of course) is to
> 
> gsettings set org.gnome.desktop.interface toolkit-accessibility false

I can confirm that with "toolkit-accessibility" key set to false, I'm not able to reproduce the crash.

Comment 8 Caolan McNamara 2016-11-25 09:05:58 UTC
yeah, proposed patch works

Comment 11 Jiri Koten 2016-12-05 17:33:37 UTC
I can confirm the crash is fixed. 

There are still warnings present in console output.

** (soffice:11703): WARNING **: Invalidate all children called


(soffice:11703): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:11703): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:11703): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:11703): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

** (soffice:11703): WARNING **: Unknown event notification 34

** (soffice:11703): WARNING **: Unknown event notification 35

** (soffice:11703): WARNING **: Unknown event notification 34

** (soffice:11703): WARNING **: Unknown event notification 35

** (soffice:11703): WARNING **: Unknown event notification 34

** (soffice:11703): WARNING **: Unknown event notification 35
(soffice:11703): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:11703): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

Comment 15 errata-xmlrpc 2017-08-01 12:21:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:1975