Bug 448587 - crash after inserting text into new row
Summary: crash after inserting text into new row
Status: RESOLVED FIXED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: 3.2.1
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Sheets (KSpread) Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-01-16 10:13 UTC by Alberto Verga
Modified: 2022-05-21 12:53 UTC (History)
0 users

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 Alberto Verga 2022-01-16 10:13:41 UTC
Application: calligrasheets (3.2.1)

Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.16.0-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.23.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I inserted a new row
Pasting into the newly created row the contents of other row, OR inserting text into a the newly created row, results in a crash
This behavior is reproducible: it occurs if one restarts the application and follow the same steps.

The crash can be reproduced every time.

-- Backtrace:
Application: Calligra Sheets (calligrasheets), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00007f3765200124 in QCache<QPoint, Calligra::Sheets::Style>::clear (this=<optimized out>) at /usr/include/qt5/QtCore/qcache.h:124
#7  Calligra::Sheets::StyleStorage::invalidateCache (this=0x55fd0c71dad0) at /usr/src/debug/calligra-3.2.1-4.3.x86_64/sheets/StyleStorage.cpp:681
#8  0x00007f37651cfdb5 in Calligra::Sheets::Map::handleDamages (this=0x55fd0c411a00, damages=...) at /usr/src/debug/calligra-3.2.1-4.3.x86_64/sheets/Map.cpp:674
#9  0x00007f376ddd2458 in doActivate<false> (sender=0x55fd0c411a00, signal_index=3, argv=0x7fffc81315b0) at kernel/qobject.cpp:3898
#10 0x00007f376ddcb8ef in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f37652cd3e0 <Calligra::Sheets::Map::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffc81315b0) at kernel/qobject.cpp:3946
#11 0x00007f37651112d2 in Calligra::Sheets::Map::damagesFlushed (this=<optimized out>, _t1=...) at /usr/src/debug/calligra-3.2.1-4.3.x86_64/build/sheets/calligrasheetsodf_autogen/EWIEGA46WW/moc_Map.cpp:220
#12 0x00007f37651c99f8 in Calligra::Sheets::Map::flushDamages (this=0x55fd0c411a00) at /usr/src/debug/calligra-3.2.1-4.3.x86_64/sheets/Map.cpp:648
#13 0x00007f376ddc83ce in QObject::event (this=0x55fd0c411a00, e=0x55fd0fd344f0) at kernel/qobject.cpp:1314
#14 0x00007f376e224a7f in QApplicationPrivate::notify_helper (this=this@entry=0x55fd0c48ccf0, receiver=receiver@entry=0x55fd0c411a00, e=e@entry=0x55fd0fd344f0) at kernel/qapplication.cpp:3632
#15 0x00007f376e22bdc0 in QApplication::notify (this=<optimized out>, receiver=receiver@entry=0x55fd0c411a00, e=e@entry=0x55fd0fd344f0) at kernel/qapplication.cpp:3378
#16 0x00007f376eb13469 in KoApplication::notify (this=<optimized out>, receiver=0x55fd0c411a00, event=0x55fd0fd344f0) at /usr/src/debug/calligra-3.2.1-4.3.x86_64/libs/main/KoApplication.cpp:672
#17 0x00007f376dd9bdba in QCoreApplication::notifyInternal2 (receiver=0x55fd0c411a00, event=0x55fd0fd344f0) at kernel/qcoreapplication.cpp:1064
#18 0x00007f376dd9ee07 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55fd0c19eec0) at kernel/qcoreapplication.cpp:1821
#19 0x00007f376ddf3c13 in postEventSourceDispatch (s=s@entry=0x55fd0c357360) at kernel/qeventdispatcher_glib.cpp:277
#20 0x00007f376b29fd9f in g_main_dispatch (context=0x7f3760005000) at ../glib/gmain.c:3381
#21 g_main_context_dispatch (context=0x7f3760005000) at ../glib/gmain.c:4099
#22 0x00007f376b2a0128 in g_main_context_iterate (context=context@entry=0x7f3760005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4175
#23 0x00007f376b2a01df in g_main_context_iteration (context=0x7f3760005000, may_block=1) at ../glib/gmain.c:4240
#24 0x00007f376ddf3294 in QEventDispatcherGlib::processEvents (this=0x55fd0c354600, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#25 0x00007f376dd9a7bb in QEventLoop::exec (this=this@entry=0x7fffc8131a60, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#26 0x00007f376dda2aa0 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#27 0x00007f376c42b23c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#28 0x00007f376e2249f5 in QApplication::exec () at kernel/qapplication.cpp:2824
#29 0x00007f376edd5b65 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/calligra-3.2.1-4.3.x86_64/sheets/part/Main.cpp:59
#30 0x00007f376ebe25c0 in __libc_start_call_main (main=main@entry=0x55fd0aef0050 <main(int, char**)>, argc=argc@entry=1, argv=argv@entry=0x7fffc8131c98) at ../sysdeps/nptl/libc_start_call_main.h:58
#31 0x00007f376ebe267c in __libc_start_main_impl (main=0x55fd0aef0050 <main(int, char**)>, argc=1, argv=0x7fffc8131c98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffc8131c88) at ../csu/libc-start.c:409
#32 0x000055fd0aef0085 in _start () at ../sysdeps/x86_64/start.S:116
[Inferior 1 (process 11295) detached]

The reporter indicates this bug may be a duplicate of or related to bug 391018.

Possible duplicates by query: bug 421067, bug 420643, bug 419480, bug 411233, bug 391018.

Reported using DrKonqi
Comment 1 Tomas Mecir 2022-05-21 12:53:33 UTC
Git commit a43a05877689f7cdb7a3f1b36e05626027869d72 by Tomas Mecir.
Committed on 21/05/2022 at 12:52.
Pushed by mecir into branch 'master'.

Disable the style cache, it's causing more problems than it's worth.
Related: bug 368852, bug 391018, bug 449729

M  +41   -41   sheets/core/StyleStorage.cpp

https://invent.kde.org/office/calligra/commit/a43a05877689f7cdb7a3f1b36e05626027869d72