Bug 77348 - calc crashes with "invalid vector<T> subscript" when lines should be inserted or removed
Summary: calc crashes with "invalid vector<T> subscript" when lines should be inserted...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Windows (All)
: high blocker
Assignee: Not Assigned
Whiteboard: (target:4.2.4)(target:4.3.0)
Keywords: regression
Depends on:
Reported: 2014-04-11 22:35 UTC by Stefan_Lange_KA@T-Online.de
Modified: 2014-04-13 15:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Test document to demonstrate the error (extract of a bigger document) (45.37 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-04-11 22:35 UTC, Stefan_Lange_KA@T-Online.de
cut/paste 'invalid vector<T> bug' / libreoffice_4_2_3_3_-_invalid_vector_t_subscript_bug (163.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-04-12 11:22 UTC, panoworks

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan_Lange_KA@T-Online.de 2014-04-11 22:35:29 UTC
Created attachment 97241 [details]
Test document to demonstrate the error (extract of a bigger document)

The error occurs in LibreOfficde Version: / Build-ID: 882f8a0a489bc99a9e60c7905a60226254cb6ff0 - not in 4.2.3 rc!

See attached document!

When I try to insert a new line in sheet "Altix I bis III" before the line #20 or when I try to delete the line #19 there are no problems.
But when I try to insert a new line before the line #19 (or #18 or ...) or when I try to delete the line #18 (or #17 or ...) calc crashes with message "invalid vector<T> subscript". The behavior is the same in sheet "Altix IV und V" (delete lines #12 OK / 11 ... crash, insert line before line 13  OK/ 12 ... crash).
In both sheets are formulas with funktions "WENN" and "SUMMENPRODUKT" in columns Z, AA, AB, ...

This error does/did not occur in earlier versions of LO 4.2 and in LO 3.6.

The attached file is an extract of a bigger document, that I must maintain with LO 3.6 until the error is fixed - or I must downgrade to LO 4.2.2.
Comment 1 mike.hall 2014-04-12 09:30:56 UTC
I can confirm under Win 7 64bit, experienced with a new tiny spreadsheet created from scratch with 4.2.3.
I am setting to 'new' and raising priority to 'blocker' as it renders Calc unusable
Comment 2 mike.hall 2014-04-12 11:00:59 UTC
My example works OK under on Win 8.1/64
Comment 3 panoworks 2014-04-12 11:21:56 UTC
I suspect I'm running into the same bug, even if the case is a bit different (cut/paste).  See the attached file 'libreoffice_4_2_3_3_-_invalid_vector_t_subscript_bug.ods'.

1. Go to Z1125
2. extend the selection to the right, and down.
3a. Copy
3b. Cut
4. Go up in the sheet to the other data
5. attempt to paste the data you just copied/cut below that data

If you chose to Copy, all should be fine.  If you chose to Cut, the "invalid vector<T> subscript" should rear its head.

Note that if you cut/paste the first column data (a formula) separately, the crash does not occur.  It also doesn't appear to occur if you only do a few rows at a time.  I haven't been able to narrow it down further.
Comment 4 panoworks 2014-04-12 11:22:37 UTC
Created attachment 97255 [details]
cut/paste 'invalid vector<T> bug'  / libreoffice_4_2_3_3_-_invalid_vector_t_subscript_bug
Comment 5 Julien Nabet 2014-04-12 22:59:47 UTC
On pc Debian x86-64 with 4.2 sources updated some days ago, I don't reproduce the crash.
Just for the test, could you give a try to daily build from 4.2 branch, http://dev-builds.libreoffice.org/daily/libreoffice-4-2/Win-x86@42/current/
Comment 6 Stefan_Lange_KA@T-Online.de 2014-04-13 00:10:54 UTC
With LO Version: Build ID: c070fe636d75b74874c5e93f5cd5d19bd7af7e6d
TinderBox: Win-x86@42, Branch:libreoffice-4-2, Time: 2014-04-12_03:20:43
I cannot reproduce the error - neither with the spreadsheet uploaded for documentation nor with my bigger orginal document.
Comment 7 Julien Nabet 2014-04-13 07:59:50 UTC
Thank you Stefan for your feedback.
Let's put this as WFM (from 4.2.4/4.3.0)

Mike/Panoworks: give a try too with 4.2.4. If you can still reproduce this, don't hesitate to open a new tracker (since the bug would be different even if same symptoms).
Comment 8 mike.hall 2014-04-13 15:34:04 UTC
Yes, tested with and I confirm my example no longer has problems. Happy with WFM.