Bug 474191 - Crash when opening event in main view
Summary: Crash when opening event in main view
Status: RESOLVED FIXED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (show other bugs)
Version: 23.08.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-09-05 15:46 UTC by Łukasz Żarnowiecki
Modified: 2023-09-27 13:44 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Żarnowiecki 2023-09-05 15:46:59 UTC
Application: merkuro-calendar (23.08.0)

Qt Version: 5.15.10
Frameworks Version: 5.109.0
Operating System: Linux 6.4.12-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 5.27.7 [KCrashBackend]

-- Information about the crash:
When I click on calendar event in week view application crashes.

What I did was essentialy to add a new calendar event and its location.  It did crash first when I was typing location.  After that it crashes when I try to open this event.

The crash can be reproduced every time.

-- Backtrace:
Application: Merkuro Calendar (merkuro-calendar), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00007ff9c2f03dbe in QDeclarativeGeocodeModel::~QDeclarativeGeocodeModel() (this=0x5567e4cfb490, this=<optimized out>) at /usr/src/debug/qt5-location/qtlocation/src/location/declarativemaps/qdeclarativegeocodemodel.cpp:128
#7  0x00007ff9c30cc94b in QQmlPrivate::QQmlElement<QDeclarativeGeocodeModel>::~QQmlElement() (this=0x5567e4cfb490, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#8  QQmlPrivate::QQmlElement<QDeclarativeGeocodeModel>::~QQmlElement() (this=0x5567e4cfb490, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#9  0x00007ffa23ac73bd in QObjectPrivate::deleteChildren() (this=this@entry=0x5567e4b995a0) at kernel/qobject.cpp:2137
#10 0x00007ffa23ac7b39 in QObject::~QObject() (this=this@entry=0x5567e42b4210, this=<optimized out>) at kernel/qobject.cpp:1115
#11 0x00007ffa25e2c668 in QQuickItem::~QQuickItem() (this=this@entry=0x5567e42b4210, this=<optimized out>) at /usr/src/debug/qt5-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:2389
#12 0x00007ff9c2f16d69 in QDeclarativeGeoMapItemGroup::~QDeclarativeGeoMapItemGroup() (this=this@entry=0x5567e42b4210, this=<optimized out>) at /usr/src/debug/qt5-location/qtlocation/src/location/declarativemaps/qdeclarativegeomapitemgroup.cpp:150
#13 0x00007ff9c2f16e09 in QDeclarativeGeoMapItemView::~QDeclarativeGeoMapItemView() (this=this@entry=0x5567e42b4210, this=<optimized out>) at /usr/src/debug/qt5-location/qtlocation/src/location/declarativemaps/qdeclarativegeomapitemview.cpp:111
#14 0x00007ff9c30cca2b in QQmlPrivate::QQmlElement<QDeclarativeGeoMapItemView>::~QQmlElement() (this=0x5567e42b4210, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#15 QQmlPrivate::QQmlElement<QDeclarativeGeoMapItemView>::~QQmlElement() (this=0x5567e42b4210, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#16 0x00007ffa23ac73bd in QObjectPrivate::deleteChildren() (this=this@entry=0x5567e2bed620) at kernel/qobject.cpp:2137
#17 0x00007ffa23ac7b39 in QObject::~QObject() (this=this@entry=0x5567e1cc5cc0, this=<optimized out>) at kernel/qobject.cpp:1115
#18 0x00007ffa25e2c668 in QQuickItem::~QQuickItem() (this=this@entry=0x5567e1cc5cc0, this=<optimized out>) at /usr/src/debug/qt5-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:2389
#19 0x00007ff9c2f12297 in QDeclarativeGeoMap::~QDeclarativeGeoMap() (this=this@entry=0x5567e1cc5cc0, this=<optimized out>) at /usr/src/debug/qt5-location/qtlocation/src/location/declarativemaps/qdeclarativegeomap.cpp:284
#20 0x00007ff9c30ccbeb in QQmlPrivate::QQmlElement<QDeclarativeGeoMap>::~QQmlElement() (this=0x5567e1cc5cc0, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#21 QQmlPrivate::QQmlElement<QDeclarativeGeoMap>::~QQmlElement() (this=0x5567e1cc5cc0, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#22 0x00007ffa23ac3f9e in QObject::event(QEvent*) (this=0x5567e1cc5cc0, e=0x5567e6e80470) at kernel/qobject.cpp:1334
#23 0x00007ffa2477893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x5567e1cc5cc0, e=0x5567e6e80470) at kernel/qapplication.cpp:3640
#24 0x00007ffa23a9c6f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x5567e1cc5cc0, event=0x5567e6e80470) at kernel/qcoreapplication.cpp:1064
#25 0x00007ffa23aa165b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5567e0a1ee50) at kernel/qcoreapplication.cpp:1821
#26 0x00007ffa23ae76d8 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5567e0a3d1b0) at kernel/qeventdispatcher_glib.cpp:277
#27 0x00007ffa21b10a61 in g_main_dispatch (context=0x7ffa00000ee0) at ../glib/glib/gmain.c:3460
#28 g_main_context_dispatch (context=0x7ffa00000ee0) at ../glib/glib/gmain.c:4200
#29 0x00007ffa21b6dc29 in g_main_context_iterate.isra.0 (context=context@entry=0x7ffa00000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#30 0x00007ffa21b0e112 in g_main_context_iteration (context=0x7ffa00000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#31 0x00007ffa23aeb51c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5567e0a0db90, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#32 0x00007ffa23a9b404 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffec1600e10, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#33 0x00007ffa23a9c8a3 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#34 0x00007ffa23f3bef2 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#35 0x00007ffa24776cda in QApplication::exec() () at kernel/qapplication.cpp:2832
#36 0x00005567df86c5af in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/merkuro/merkuro-23.08.0/src/calendar/main.cpp:145
[Inferior 1 (process 3117) detached]

