Bug 122667 - Delete sheet causes many Exception in getAccessibleName() warnings
Summary: Delete sheet causes many Exception in getAccessibleName() warnings
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.0.alpha0+
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-12 02:42 UTC by Jim Avera
Modified: 2020-07-27 16:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Demo spreadsheet ("exceptions2.ods") (322.21 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-01-12 02:43 UTC, Jim Avera
Details
setup.sh - slam config files to allow bug to reproduce (1.19 MB, application/x-shellscript)
2019-07-20 05:28 UTC, Jim Avera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2019-01-12 02:42:21 UTC
Description:
When an existing Sheet is deleted using the GUI from the attached spreadsheet, almost 500 lines of warnings appear on the terminal, repeating these:

** (soffice:14578): WARNING **: ... Exception in getAccessibleIndexInParent()
** (soffice:14578): WARNING **: ... Exception in getAccessibleName()

This occurs with the attached spreadsheet, with macros DISABLED.

Steps to Reproduce:
1. Open the attached demo spreadsheet ("exceptions2.ods")
     DO NOT enable macros
2. Click the sheet tab "AAPL"
3. Rightclick->Delete Sheet; click Yes to confirm

Actual Results:
Hundreds of warnings appear on the terminal.

Expected Results:
Reassuring silence.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.3.0.0.alpha0+
Build ID: 32b85ec64e5c901369ce3ce5dbda0e96f2ec7fc0
CPU threads: 12; OS: Linux 4.15; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-01-07_16:08:14
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 Jim Avera 2019-01-12 02:43:04 UTC
Created attachment 148253 [details]
Demo spreadsheet ("exceptions2.ods")
Comment 2 raal 2019-01-12 07:40:49 UTC
No repro with Version: 6.3.0.0.alpha0+
Build ID: 892a5cfe557edb405ec0037676f02a1c24dd76ec
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Comment 3 Xavier Van Wijmeersch 2019-01-12 10:41:09 UTC
no repro with

Version: 6.3.0.0.alpha0+
Build ID: 62142168e42a050d052d7d75fafd8f6e9cf2a1af
CPU threads: 2; OS: Linux 4.19; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-01-10_12:30:00
Locale: nl-BE (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 4 Xisco Faulí 2019-01-13 18:08:08 UTC
> Additional Info:
> Version: 6.3.0.0.alpha0+
> Build ID: 32b85ec64e5c901369ce3ce5dbda0e96f2ec7fc0
> CPU threads: 12; OS: Linux 4.15; UI render: default; VCL: gtk3; 
> TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time:
> 2019-01-07_16:08:14

Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 5 Jim Avera 2019-01-14 20:22:57 UTC
There is something about my personal environment which provokes this; the problem does *not* happen when logged in as another user.  

I tried removing my profile and removing all environment variables other than PATH=/bin:/usr/bin and DISPLAY, and the problem still happens when logged in as me (but not as another user).

I'm using latest master, installed parallel to other version.

Give me a few days to try to isolate what is provoking this. I'll post more when I know more.
-Jim
Comment 6 Jim Avera 2019-01-15 08:49:25 UTC
DBUS or some other IPC-based thing must be provoking Libre Office to give these warnings.  Possibly related to my desktop environment (Gnome on Ubuntu, pretty standard AFAIK).

Does anyone have any ideas?

Again, resetting profile and eliminating all env variables does not make the problem go away.  But logging in as a different user does make the problem disappear.
Comment 7 Xisco Faulí 2019-01-17 11:27:07 UTC
(In reply to Jim Avera from comment #5)
> Give me a few days to try to isolate what is provoking this. I'll post more
> when I know more.
> -Jim

Hi Jim,
Please, investigate it a bit further because you're the only one facing this problem,,,
Comment 8 QA Administrators 2019-07-17 02:49:47 UTC Comment hidden (obsolete)
Comment 9 Jim Avera 2019-07-20 05:24:57 UTC
Ok, some progress!  I was able to isolate the conditions to make the bug happen down to having the "gsconnect" gnome shell extension installed to monitor my Android phone.  Yea, what the heck does that have to do with Libre Office?!?

Anyway, I will attach a script ("setup.sh") which, when executed, will slam the relevant files into the current user's configuration.  

(The script unpacks an archive into .local/share/gnome-shell/extensions/gsconnect@andyholmes.github.io and stores minimal dconf settings for it).

IMPORTANT: Don't run this script as a normal user; instead, create a test user and login as that test user first.  I used a Virtual Machine to prevent any possible contamination of my real system.

STEPS TO REPRODUCE:

1. Log into a VM after making a checkpoint, or alternatively create a test user e.g.
      sudo newuser testuser
Comment 10 Jim Avera 2019-07-20 05:28:18 UTC
Created attachment 152884 [details]
setup.sh - slam config files to allow bug to reproduce
Comment 11 Jim Avera 2019-07-20 05:28:37 UTC
... sorry hit RETURN before I was finished...

STEPS TO REPRODUCE:

1. Log into a VM after making a checkpoint, or alternatively create 
a test user e.g. with   sudo newuser testuser, log out and login as that user.

2. Execute the attached "setup.sh"    #attached

3. soffice exceptions2.ods  #attached

4. Delete the "AAPL" sheet

RESULTS: Many exception messages on the terminal
Comment 12 Jim Avera 2019-07-20 05:31:30 UTC
(sigh).  You have to log out and log in again after running setup.sh
Comment 13 Xisco Faulí 2020-01-20 16:04:59 UTC
Hello Jim,
A new major release of LibreOffice is available since this bug was reported.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 14 Jim Avera 2020-01-21 00:32:23 UTC
Yes, bug is still there with latest master 

Version: 6.5.0.0.alpha0+
Build ID: d1730033b4fa1f0cfeedd136dfb23ec01a194ec0
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-01-20_03:30:24
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

Note the full STEPS TO REPRODUCE as follows:

1. sudo adduser testuser  # create disposable user account (or use a VM)
2. Log out and log in as 'testuser'
3. Run the "setup.sh" script (download from this bug)

4. Start LO, open "exceptions2.ods" (download from this bug)
   Do NOT enable macros.

5. Delete the sheet "AAPL"

RESULTS: Many exception messages like these:
  ** (soffice:17889): WARNING **: 16:27:33.577: Exception in getAccessibleName()

  ** (soffice:17889): WARNING **: 16:27:33.577: Exception in getAccessibleDescription()

Expected Results: No exceptions.
Comment 15 Timur 2020-01-25 13:32:07 UTC
I didn't test but I do not see a point in all those steps nor in fixing this.
Comment 16 Jim Avera 2020-01-25 18:45:34 UTC
The point is that something in how LO interacts with gnome is making LO break and spew errors onto the terminal.

I can't tell you exactly what triggers the errors, only that I've narrowed it down to some OS interaction which occurs when a particular gnome extension installed.  

The setup script I provided allows easy test and debugging without requiring you (i.e. a developer) to actually install this gnome extension in your personal setup.
Comment 17 Xisco Faulí 2020-07-27 10:57:57 UTC
(In reply to Jim Avera from comment #16)
> The point is that something in how LO interacts with gnome is making LO
> break and spew errors onto the terminal.
> 
> I can't tell you exactly what triggers the errors, only that I've narrowed
> it down to some OS interaction which occurs when a particular gnome
> extension installed.  
> 
> The setup script I provided allows easy test and debugging without requiring
> you (i.e. a developer) to actually install this gnome extension in your
> personal setup.

Hi jim,
Which extension is it ?
Comment 18 Jim Avera 2020-07-27 16:47:45 UTC
> Hi jim,   Which extension is it ?

It was gsconnect.  I uninstalled it to prevent the messages a while ago.

The problem seems to be gone now.  Recently I updated my OS (from Ubuntu 19.10 to 20.04), which changed to a new version of GNOME.  And LO has moved along, of course. 

So I'm closing this ticket (WFM).

Thanks for following up!