Bug 186204 - Crash when opening some templates in my language
Summary: Crash when opening some templates in my language
Status: RESOLVED FIXED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Sheets (KSpread) Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-05 12:07 UTC by Enrique Matías Sánchez
Modified: 2009-10-18 15:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrique Matías Sánchez 2009-03-05 12:07:07 UTC
Version:           2.0 beta-7 (using KDE 4.2.0)
OS:                Linux
Installed from:    Unlisted Binary Package

When using KSpread in Spanish, if I select to use some templates (Price Quotation or Menu Plan for example), the application consistently crashes. Other templates (such as Invoice) work fine.

However, everything works fine in English, although it shows some messages in the console such as
kspread(3856) KSpread::Cell::load: Problem with KoXmlReader conversion!
kspread(3856)/kdeui (KAction) KActionCollection::setComponentData: this does not work on a KActionCollection containing actions!


This is the backtrace:

Aplicación: KSpread (kspread), señal SIGSEGV
0x00007fdb4e40b8a0 in __nanosleep_nocancel () from /lib/libc.so.6
Current language:  auto; currently c

Thread 1 (Thread 0x7fdb4e996750 (LWP 3863)):
[KCrash Handler]
#5  KSpread::Style::parentName (this=0x0) at /usr/include/qt4/QtCore/qshareddata.h:72
#6  0x00007fdb40814a5e in KSpread::StyleManager::loadXML (this=0xc8f140, styles=<value optimized out>) at ../../kspread/StyleManager.cpp:234
#7  0x00007fdb40906408 in KSpread::Doc::loadXML (this=0xc94d20, doc=<value optimized out>) at ../../kspread/part/Doc.cpp:605
#8  0x00007fdb4d0e9ef7 in KoDocument::loadNativeFormat (this=0xc94d20, file_=<value optimized out>) at ../../../libs/main/KoDocument.cpp:1701
#9  0x00007fdb4d0def53 in KoDocument::openTemplate (this=0xc94d20, url=@0x7fff56adc450) at ../../../libs/main/KoDocument.cpp:2577
#10 0x00007fdb40903640 in KSpread::Doc::openTemplate (this=0xc94d20, url=@0x7fff56adc450) at ../../kspread/part/Doc.cpp:199
#11 0x00007fdb40900e91 in KSpread::Doc::qt_metacall (this=0xc94d20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff56adc310) at ./Doc.moc:81
#12 0x00007fdb4cdb36e4 in QMetaObject::activate (sender=0xdc10e0, from_signal_index=<value optimized out>, to_signal_index=28, argv=0x7fdb40989647) at kernel/qobject.cpp:3031
#13 0x00007fdb4d15b0d5 in KoOpenPane::openTemplate (this=0x7fff56adb6b0, _t1=<value optimized out>) at ./KoOpenPane.moc:103
#14 0x00007fdb4d15b48c in KoOpenPane::qt_metacall (this=0xdc10e0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff56adc430) at ./KoOpenPane.moc:80
#15 0x00007fdb4cdb36e4 in QMetaObject::activate (sender=0x13ce080, from_signal_index=<value optimized out>, to_signal_index=27, argv=0x7fdb40989647) at kernel/qobject.cpp:3031
#16 0x00007fdb4d1610d2 in KoDetailsPane::openUrl (this=0x7fff56adb6b0, _t1=<value optimized out>) at ./KoDetailsPane.moc:97
#17 0x00007fdb4d165b0e in KoTemplatesPane::openFile (this=0x13ce080, index=<value optimized out>) at ../../../libs/main/KoTemplatesPane.cpp:130
#18 0x00007fdb4d1612a4 in KoDetailsPane::openFile (this=0x13ce080) at ../../../libs/main/KoDetailsPane.cpp:118
#19 0x00007fdb4d161395 in KoDetailsPane::qt_metacall (this=0x13ce080, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff56adc6b0) at ./KoDetailsPane.moc:84
#20 0x00007fdb4d165d65 in KoTemplatesPane::qt_metacall (this=0x7fff56adb6b0, _c=QMetaObject::InvokeMetaMethod, _id=13169290, _a=0x7fdb40989647) at ./KoTemplatesPane.moc:72
#21 0x00007fdb4cdb36e4 in QMetaObject::activate (sender=0x1415670, from_signal_index=<value optimized out>, to_signal_index=30, argv=0x7fdb40989647) at kernel/qobject.cpp:3031
#22 0x00007fdb4df6af37 in QAbstractButton::clicked (this=0x7fff56adb6b0, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:185
#23 0x00007fdb4dcef21b in QAbstractButtonPrivate::emitClicked (this=0x14338e0) at widgets/qabstractbutton.cpp:538
#24 0x00007fdb4dcf0de2 in QAbstractButtonPrivate::click (this=0x14338e0) at widgets/qabstractbutton.cpp:531
#25 0x00007fdb4dcf1035 in QAbstractButton::mouseReleaseEvent (this=0x1415670, e=0x7fff56adcff0) at widgets/qabstractbutton.cpp:1110
#26 0x00007fdb4da38139 in QWidget::event (this=0x1415670, event=0x7fff56adcff0) at kernel/qwidget.cpp:7163
#27 0x00007fdb4d9e5a5d in QApplicationPrivate::notify_helper (this=0xac19c0, receiver=0x1415670, e=0x7fff56adcff0) at kernel/qapplication.cpp:3803
#28 0x00007fdb4d9ee04a in QApplication::notify (this=<value optimized out>, receiver=0x1415670, e=0x7fff56adcff0) at kernel/qapplication.cpp:3528
#29 0x00007fdb481b5d8b in KApplication::notify (this=0x7fff56addc30, receiver=0x1415670, event=0x7fff56adcff0) at ../../kdeui/kernel/kapplication.cpp:307
#30 0x00007fdb4cd9f391 in QCoreApplication::notifyInternal (this=0x7fff56addc30, receiver=0x1415670, event=0x7fff56adcff0) at kernel/qcoreapplication.cpp:587
#31 0x00007fdb4d9ed3e8 in QApplicationPrivate::sendMouseEvent (receiver=0x1415670, event=0x7fff56adcff0, alienWidget=0x1415670, nativeWidget=0xd279c0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7fdb4e36b0e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#32 0x00007fdb4da51939 in QETWidget::translateMouseEvent (this=0xd279c0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4044
#33 0x00007fdb4da5082f in QApplication::x11ProcessEvent (this=0x7a, event=0x7fff56add8b0) at kernel/qapplication_x11.cpp:3162
#34 0x00007fdb4da77cb4 in x11EventSourceDispatch (s=0xac51a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#35 0x00007fdb4bc3cafb in IA__g_main_context_dispatch (context=0xac4520) at /build/buildd/glib2.0-2.18.4/glib/gmain.c:2144
#36 0x00007fdb4bc402bd in g_main_context_iterate (context=0xac4520, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.18.4/glib/gmain.c:2778
#37 0x00007fdb4bc4047b in IA__g_main_context_iteration (context=0xac4520, may_block=1) at /build/buildd/glib2.0-2.18.4/glib/gmain.c:2841
#38 0x00007fdb4cdc771f in QEventDispatcherGlib::processEvents (this=0xabd970, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#39 0x00007fdb4da7747f in QGuiEventDispatcherGlib::processEvents (this=0x7fff56adb6b0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#40 0x00007fdb4cd9dcb2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1454234528}) at kernel/qeventloop.cpp:143
#41 0x00007fdb4cd9de3d in QEventLoop::exec (this=0x7fff56addbe0, flags={i = 1454234608}) at kernel/qeventloop.cpp:194
#42 0x00007fdb4cda02ed in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#43 0x00007fdb4e6c24dd in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../kspread/part/Main.cpp:43
#44 0x00007fdb4e38b5a6 in __libc_start_main (main=0x4006f0 <main>, argc=1, ubp_av=0x7fff56adddf8, init=0x400720 <__libc_csu_init>, fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fff56addde8) at libc-start.c:222
#45 0x0000000000400629 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 1 Enrique Matías Sánchez 2009-03-10 11:48:02 UTC
I have updated from Qt 4.4.3 to Qt 4.5.0, and from KDE 4.2.0 to 4.2.1.
I keep seeing the same crash.
 
