Bug 298497 - Sheets freezes after opening .ods
Summary: Sheets freezes after opening .ods
Status: CONFIRMED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Calligra Sheets (KSpread) Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 16:26 UTC by Christoph Feck
Modified: 2021-03-09 22:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Feck 2012-04-20 16:26:43 UTC
Calligra from master at 24a9bb5: Sheets hangs after opening the document from http://www.squeezechart.com/SqueezeChart2012web.ods and trying to view it.

Looking at the "top" output, Sheets continues to allocate memory all the time, it hangs in a loop allocating memory. Attaching gdb while it hangs:

(gdb) bt
#0  _int_malloc (av=0xb4cb1440, bytes=17) at malloc.c:3761                                                                                                                                               
#1  0xb4b85387 in malloc_check (sz=16, caller=0xb4f11f6d) at hooks.c:233                                                                                                                                 
#2  0xb4b86f6f in __GI___libc_malloc (bytes=16) at malloc.c:2917                                                                                                                                         
#3  0xb4f11f6d in qMalloc (size=16) at /local/git/Qt/frameworks/qt/src/corelib/global/qmalloc.cpp:55                                                                                                     
#4  0xb4f3d45b in QHashData::allocateNode (this=0x1b556cb0, nodeAlign=4) at /local/git/Qt/frameworks/qt/src/corelib/tools/qhash.cpp:179                                                                  
#5  0xb4f3d61e in QHashData::detach_helper2 (this=0x1b556cb0, node_duplicate=                                                                                                                            
    0xb0b82930 <QHash<Calligra::Sheets::Style::Key, Calligra::Sheets::SharedSubStyle>::duplicateNode(QHashData::Node*, void*)>, node_delete=                                                             
    0xb0b81a1a <QHash<Calligra::Sheets::Style::Key, Calligra::Sheets::SharedSubStyle>::deleteNode2(QHashData::Node*)>, nodeSize=16, nodeAlign=4)                                                         
    at /local/git/Qt/frameworks/qt/src/corelib/tools/qhash.cpp:236                                                                                                                                       
#6  0xb0b81b10 in QHash<Calligra::Sheets::Style::Key, Calligra::Sheets::SharedSubStyle>::detach_helper (this=0x1b556d74) at /local/qt4/include/QtCore/qhash.h:584                                        
#7  0xb0b80223 in QHash<Calligra::Sheets::Style::Key, Calligra::Sheets::SharedSubStyle>::detach (this=0x1b556d74) at /local/qt4/include/QtCore/qhash.h:303                                               
#8  0xb0b7e1f6 in QHash<Calligra::Sheets::Style::Key, Calligra::Sheets::SharedSubStyle>::remove (this=0x1b556d74, akey=@0xbfdbc104) at /local/qt4/include/QtCore/qhash.h:788                             
#9  0xb0b6ad52 in Calligra::Sheets::Style::clearAttribute (this=0xbfdbc12c, key=Calligra::Sheets::Style::DefaultStyleKey) at /local/git/extragear/office/calligra/sheets/Style.cpp:192                   
#10 0xb0b929ba in Calligra::Sheets::StyleStorage::composeStyle (this=0xaf9af70, subStyles=...) at /local/git/extragear/office/calligra/sheets/StyleStorage.cpp:882                                       
#11 0xb0b8dbef in Calligra::Sheets::StyleStorage::contains (this=0xaf9af70, point=...) at /local/git/extragear/office/calligra/sheets/StyleStorage.cpp:234                                               
#12 0xb0a71366 in Calligra::Sheets::CellStorage::style (this=0xa2676e0, column=1, row=398898) at /local/git/extragear/office/calligra/sheets/CellStorage.cpp:546                                         
#13 0xb0a5a93a in Calligra::Sheets::Cell::style (this=0xbfdbc2bc) at /local/git/extragear/office/calligra/sheets/Cell.cpp:348                                                                            
#14 0xb0dddde8 in Calligra::Sheets::CellView::CellView (this=0x1af38280, sheetView=0xaac2950, col=1, row=398898) at /local/git/extragear/office/calligra/sheets/ui/CellView.cpp:201                      
#15 0xb0dffbe8 in Calligra::Sheets::SheetView::createCellView (this=0xaac2950, col=1, row=398898) at /local/git/extragear/office/calligra/sheets/ui/SheetView.cpp:681                                    
#16 0xb0dfd3bc in Calligra::Sheets::SheetView::cellView (this=0xaac2950, col=1, row=398898) at /local/git/extragear/office/calligra/sheets/ui/SheetView.cpp:244                                          
#17 0xb0dfcb58 in Calligra::Sheets::SheetView::Private::cellViewToProcess (this=0xa444a30, cell=..., coordinate=..., processedObscuredCells=..., sheetView=0xaac2950, visRect=...)                       
    at /local/git/extragear/office/calligra/sheets/ui/SheetView.cpp:149                                                                                                                                  