Reported using DrKonqi
This report was filed against 'kde' because the product 'merkuro-calendar' could not be located in Bugzilla. Add it to drkonqi's mappings file!
Comment 1 Carl Schwan 2023-09-07 10:32:15 UTC
This is caused by the map shown in some events. This should not be enabled by default since it is known to sometimes crash. Could you disable it?
Comment 2 Łukasz Żarnowiecki 2023-09-21 10:31:50 UTC
Yes, its working.  I did not know I had it enabled...
Comment 3 Carl Schwan 2023-09-27 10:30:33 UTC
With Qt6 and the next major Merkuro release hopefully this sort of issues should be resolved.
Comment 4 Carl Schwan 2023-09-27 13:40:22 UTC
Git commit 253490029481581570d188ad8165a922e0d7626c by Carl Schwan.
Committed on 27/09/2023 at 15:38.
Pushed by carlschwan into branch 'master'.

Fix crash when running merkuro with other locales

Binary searching the codebase ended up founding that the mail import was
causing the crash. It's not required here so we can remove it.
Fixed-In: 23.08.2

M  +0    -2    src/calendar/qml/Controls/CheckableCollectionNavigationView.qml

https://invent.kde.org/pim/merkuro/-/commit/253490029481581570d188ad8165a922e0d7626c
Comment 5 Carl Schwan 2023-09-27 13:40:38 UTC
Git commit 734d83d57cd6f4f75506cca716922979aa7ff7a9 by Carl Schwan.
Committed on 27/09/2023 at 15:40.
Pushed by carlschwan into branch 'release/23.08'.

Fix crash when running merkuro with other locales

Binary searching the codebase ended up founding that the mail import was
causing the crash. It's not required here so we can remove it.
Fixed-In: 23.08.2
(cherry picked from commit 253490029481581570d188ad8165a922e0d7626c)

M  +0    -2    src/calendar/qml/Controls/CheckableCollectionNavigationView.qml

https://invent.kde.org/pim/merkuro/-/commit/734d83d57cd6f4f75506cca716922979aa7ff7a9