Bug 144203 - Lilo Macro starbase which utilize cursor position and selection is freezing calc document
Summary: Lilo Macro starbase which utilize cursor position and selection is freezing c...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks:
 
Reported: 2021-08-31 00:45 UTC by elias estatistics
Modified: 2022-05-25 13:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
calc sheet with macro (24.19 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-08-31 00:45 UTC, elias estatistics
Details

Note You need to log in before you can comment on or make changes to this bug.
Description elias estatistics 2021-08-31 00:45:25 UTC
Created attachment 174657 [details]
calc sheet with macro

Lilo Macro starbase is freezing calc document and I cannot unfreeze it without closing it. 


Please run the macro that is INSIDE the calc sheet.

You will find that calc sheet is freezed while only macro is utilizing cersor position and selection.

Unfreezing is almost impossible without terminating the process.
Comment 1 elias estatistics 2021-08-31 01:28:54 UTC
Here says that it can create freezing. 
So it may not be a bug. 



https://wiki.openoffice.org/wiki/Writer/API/View_cursor
Comment 2 Buovjaga 2022-05-25 13:56:59 UTC
So I assume we are supposed to copy the macro from the text content of cells O37:AB74 into a macro and run it.

I got this:

BASIC runtime error.
An exception occurred 
Type: com.sun.star.uno.RuntimeException
Message: no text selection at /home/tonttu/libreoffice/sw/source/uibase/uno/unotxvw.cxx:963.

pointing to line oVCur.collapseToEnd

However, LibreOffice froze. It created a Writer document with a chart.

It seemed to be a regression that started in 7.2. I bibisected it, but the blamed commit does not look related:
https://git.libreoffice.org/core/commit/5e75b7ca828954f9a23d7a3e8c3be3e0934210b3
macOS: use HITheme to draw listbox window border

Arch Linux 64-bit
Version: 7.4.0.0.alpha1+ / LibreOffice Community
Build ID: ff2b4bff61d2e1679bb525d754c960c48b81c495
CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 25 May 2022