Bug 45991 - Crash when merging cells that have been pasted as Formatted text from copy of spreadsheet cells
Summary: Crash when merging cells that have been pasted as Formatted text from copy of...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: Other All
: medium major
Assignee: Cédric Bosdonnat
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: mab3.5
  Show dependency treegraph
 
Reported: 2012-02-13 05:41 UTC by Cor Nouws
Modified: 2012-07-07 08:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
bt 3.5 branch with symbols (5.58 KB, text/plain)
2012-02-27 13:47 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cor Nouws 2012-02-13 05:41:10 UTC
- new spreadsheet
- copy two cells
- new writer document
- enter, paste special > formatted text (rtf)
  > crash

This does not happen with a table created in Writer
Comment 1 Cor Nouws 2012-02-13 05:48:41 UTC
Whow, stupid me :-)
Forgotten the essential step!

(In reply to comment #0)

> - enter, paste special > formatted text (rtf)

- now select cells
- choose menu Table > Merge cells

>   > crash
Comment 2 Cor Nouws 2012-02-13 06:06:12 UTC
run with gdb:

[Thread 0xb223bb70 (LWP 4155) exited]
[New Thread 0xb223bb70 (LWP 4171)]
[Thread 0xb223bb70 (LWP 4171) exited]

Program received signal SIGSEGV, Segmentation fault.
0xaa74cf99 in SwModify::Add(SwClient*) () from /home/cono/LibreOffice/350rc3/libreoffice3.5/program/../program/libswlo.so

(does that make sense?)
Comment 3 Markus Mohrhard 2012-02-13 15:17:31 UTC
According to Backtrace this is a Writer bug.
Comment 4 sasha.libreoffice 2012-02-13 23:11:16 UTC
can not reproduce this in 3.3.4, 3.5.0 rc3 and 3.6.0 master on Fedora 64 bit
in 3.5.0 and 3.6.0 nothing inserts into Writer (empty cells copied)
and 3.6.0 complains on console while inserting as formatted RTF:
warn:vcl:2182:1:/home/s/libre-master/core/vcl/source/control/button.cxx:1775: No handler installed for OKButton
warn:legacy.osl:2182:1:/home/s/libre-master/core/writerfilter/source/dmapper/DomainMapper.cxx:1426: PropertyMap has to be valid!
warn:legacy.osl:2182:1:/home/s/libre-master/core/writerfilter/source/dmapper/DomainMapper_Impl.cxx:380: no context of this type available
warn:legacy.osl:2182:1:/home/s/libre-master/core/writerfilter/source/dmapper/DomainMapper_Impl.cxx:354: section stack already empty
warn:legacy.osl:2182:1:/home/s/libre-master/core/writerfilter/source/dmapper/DomainMapper_Impl.cxx:380: no context of this type available
warn:legacy.osl:2182:1:/home/s/libre-master/core/writerfilter/source/dmapper/DomainMapper_Impl.cxx:3534: Section context is not in the stack!

version of master: 97fdf02-9eed775-f061262
Comment 5 Cor Nouws 2012-02-13 23:21:16 UTC
@sacha:

(In reply to comment #4)
> can not reproduce this in 3.3.4, 3.5.0 rc3 and 3.6.0 master on Fedora 64 bit

have you noticed that I was so studpid to forget the essential step in my intial report? I corrected that in comment #2!
thanks - Cor
Comment 6 sasha.libreoffice 2012-02-13 23:30:19 UTC
I used these steps:
1. Start Calc and select 2 empty cells
2. press Ctrl-C
3. Start Writer and press Ctrl-Shift-V and selected "Formatted RTF
at this place in 3.3.4 appears table with 2 cells, and in 3.5.0 and 3.6.0 appears nothing
in 3.3.4:
4. Select both cells and use Table-> merge cells

if in step 1 enter something into cells, then in step 3 table appears allways, but not crashes.
My be this problem is 32 bit specific?
Comment 7 Cor Nouws 2012-02-14 07:01:01 UTC
(In reply to comment #6)

> at this place in 3.3.4 appears table with 2 cells, and in 3.5.0 and 3.6.0 appears nothing

maybe the boundaries are not visible (Table > Table-boundaries ) ?

> in 3.3.4:
> 4. Select both cells and use Table-> merge cells

It is a 3.5.0 only crash.

> My be this problem is 32 bit specific?

Might be...

Just started Win7 in a virtualBox. Same crash there!
Comment 8 raal 2012-02-14 12:41:02 UTC
I can reproduce crash on Ubuntu 64 bit, LO 3.5.0RC3
LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735
Comment 9 Julien Nabet 2012-02-27 13:47:01 UTC
Created attachment 57735 [details]
bt 3.5 branch with symbols

Reproduced the bug in 3.5 branch (last commit b3a326c16127c9f696e6e4e264729991c4ef4981 from 23/02/2012).
I attached bt with symbols.
Comment 10 Josh Heidenreich 2012-02-28 15:43:09 UTC
Reproduced in (2 days old) master; e9d045f0f476c80060a350c08d8b253eaf41c41f

Steps I used:
1. Create a new spreadsheet document.
2. Type "a" into one cell and "b" into the cell next to it.
3. Copy both cells.
4. Create a new writer document.
5. Paste special (RTF)
6. Merge the cells (in writer).

If I merge beforehand (in spreadsheet), the paste works fine, it's the merge operation which fails.
Comment 11 Josh Heidenreich 2012-02-28 19:16:16 UTC
Trimmed back trace:

#0  SwTableLine::GetUpper (this=0x0)
    at sw/inc/swtable.hxx:347
#1  SwTable::IsTblComplex (this=0x2abd0a0)
    at sw/source/core/table/swtable.cxx:1543
#2  GetTblSel (rCrsr=..., rBoxes=..., eSearchType=2)
    at sw/source/core/frmedt/tblsel.cxx:208
#3  GetTblSel (rShell=..., rBoxes=..., eSearchType=2)
    at sw/source/core/frmedt/tblsel.cxx:180
#4  SwTableShell::GetState (this=0x2a97840, rSet=...)
    at sw/source/ui/shells/tabsh.cxx:1314
#5  SfxStubSwTableShellGetState (pShell=0x2a97840, rSet=...)
    at workdir/unxlngx6.pro/SdiTarget/sw/sdi/swslots.hxx:9872
#6  SfxDispatcher::_FillState(SfxSlotServer const&, SfxItemSet&, SfxSlot const*)()
    from solver/unxlngx6.pro/installation/opt/program/libsfxlo.so
#7  ?? ()
    from solver/unxlngx6.pro/installation/opt/program/libsfxlo.so
#8  ?? ()
    from solver/unxlngx6.pro/installation/opt/program/libsfxlo.so
#9  Timer::ImplTimerCallbackProc() ()
    from solver/unxlngx6.pro/installation/opt/program/libvcllo.so
#10 ?? ()
    from solver/unxlngx6.pro/installation/opt/program/libvclplug_gtklo.so
Comment 12 Cor Nouws 2012-03-03 15:10:52 UTC
(In reply to comment #3)
> According to Backtrace this is a Writer bug.

Unless the data pasted from Calc is too special ? ;-)
Comment 13 Cor Nouws 2012-03-13 08:24:50 UTC
Checked the contents xml for a table pasted frm Calc and one created in Writer:

PASTED as RTF FROM CALC
<table:table table:name="Table1" table:style-name="Table1">
<table:table-column table:style-name="Table1.A"/>
<table:table-column table:style-name="Table1.B"/>
<table:table-row table:style-name="Table1.1">
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="P1"/>
</table:table-cell>
<table:table-cell table:style-name="Table1.A1" office:value-type="string">
<text:p text:style-name="P1"/>
</table:table-cell>
</table:table-row>
</table:table>

CREATED IN WRITER
</text:p><table:table table:name="Table2" table:style-name="Table2">
<table:table-column table:style-name="Table2.A"/>
<table:table-column table:style-name="Table2.B"/>
<table:table-row>
<table:table-cell office:value-type="string">
<text:p text:style-name="Table_20_Contents"/>
</table:table-cell>
<table:table-cell office:value-type="string">
<text:p text:style-name="Table_20_Contents"/>
</table:table-cell>
</table:table-row>
</table:table>

I would say, nothing odd..

It occurs that when I create a document, save it, merge to crash and then let the document be recovered, it does not crash again.
Also sometimes after a bit edit /  save the crash does not happen.

So seems to be related to something as a dead reference to whatever ... ?

For the record: Experimental features disabled
Comment 14 bfoman (inactive) 2012-06-04 05:10:41 UTC
Checked with:
LO 3.5.4.2 
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit

Could not reproduce.
Comment 15 Cor Nouws 2012-07-07 08:37:44 UTC
Cannot reproduce this any more in 3.6.0 beta 3
so close as