Bug 122665 - Many "Exception in..." warnings when editing data using Basic macros
Summary: Many "Exception in..." warnings when editing data using Basic macros
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-12 00:24 UTC by Jim Avera
Modified: 2019-01-12 00:55 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Demo spreadsheet ("exceptions.ods"). See Steps to Reproduce. (428.89 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-01-12 00:25 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 00:24:59 UTC
Description:
A spreadsheet with Basic macros sometimes crashes Calc while the macro code deletes rows or whole Sheets.  Unfortunately the crash is not reproducible on demand, which makes me suspect some kind of memory corruption or referential integrity issue (e.g. following old pointers to deleted objects on the heap).

Although the crash is not reproducible, the following warnings always occur on the terminal during these operations:

** (soffice:31457): WARNING ** Exception in getAccessibleIndexInParent()
** (soffice:31457): WARNING ** Exception in getAccessibleName()
(repeated many times).


Steps to Reproduce:
1. Open the attached spreadsheet (exceptions.ods)and ENABLE MACROS.
2. Click the black "DISC+Reload" button.

Actual Results:
Many warnings on the terminal like
...Exception in getAccessibleIndexInParent()
...Exception in getAccessibleName()


Expected Results:
Silence.


Reproducible: Always


User Profile Reset: No



Additional Info:
The warnings happen in 5.x and later including master, but not in 3.6.7.2
Comment 1 Jim Avera 2019-01-12 00:25:43 UTC
Created attachment 148249 [details]
Demo spreadsheet ("exceptions.ods").  See Steps to Reproduce.
Comment 2 Jim Avera 2019-01-12 00:55:24 UTC
Ach!  running this test depends too much on my environment.

I'm closing this one.  Will file another with a more self-contained test.
Sorry for the noise.