Bug 288205 - crash in RTree converting xls to ods with calligraconverter
Summary: crash in RTree converting xls to ods with calligraconverter
Status: RESOLVED DUPLICATE of bug 281670
Alias: None
Product: calligrasheets
Classification: Applications
Component: filter/xls (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Sheets (KSpread) Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-04 14:33 UTC by Jos van den Oever
Modified: 2011-12-05 02:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
file showing the problem (22.00 KB, application/vnd.ms-excel)
2011-12-04 14:34 UTC, Jos van den Oever
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jos van den Oever 2011-12-04 14:33:19 UTC
Version:           unspecified
OS:                Linux

When running
  calligraconverter me00_auto_format_classic1.xls out.ods
a reproducable crash occurs. Valgrind indicates an error that is probably the initial problem:

==18191== Invalid read of size 8
==18191==    at 0x1688EDD4: Calligra::Tables::RTree<Calligra::Tables::SharedSubStyle>::intersectingPairs(QRectF const&) const (RTree.h:552)
==18191==    by 0x16889970: Calligra::Tables::StyleStorage::saveOdfCreateDefaultStyles(int&, int&, Calligra::Tables::OdfSavingContext&) const (StyleStorage.cpp:313)
==18191==    by 0x1685927F: Calligra::Tables::Sheet::saveOdfColRowCell(KoXmlWriter&, KoGenStyles&, int, int, Calligra::Tables::OdfSavingContext&) (Sheet.cpp:2627)
==18191==    by 0x1685B061: Calligra::Tables::Sheet::saveOdf(Calligra::Tables::OdfSavingContext&) (Sheet.cpp:2566)
==18191==    by 0x1682C429: Calligra::Tables::Map::saveOdf(KoXmlWriter&, KoShapeSavingContext&) (Map.cpp:432)
==18191==    by 0x1681481D: Calligra::Tables::DocBase::saveOdfHelper(KoOdfDocument::SavingContext&, Calligra::Tables::DocBase::SaveFlag, QString*) (DocBase.cpp:158)
==18191==    by 0x1727E958: Calligra::Tables::Doc::saveOdfHelper(KoOdfDocument::SavingContext&, Calligra::Tables::DocBase::SaveFlag, QString*) (Doc.cpp:655)
==18191==    by 0x4C891CB: KoDocument::saveNativeFormatODF(KoStore*, QByteArray const&) (KoDocument.cpp:900)
==18191==    by 0x4C89F0D: KoDocument::saveNativeFormat(QString const&) (KoDocument.cpp:884)
==18191==    by 0x4CD800C: KoFilterChain::finalizeIO() (KoFilterChain.cpp:348)
==18191==    by 0x4CD8227: KoFilterChain::invokeChain() (KoFilterChain.cpp:100)
==18191==    by 0x4CD5023: KoFilterManager::exportDocument(QString const&, QByteArray&) (KoFilterManager.cpp:243)
==18191==  Address 0x1e547380 is 0 bytes inside a block of size 104 free'd
==18191==    at 0x4A0528C: operator delete(void*) (vg_replace_malloc.c:387)
==18191==    by 0x16893EE5: Calligra::Tables::RTree<Calligra::Tables::SharedSubStyle>::load(QList<QPair<QRegion, Calligra::Tables::SharedSubStyle> > const&) (KoRTree.h:124)
==18191==    by 0x1688D87E: Calligra::Tables::StyleStorageLoaderJob::run() (StyleStorage.cpp:163)
==18191==    by 0x168874D4: Calligra::Tables::StyleStorage::Private::ensureLoaded() (StyleStorage.cpp:91)
==18191==    by 0x16887510: Calligra::Tables::StyleStorage::usedArea() const (StyleStorage.cpp:281)
==18191==    by 0x1677EA7C: Calligra::Tables::CellStorage::columns(bool) const (CellStorage.cpp:1587)
==18191==    by 0x16853BD1: Calligra::Tables::Sheet::usedArea(bool) const (Sheet

Reproducible: Didn't try

Steps to Reproduce:
run
 calligraconverter me00_auto_format_classic1.xls out.ods
valgrind will show the problems


Expected Results:  
no crash
Comment 1 Jos van den Oever 2011-12-04 14:34:15 UTC
Created attachment 66368 [details]
file showing the problem
Comment 2 Sebastian Sauer 2011-12-05 02:53:54 UTC

*** This bug has been marked as a duplicate of bug 281670 ***