#18 0xb0dfdd94 in Calligra::Sheets::SheetView::paintCells (this=0xaac2950, painter=..., paintRect=..., topLeft=..., visibleRect=...)                                                                     
    at /local/git/extragear/office/calligra/sheets/ui/SheetView.cpp:383                                                                                                                                  
---Type <return> to continue, or q <return> to quit---                                                                                                                                                   
#19 0xb0d6cbab in Calligra::Sheets::CanvasBase::paint (this=0xbcbda44, painter=0xbfdbc95c, painterRect=...) at /local/git/extragear/office/calligra/sheets/part/CanvasBase.cpp:483                       
#20 0xb0d7087f in Calligra::Sheets::Canvas::paintEvent (this=0xbcbda30, event=0xbfdbd014) at /local/git/extragear/office/calligra/sheets/part/Canvas.cpp:303                                             
#21 0xb575ee7a in QWidget::event (this=0xbcbda30, event=0xbfdbd014) at /local/git/Qt/frameworks/qt/src/gui/kernel/qwidget.cpp:8517                                                                       
#22 0xb0d7081c in Calligra::Sheets::Canvas::event (this=0xbcbda30, e=0xbfdbd014) at /local/git/extragear/office/calligra/sheets/part/Canvas.cpp:297                                                      
#23 0xb56fe98a in QApplicationPrivate::notify_helper (this=0x97f5f48, receiver=0xbcbda30, e=0xbfdbd014) at /local/git/Qt/frameworks/qt/src/gui/kernel/qapplication.cpp:4554                              
#24 0xb56fe673 in QApplication::notify (this=0xbfdbddfc, receiver=0xbcbda30, e=0xbfdbd014) at /local/git/Qt/frameworks/qt/src/gui/kernel/qapplication.cpp:4519                                           
#25 0xb64756b6 in KApplication::notify (this=0xbfdbddfc, receiver=0xbcbda30, event=0xbfdbd014) at /local/git/KDE/libs/kdelibs/kdeui/kernel/kapplication.cpp:311                                          
#26 0xb503ecfc in QCoreApplication::notifyInternal (this=0xbfdbddfc, receiver=0xbcbda30, event=0xbfdbd014) at /local/git/Qt/frameworks/qt/src/corelib/kernel/qcoreapplication.cpp:876                    
#27 0xb57013cf in QCoreApplication::sendSpontaneousEvent (receiver=0xbcbda30, event=0xbfdbd014) at ../../include/QtCore/../../../../git/Qt/frameworks/qt/src/corelib/kernel/qcoreapplication.h:234       
#28 0xb57574fa in QWidgetPrivate::drawWidget (this=0xa792830, pdev=0x9a1e450, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x9a09040)                                                   
    at /local/git/Qt/frameworks/qt/src/gui/kernel/qwidget.cpp:5594                                                                                                                                       
