https://bugs.freedesktop.org/show_bug.cgi?id=73294
Priority: medium
Bug ID: 73294
Assignee: [email protected]
Summary: Other: XSortable::sort (called from Basic) crashes -
core dumped
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: Other
Whiteboard: BSA
Status: UNCONFIRMED
Version: 4.1.4.2 release
Component: Spreadsheet
Product: LibreOffice
Created attachment 91507
--> https://bugs.freedesktop.org/attachment.cgi?id=91507&action=edit
Test data - must be installed as /tmp/tickers.csv
Problem description:
The attached spreadsheet has some complicated Basic macros but they worked in
LO 3.6.x, but crash the process using LO 4.2.0.1 (silent abort, followed by an
apport run).
I traced it down to a call to the Sort() function, which
calls a UNO function to sort some rows. Here is the relevant
Basic code (which seems to abort only in context):
dim args() as new com.sun.star.beans.PropertyValue
sCellrangeName as String (contains "$A$8:AC47")
oCellRange = oSheet.getCellRangeByName(sCellrangeName)
oCellRange.Sort(args()) 'never returns, process aborts
Steps to reproduce (Unix only, sorry):
1. Download the attached "tickers.csv" into /tmp/tickers.csv
(this path is hard-coded in the demo program)
2. Open the attached j.ods spreadsheet. Enable macros.
3. (Click the Design Mode ON/OFF icon if necessary to exit
design mode -- working around bug 73293)
4. Click the yellow "Reload tickers.csv" button
Click through a few MsgBox displays.
If it does not crash, repeat - it always crashes by the 2nd try.
The code is located in Basic macro module j.ods -> Standard -> SortUtils
(search for "DEBUG BEFORE sort")
Current behavior: Fatal process abort
Expected behavior: Should work or give a useful error message
Operating System: Ubuntu
Version: 4.1.4.2 release
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs