Launchpad has imported 17 comments from the remote bug at
https://bugs.documentfoundation.org/show_bug.cgi?id=143940.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2021-08-18T16:09:19+00:00 Heather Ellsworth wrote:

Created attachment 174389
faulty-spreadsheet

Here is a spreadsheet that is 897 rows and 9 columns that is really
nothing fancy. If you add a line anywhere in the middle of the existing
lines (insert above or below) and then try to save the change, the
spreadsheet crashes.

There is no crash after adding columns or sheets... just lines. And you
can add a line at the end of the text and save just fine. The crash only
occurs when you add a line in the middle of the sheet and try to save.

I've tried creating a new spreadsheet of equal size and cannot reproduce
the issue so I'm not sure what is special about this spreadsheet that
causes the crash.

The issue was reported in launchpad based off of Ubuntu 20.04 and
Libreoffice 6.4.7 but it happens easily on 7.1.5 and 7.2.0 rc3.

The corresponding launchpad bug:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735

I'll attach the faulty spreadsheet as well as the user's system state
information (remember this is relative to 6.4.7, but the same thing
happens on 7.2.0)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/7

------------------------------------------------------------------------
On 2021-08-18T16:10:05+00:00 Heather Ellsworth wrote:

Created attachment 174390
stacktrace signature

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/8

------------------------------------------------------------------------
On 2021-08-18T16:10:25+00:00 Heather Ellsworth wrote:

Created attachment 174391
top of stacktrace

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/9

------------------------------------------------------------------------
On 2021-08-18T16:10:49+00:00 Heather Ellsworth wrote:

Created attachment 174392
segv analysis

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/10

------------------------------------------------------------------------
On 2021-08-18T16:11:11+00:00 Heather Ellsworth wrote:

Created attachment 174393
registers

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/11

------------------------------------------------------------------------
On 2021-08-18T16:11:30+00:00 Heather Ellsworth wrote:

Created attachment 174394
proc status

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/12

------------------------------------------------------------------------
On 2021-08-18T16:11:48+00:00 Heather Ellsworth wrote:

Created attachment 174395
proc maps

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/13

------------------------------------------------------------------------
On 2021-08-18T16:12:42+00:00 Heather Ellsworth wrote:

Created attachment 174396
faulty-spreadsheet

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/14

------------------------------------------------------------------------
On 2021-08-18T16:45:35+00:00 Miguelangelrv wrote:

I cannot repro with
Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Windows 10.0 Build 21390; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL

Please test with a clean profile, Menu/Help/Restart in Safe Mode

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/15

------------------------------------------------------------------------
On 2021-08-18T19:44:45+00:00 Heather Ellsworth wrote:

I did not test with Windows and unfortunately I don't have a Windows
environment for testing, but the issue is present in Ubuntu 20.04 and
newer.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/16

------------------------------------------------------------------------
On 2021-08-19T03:46:03+00:00 Qa-admin-q wrote:

[Automated Action] NeedInfo-To-Unconfirmed

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/18

------------------------------------------------------------------------
On 2021-08-19T08:47:58+00:00 timur wrote:

No repro 6.1, repro LO 6.2, 7.2.0 and 7.3+ master in Win 7 64-bit and Lin GTK3 
Mint 19 64-bit. Regression.
I added a row above 828.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/19

------------------------------------------------------------------------
On 2021-08-19T08:53:18+00:00 timur wrote:

I'll try with bibisect.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/20

------------------------------------------------------------------------
On 2021-08-19T08:55:36+00:00 julien2412 wrote:

Created attachment 174403
bt with debug symbols

On pc Debian x86-64 with master sources updated today, I got an
assertion.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/21

------------------------------------------------------------------------
On 2021-08-19T09:11:09+00:00 timur wrote:

6.2 Linux
    commit 5e777f23fd0118f6649f0d9e30eb77a72f1099e4
    Date:   Fri Aug 17 09:44:34 2018 +0200
        source sha:1b95eb30f6358a9ebdedee2888be8273120669c8
        pre sha:7125c6798f94a8b7345372ba36dbabd89bab8820

    author      Noel Grandin <noel.gran...@collabora.co.uk>     2018-08-16 
    committer   Noel Grandin <noel.gran...@collabora.co.uk>     2018-08-17 
    commit      1b95eb30f6358a9ebdedee2888be8273120669c8 (patch)
    tree        45ddd96753d0fac4311529da5af61994dfd56181
    parent      7125c6798f94a8b7345372ba36dbabd89bab8820 (diff)
    loplugin:useuniqueptr in ScColumnRowStylesBase

Hi Noel, please see this Calc crash.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/22

------------------------------------------------------------------------
On 2021-08-19T12:00:55+00:00 julien2412 wrote:

I reverted the patch manually + removed an assert instruction, I don't 
reproduce the crash indeed.
However, I noticed this log:
warn:legacy.osl:92035:92035:sc/source/filter/xml/XMLStylesExportHelper.cxx:976: 
GetStyleNameByIndex: invalid index

OUString* ScColumnRowStylesBase::GetStyleNameByIndex(const sal_Int32 nIndex)
{
    if ( nIndex < 0 || nIndex >= sal::static_int_cast<sal_Int32>( 
aStyleNames.size() ) )
    {
        // should no longer happen, use first style then
        OSL_FAIL("GetStyleNameByIndex: invalid index");
        return aStyleNames[0];
    }
    return aStyleNames[nIndex];
}

I may be wrong but IMHO the Noel's patch uncovered an already existing
bug here.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/23

------------------------------------------------------------------------
On 2021-08-19T21:41:22+00:00 julien2412 wrote:

If you remove 1 line and save, then you add a line and save it works.

Eike: I added some traces in ScXMLExport::ExportFormatRanges (see
https://opengrok.libreoffice.org/xref/core/sc/source/filter/xml/xmlexprt.cxx?r=581b2cf7&mo=59108&fi=1525#1525)

OK case when adding a new row after I delete one or more rows first:
...
TODO ExportFormatRanges nStartCol=9 nEndCol=-1 nStartRow=837 nEndRow=838
TODO ExportFormatRanges nStartCol=9 nEndCol=5 nStartRow=838 nEndRow=841
TODO ExportFormatRanges nStartCol=7 nEndCol=1023 nStartRow=841 nEndRow=1048575
TODO ExportFormatRanges nStartCol=0 nEndCol=0 nStartRow=0 nEndRow=0
TODO ExportFormatRanges nStartCol=0 nEndCol=0 nStartRow=0 nEndRow=0

KO case when adding a new row without deleting any rows before:
...
TODO ExportFormatRanges nStartCol=9 nEndCol=-1 nStartRow=836 nEndRow=838
TODO ExportFormatRanges nStartCol=9 nEndCol=-1 nStartRow=838 nEndRow=839
TODO ExportFormatRanges nStartCol=9 nEndCol=5 nStartRow=839 nEndRow=842
TODO ExportFormatRanges nStartCol=7 nEndCol=1023 nStartRow=842 nEndRow=1048576
soffice.bin: 
/home/julien/lo/libreoffice/sc/source/filter/xml/xmlexprt.cxx:1499: void 
ScXMLExport::OpenRow(const sal_Int32, const sal_Int32, const sal_Int32, 
ScXMLCachedRowAttrAccess &): Assertion `nIndex >= 0 && "coverity#1438402"' 
failed.

It seems the pb appears when nEndRow=1048576

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1938735/comments/24


** Changed in: df-libreoffice
       Status: Unknown => Confirmed

** Changed in: df-libreoffice
   Importance: Unknown => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1938735

Title:
  Can't insert a row into a OpenOffice calc file

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/1938735/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to