In case it's relevant, I attach the backtrace using the new libs.


Aplicación: KSpread (kspread), señal SIGSEGV
0x00007f794173a8a0 in __nanosleep_nocancel () from /lib/libc.so.6
Current language:  auto; currently c

Thread 1 (Thread 0x7f7941cc3770 (LWP 5615)):
[KCrash Handler]
#5  KSpread::Style::parentName (this=0x0) at /usr/include/qt4/QtCore/qshareddata.h:72
#6  0x00007f7932ab0a5e in KSpread::StyleManager::loadXML (this=0xe91fc0, styles=<value optimized out>) at ../../kspread/StyleManager.cpp:234
#7  0x00007f7932ba2408 in KSpread::Doc::loadXML (this=0xe985b0, doc=<value optimized out>) at ../../kspread/part/Doc.cpp:605
#8  0x00007f7940342ef7 in KoDocument::loadNativeFormat (this=0xe985b0, file_=<value optimized out>) at ../../../libs/main/KoDocument.cpp:1701
#9  0x00007f7940337f53 in KoDocument::openTemplate (this=0xe985b0, url=@0x7fff49e0d720) at ../../../libs/main/KoDocument.cpp:2577
#10 0x00007f7932b9f640 in KSpread::Doc::openTemplate (this=0xe985b0, url=@0x7fff49e0d720) at ../../kspread/part/Doc.cpp:199
#11 0x00007f7932b9ce91 in KSpread::Doc::qt_metacall (this=0xe985b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff49e0d5e0) at ./Doc.moc:81
#12 0x00007f793fffe622 in QMetaObject::activate (sender=0xf6d850, from_signal_index=<value optimized out>, to_signal_index=28, argv=0x7f7932c25647) at kernel/qobject.cpp:3069
#13 0x00007f79403b40d5 in KoOpenPane::openTemplate (this=0x7fff49e0c980, _t1=<value optimized out>) at ./KoOpenPane.moc:103
#14 0x00007f79403b448c in KoOpenPane::qt_metacall (this=0xf6d850, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff49e0d700) at ./KoOpenPane.moc:80
#15 0x00007f793fffe622 in QMetaObject::activate (sender=0x12ac4b0, from_signal_index=<value optimized out>, to_signal_index=27, argv=0x7f7932c25647) at kernel/qobject.cpp:3069
#16 0x00007f79403ba0d2 in KoDetailsPane::openUrl (this=0x7fff49e0c980, _t1=<value optimized out>) at ./KoDetailsPane.moc:97
#17 0x00007f79403beb0e in KoTemplatesPane::openFile (this=0x12ac4b0, index=<value optimized out>) at ../../../libs/main/KoTemplatesPane.cpp:130
#18 0x00007f79403ba2a4 in KoDetailsPane::openFile (this=0x12ac4b0) at ../../../libs/main/KoDetailsPane.cpp:118
#19 0x00007f79403ba395 in KoDetailsPane::qt_metacall (this=0x12ac4b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff49e0d980) at ./KoDetailsPane.moc:84
#20 0x00007f79403bed65 in KoTemplatesPane::qt_metacall (this=0x7fff49e0c980, _c=QMetaObject::InvokeMetaMethod, _id=20193786, _a=0x7f7932c25647) at ./KoTemplatesPane.moc:72
#21 0x00007f793fffe622 in QMetaObject::activate (sender=0x12a76d0, from_signal_index=<value optimized out>, to_signal_index=30, argv=0x7f7932c25647) at kernel/qobject.cpp:3069
#22 0x00007f7941279a17 in QAbstractButton::clicked (this=0x7fff49e0c980, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:200
#23 0x00007f7940fd779b in QAbstractButtonPrivate::emitClicked (this=0x12b2e80) at widgets/qabstractbutton.cpp:543
#24 0x00007f7940fd93f2 in QAbstractButtonPrivate::click (this=0x12b2e80) at widgets/qabstractbutton.cpp:536
#25 0x00007f7940fd9645 in QAbstractButton::mouseReleaseEvent (this=0x12a76d0, e=0x7fff49e0e2d0) at widgets/qabstractbutton.cpp:1115
#26 0x00007f7940c8770f in QWidget::event (this=0x12a76d0, event=0x7fff49e0e2d0) at kernel/qwidget.cpp:7516
#27 0x00007f7940c365bd in QApplicationPrivate::notify_helper (this=0xcc54e0, receiver=0x12a76d0, e=0x7fff49e0e2d0) at kernel/qapplication.cpp:4084
#28 0x00007f7940c3ef0a in QApplication::notify (this=<value optimized out>, receiver=0x12a76d0, e=0x7fff49e0e2d0) at kernel/qapplication.cpp:3786
#29 0x00007f793b59d11b in KApplication::notify (this=0x7fff49e0efe0, receiver=0x12a76d0, event=0x7fff49e0e2d0) at ../../kdeui/kernel/kapplication.cpp:307
#30 0x00007f793ffe8c4c in QCoreApplication::notifyInternal (this=0x7fff49e0efe0, receiver=0x12a76d0, event=0x7fff49e0e2d0) at kernel/qcoreapplication.cpp:602
#31 0x00007f7940c3e158 in QApplicationPrivate::sendMouseEvent (receiver=0x12a76d0, event=0x7fff49e0e2d0, alienWidget=0x12a76d0, nativeWidget=0xf003a0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f7941698b70) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#32 0x00007f7940ca7be9 in QETWidget::translateMouseEvent (this=0xf003a0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4425
#33 0x00007f7940ca6d28 in QApplication::x11ProcessEvent (this=0x7fff49e0efe0, event=0x7fff49e0ec60) at kernel/qapplication_x11.cpp:3543
#34 0x00007f7940cceee4 in x11EventSourceDispatch (s=0xcc8c30, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#35 0x00007f793e9bcafb in IA__g_main_context_dispatch (context=0xcc7d20) at /build/buildd/glib2.0-2.18.4/glib/gmain.c:2144
#36 0x00007f793e9c02bd in g_main_context_iterate (context=0xcc7d20, block=1, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.18.4/glib/gmain.c:2778
#37 0x00007f793e9c047b in IA__g_main_context_iteration (context=0xcc7d20, may_block=1) at /build/buildd/glib2.0-2.18.4/glib/gmain.c:2841
#38 0x00007f794001229f in QEventDispatcherGlib::processEvents (this=0xcc1e50, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:323
#39 0x00007f7940cce68f in QGuiEventDispatcherGlib::processEvents (this=0x7fff49e0c980, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#40 0x00007f793ffe74f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1239478096}) at kernel/qeventloop.cpp:149
#41 0x00007f793ffe78bd in QEventLoop::exec (this=0x7fff49e0ef90, flags={i = 1239478176}) at kernel/qeventloop.cpp:200
#42 0x00007f793ffe9b84 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:880
#43 0x00007f79419f14dd in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../kspread/part/Main.cpp:43
#44 0x00007f79416ba5a6 in __libc_start_main (main=0x4006f0 <main>, argc=1, ubp_av=0x7fff49e0f1a8, init=0x400720 <__libc_csu_init>, fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fff49e0f198) at libc-start.c:222
#45 0x0000000000400629 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 2 Dario Andres 2009-09-28 02:40:24 UTC
Bug 192893 could be related to this too..
Comment 3 Tomas Mecir 2009-10-18 15:12:16 UTC
SVN commit 1037143 by mecir:

Do not crash if the default style is not called "Default".

BUG: 192893
BUG: 186204



 M  +1 -1      StyleManager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1037143