Bug 473618 - Merkuro Calendar crashes on startup
Summary: Merkuro Calendar crashes on startup
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-08-21 22:29 UTC by A. R. Kristiansen
Modified: 2023-08-27 22:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.08.1


Attachments
Another backtrace that seems to have more information. (55.17 KB, text/plain)
2023-08-22 20:51 UTC, A. R. Kristiansen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description A. R. Kristiansen 2023-08-21 22:29:09 UTC
Application: merkuro-calendar (23.07.80)

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

-- Information about the crash:
Using the new Merkuro Calendar rebranding, the application crashes every time I launch the application.

Downgrading to Kalendar 23.04 makes it work again.

Merkuro Calendar was downloaded from the Arch Linux KDE-Unstable repo.

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  0x00007fbb5922f76d in QQuickItemPrivate::removeItemChangeListener(QQuickItemChangeListener*, QFlags<QQuickItemPrivate::ChangeType>) (this=0xf89e2ef07c6b7709, listener=0x55a5ba3ced68, types=...) at /usr/src/debug/qt5-declarative/qtdeclarative/src/quick/items/qquickitem.cpp:3928
#7  0x00007fbb5694676c in QQuickScrollBarAttachedPrivate::setFlickable(QQuickFlickable*) (this=this@entry=0x55a5ba3ced10, item=item@entry=0x0) at /usr/src/debug/qt5-quickcontrols2/qtquickcontrols2/src/quicktemplates2/qquickscrollbar.cpp:766
#8  0x00007fbb56946a13 in QQuickScrollBarAttached::~QQuickScrollBarAttached() (this=0x55a5ba3cecf0, this=<optimized out>) at /usr/src/debug/qt5-quickcontrols2/qtquickcontrols2/src/quicktemplates2/qquickscrollbar.cpp:1017
#9  0x00007fbb56946a3e in QQuickScrollBarAttached::~QQuickScrollBarAttached() (this=0x55a5ba3cecf0, this=<optimized out>) at /usr/src/debug/qt5-quickcontrols2/qtquickcontrols2/src/quicktemplates2/qquickscrollbar.cpp:1018
#10 0x00007fbb570c73bd in QObjectPrivate::deleteChildren() (this=this@entry=0x55a5ba39c8f0) at kernel/qobject.cpp:2137
#11 0x00007fbb570c7b39 in QObject::~QObject() (this=<optimized out>, this=<optimized out>) at kernel/qobject.cpp:1115
#12 0x00007fbb1c1721a3 in QQuickScrollView::~QQuickScrollView() (this=0x55a5ba3cd5f0, this=<optimized out>) at ../../../include/QtQuickTemplates2/5.15.10/QtQuickTemplates2/private/../../../../../../qtquickcontrols2/src/quicktemplates2/qquickscrollview_p.h:58
#13 QQmlPrivate::QQmlElement<QQuickScrollView>::~QQmlElement() (this=0x55a5ba3cd5f0, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#14 QQmlPrivate::QQmlElement<QQuickScrollView>::~QQmlElement() (this=0x55a5ba3cd5f0, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#15 0x00007fbb570c73bd in QObjectPrivate::deleteChildren() (this=this@entry=0x55a5ba34dc60) at kernel/qobject.cpp:2137
#16 0x00007fbb570c7b39 in QObject::~QObject() (this=<optimized out>, this=<optimized out>) at kernel/qobject.cpp:1115
#17 0x00007fbb593b86a0 in QQuickImplicitSizeItem::~QQuickImplicitSizeItem() (this=0x55a5ba34dba0, this=<optimized out>) at /usr/src/debug/qt5-declarative/qtdeclarative/src/quick/items/qquickimplicitsizeitem_p.h:60
#18 QQuickLoader::~QQuickLoader() (this=0x55a5ba34dba0, this=<optimized out>) at /usr/src/debug/qt5-declarative/qtdeclarative/src/quick/items/qquickloader.cpp:317
#19 QQmlPrivate::QQmlElement<QQuickLoader>::~QQmlElement() (this=0x55a5ba34dba0, this=<optimized out>) at ../../include/QtQml/../../../qtdeclarative/src/qml/qml/qqmlprivate.h:144
#20 QQmlPrivate::QQmlElement<QQuickLoader>::~QQmlElement() (this=0x55a5ba34dba0, this=<optimized out>) at ../../include/QtQml/../../../qtdeclarative/src/qml/qml/qqmlprivate.h:144
#21 0x00007fbb570c73bd in QObjectPrivate::deleteChildren() (this=this@entry=0x55a5ba322610) at kernel/qobject.cpp:2137
#22 0x00007fbb570c7b39 in QObject::~QObject() (this=<optimized out>, this=<optimized out>) at kernel/qobject.cpp:1115
#23 0x00007fbb1c17432b in QQmlPrivate::QQmlElement<QQuickPage>::~QQmlElement() (this=0x55a5ba31ee80, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#24 QQmlPrivate::QQmlElement<QQuickPage>::~QQmlElement() (this=0x55a5ba31ee80, this=<optimized out>) at /usr/include/qt/QtQml/qqmlprivate.h:144
#25 0x00007fbb570c3f9e in QObject::event(QEvent*) (this=0x55a5ba31ee80, e=0x55a5ba4401e0) at kernel/qobject.cpp:1334
#26 0x00007fbb57d7893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55a5ba31ee80, e=0x55a5ba4401e0) at kernel/qapplication.cpp:3640
#27 0x00007fbb5709c6f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55a5ba31ee80, event=0x55a5ba4401e0) at kernel/qcoreapplication.cpp:1064
#28 0x00007fbb570a165b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x55a5b9acfe50) at kernel/qcoreapplication.cpp:1821
#29 0x00007fbb570e76d8 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55a5b9aed060) at kernel/qeventdispatcher_glib.cpp:277
#30 0x00007fbb54d0fa31 in g_main_dispatch (context=0x7fbb34000ee0) at ../glib/glib/gmain.c:3460
#31 g_main_context_dispatch (context=0x7fbb34000ee0) at ../glib/glib/gmain.c:4200
#32 0x00007fbb54d6ccc9 in g_main_context_iterate.isra.0 (context=context@entry=0x7fbb34000ee0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#33 0x00007fbb54d0d0e2 in g_main_context_iteration (context=0x7fbb34000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#34 0x00007fbb570eb51c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55a5b9abfaf0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#35 0x00007fbb5709b404 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fff72d76910, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#36 0x00007fbb5709c8a3 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#37 0x00007fbb5753bef2 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#38 0x00007fbb57d76cda in QApplication::exec() () at kernel/qapplication.cpp:2832
#39 0x000055a5b90915af in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/merkuro/merkuro-23.07.80/src/calendar/main.cpp:145
[Inferior 1 (process 11390) 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 A. R. Kristiansen 2023-08-22 20:51:44 UTC
Created attachment 161122 [details]
Another backtrace that seems to have more information.

Uploading this backtrace just in case it's more informative than the first one, I generated this one manually using GDB.
Comment 2 A. R. Kristiansen 2023-08-27 14:35:15 UTC
Just updated to the official 24.08 release in the Arch Linux repository, and it still segfaults when launching it, in both Wayland and X11, Norwegian or English locale doesn't matter. Merkuro Contacts and Mail works.

When trying to start Merkuro Calendar from a terminal, this is the output:

merkuro-calendar 
qrc:/BasicMonthListView.qml:22:5: Required property startDate was not initialized
qrc:/MainDrawerToggleButton.qml:25: TypeError: Cannot read property 'collapsed' of undefined
qrc:/MainDrawerToggleButton.qml:14: TypeError: Cannot read property 'collapsed' of undefined
qrc:/MainDrawerToggleButton.qml:11: TypeError: Cannot read property 'mainDrawer' of undefined
30 -- exe=/usr/bin/merkuro-calendar
17 -- platform=wayland
25 -- appname=merkuro-calendar
17 -- apppath=/usr/bin
10 -- signal=11
9 -- pid=5205
19 -- appversion=23.08.0
29 -- programname=Merkuro Calendar
31 -- bugaddress=submit@bugs.kde.org
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = merkuro-calendar path = /usr/bin pid = 5205
KCrash: Arguments: /usr/bin/merkuro-calendar 
KCrash: Attempting to start /usr/lib/drkonqi
kf5idletime_wayland: This plugin does not support polling idle time

[1]+  Stopped                 merkuro-calendar
Comment 3 Carl Schwan 2023-08-27 22:22:07 UTC
Git commit 3572a9672924993b86aebca9caae14f00fbf4633 by Carl Schwan.
Committed on 28/08/2023 at 00:21.
Pushed by carlschwan into branch 'master'.

Fix segfault on launch

M  +1    -0    src/calendar/qml/MainViews/ScheduleView.qml

https://invent.kde.org/pim/merkuro/-/commit/3572a9672924993b86aebca9caae14f00fbf4633
Comment 4 Carl Schwan 2023-08-27 22:22:35 UTC
Git commit b15f8629599477953dba429eac57260cd67a6cc6 by Carl Schwan.
Committed on 28/08/2023 at 00:22.
Pushed by carlschwan into branch 'release/23.08'.

Fix segfault on launch
(cherry picked from commit 3572a9672924993b86aebca9caae14f00fbf4633)

M  +1    -0    src/calendar/qml/MainViews/ScheduleView.qml

https://invent.kde.org/pim/merkuro/-/commit/b15f8629599477953dba429eac57260cd67a6cc6