#29 0xb5977fbb in QWidgetBackingStore::sync (this=0x9a09040) at /local/git/Qt/frameworks/qt/src/gui/painting/qbackingstore.cpp:1365                                                                      
#30 0xb574e760 in QWidgetPrivate::syncBackingStore (this=0x99dadc0) at /local/git/Qt/frameworks/qt/src/gui/kernel/qwidget.cpp:1892                                                                       
#31 0xb575f372 in QWidget::event (this=0x99e58f0, event=0xaa1f790) at /local/git/Qt/frameworks/qt/src/gui/kernel/qwidget.cpp:8664                                                                        
#32 0xb5c0ef64 in QMainWindow::event (this=0x99e58f0, event=0xaa1f790) at /local/git/Qt/frameworks/qt/src/gui/widgets/qmainwindow.cpp:1478                                                               
#33 0xb6558a40 in KMainWindow::event (this=0x99e58f0, ev=0xaa1f790) at /local/git/KDE/libs/kdelibs/kdeui/widgets/kmainwindow.cpp:1084
#34 0xb65a1995 in KXmlGuiWindow::event (this=0x99e58f0, ev=0xaa1f790) at /local/git/KDE/libs/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:126
#35 0xb56fe98a in QApplicationPrivate::notify_helper (this=0x97f5f48, receiver=0x99e58f0, e=0xaa1f790) at /local/git/Qt/frameworks/qt/src/gui/kernel/qapplication.cpp:4554
#36 0xb56fe673 in QApplication::notify (this=0xbfdbddfc, receiver=0x99e58f0, e=0xaa1f790) at /local/git/Qt/frameworks/qt/src/gui/kernel/qapplication.cpp:4519
#37 0xb64756b6 in KApplication::notify (this=0xbfdbddfc, receiver=0x99e58f0, event=0xaa1f790) at /local/git/KDE/libs/kdelibs/kdeui/kernel/kapplication.cpp:311
#38 0xb503ecfc in QCoreApplication::notifyInternal (this=0xbfdbddfc, receiver=0x99e58f0, event=0xaa1f790) at /local/git/Qt/frameworks/qt/src/corelib/kernel/qcoreapplication.cpp:876
#39 0xb5042575 in QCoreApplication::sendEvent (receiver=0x99e58f0, event=0xaa1f790) at ../../include/QtCore/../../../../git/Qt/frameworks/qt/src/corelib/kernel/qcoreapplication.h:231
#40 0xb503fc2a in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x979d198) at /local/git/Qt/frameworks/qt/src/corelib/kernel/qcoreapplication.cpp:1500
#41 0xb503f8e3 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /local/git/Qt/frameworks/qt/src/corelib/kernel/qcoreapplication.cpp:1393
---Type <return> to continue, or q <return> to quit---
#42 0xb5076f4e in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../../../git/Qt/frameworks/qt/src/corelib/kernel/qcoreapplication.h:236
#43 0xb50760d7 in postEventSourceDispatch (s=0x97f7080) at /local/git/Qt/frameworks/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:279
#44 0xb3c92aca in g_main_dispatch (context=0x97f43f8) at gmain.c:2515
#45 g_main_context_dispatch (context=0x97f43f8) at gmain.c:3052
#46 0xb3c92ed5 in g_main_context_iterate (dispatch=1, block=-1278605168, context=0x97f43f8, self=<optimized out>) at gmain.c:3123
#47 g_main_context_iterate (context=0x97f43f8, block=-1278605168, dispatch=1, self=<optimized out>) at gmain.c:3060
#48 0xb3c92fb1 in g_main_context_iteration (context=0x97f43f8, may_block=1) at gmain.c:3184
#49 0xb507686a in QEventDispatcherGlib::processEvents (this=0x97f1f20, flags=...) at /local/git/Qt/frameworks/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:424
#50 0xb57ca0be in QGuiEventDispatcherGlib::processEvents (this=0x97f1f20, flags=...) at /local/git/Qt/frameworks/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#51 0xb503c6e9 in QEventLoop::processEvents (this=0xbfdbdd9c, flags=...) at /local/git/Qt/frameworks/qt/src/corelib/kernel/qeventloop.cpp:149
#52 0xb503c861 in QEventLoop::exec (this=0xbfdbdd9c, flags=...) at /local/git/Qt/frameworks/qt/src/corelib/kernel/qeventloop.cpp:204
#53 0xb503f392 in QCoreApplication::exec () at /local/git/Qt/frameworks/qt/src/corelib/kernel/qcoreapplication.cpp:1148
#54 0xb56fbea0 in QApplication::exec () at /local/git/Qt/frameworks/qt/src/gui/kernel/qapplication.cpp:3815
#55 0xb77915b6 in kdemain (argc=2, argv=0xbfdbdf04) at /local/git/extragear/office/calligra/sheets/part/Main.cpp:43
#56 0x080488b1 in main (argc=2, argv=0xbfdbdf04) at /local/build/extragear/office/calligra/sheets/calligrasheets_dummy.cpp:3
(gdb)
Comment 1 Inge Wallin 2012-04-20 19:44:03 UTC
You are right.  This is quite serious and needs to be fixed.
Comment 2 Christoph Feck 2013-03-12 19:43:11 UTC
Testing with today's master, opening the linked document causes calligrasheets to exhaust all memory and CPU time.
Comment 3 Justin Zobel 2021-03-09 22:43:50 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.