Bug 460586 - KOrganizer crashes on startup when invoked by opening an .ics file (from Dolphin(
Summary: KOrganizer crashes on startup when invoked by opening an .ics file (from Dolp...
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 5.21.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-10-17 12:49 UTC by m_rolappe
Modified: 2023-04-22 05:06 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 m_rolappe 2022-10-17 12:49:18 UTC
Application: korganizer (5.21.1 (22.08.1))

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.19.14-200.fc36.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 36 (Workstation Edition)
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
When trying to open an iCalendar file from Dolphin by clicking the file KOrganizer seems to open a window but instantly aborts with a crash dialog.

The crash can be reproduced every time.

-- Backtrace:
Application: KOrganizer (korganizer), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fd66e77f164 in KJob::setError(int) () from /lib64/libKF5CoreAddons.so.5
#5  0x00007fd66ebcc41c in Akonadi::SessionPrivate::serverStateChanged(Akonadi::ServerManager::State) () from /lib64/libKF5AkonadiCore.so.5
#6  0x00007fd66d2db9a6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#7  0x00007fd66ebc9e15 in Akonadi::ServerManager::stateChanged(Akonadi::ServerManager::State) () from /lib64/libKF5AkonadiCore.so.5
#8  0x00007fd66ebcd637 in QtPrivate::QFunctorSlotObject<Akonadi::ServerManager::ServerManager(Akonadi::ServerManagerPrivate*)::{lambda(QString const&)#4}, 1, QtPrivate::List<QString const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) [clone .lto_priv.0] () from /lib64/libKF5AkonadiCore.so.5
#9  0x00007fd66d2d2c44 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#10 0x00007fd66dfaed02 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#11 0x00007fd66d2a81c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#12 0x00007fd66d2ab534 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#13 0x00007fd66d2f9537 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#14 0x00007fd66ade5faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#15 0x00007fd66ae3b2c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#16 0x00007fd66ade3940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#17 0x00007fd66d2f902a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#18 0x00007fd66d2a6c1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#19 0x00007fd66e1bf5e7 in QDialog::exec() () from /lib64/libQt5Widgets.so.5
#20 0x00007fd66e8e95cc in KMessageBox::createKMessageBox(QDialog*, QDialogButtonBox*, QIcon const&, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&, QMessageBox::Icon) () from /lib64/libKF5WidgetsAddons.so.5
#21 0x00007fd66e8e9c8b in KMessageBox::createKMessageBox(QDialog*, QDialogButtonBox*, QMessageBox::Icon, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&) () from /lib64/libKF5WidgetsAddons.so.5
#22 0x00007fd66e8ea8ef in KMessageBox::questionYesNoCancelInternal(QDialog*, QString const&, QString const&, KGuiItem const&, KGuiItem const&, KGuiItem const&, QString const&, QFlags<KMessageBox::Option>) [clone .lto_priv.0] () from /lib64/libKF5WidgetsAddons.so.5
#23 0x00007fd66f01d5d1 in ActionManager::importCalendar(QUrl const&) () from /lib64/libkorganizerprivate.so.5
#24 0x000055c3c681188a in KOrganizerApp::activate(QStringList const&, QString const&) ()
#25 0x00007fd66f0d85f3 in KontactInterface::PimUniqueApplication::start(QStringList const&) () from /lib64/libKF5KontactInterface.so.5
#26 0x000055c3c680de3a in main ()
[Inferior 1 (process 254828) detached]

Reported using DrKonqi
Comment 1 gjditchfield 2022-10-17 17:23:16 UTC
Can you install debugging symbols, to get line numbers where the crash happens?

Does KOrganizer print anything useful to stderr when it crashes?
Comment 2 m_rolappe 2022-10-17 20:43:11 UTC
What is the quickest way to install debugging symbols?

I get the following when invoking from the command line:

❯ korganizer tmp-org-ical-exp-test.ics
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
org.kde.pim.akonadiserver: Did not find MySQL server default configuration (mysql-global.conf)
org.kde.pim.akonadiserver: Shutting down AkonadiServer...
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadiserver' exited normally...
org.kde.pim.korganizer: Search failed:  ""
KCrash: Application 'korganizer' crashing...
KCrash: Attempting to start /usr/libexec/drkonqi

[1]+  Angehalten              korganizer tmp-org-ical-exp-test.ics
Comment 3 Bug Janitor Service 2022-11-01 05:06:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Carl Schwan 2023-04-22 05:00:53 UTC
Git commit eca4fdbdf328883ae564b568c9ba13697cc90c4a by Carl Schwan, on behalf of Jiří Paleček.
Committed on 22/04/2023 at 04:54.
Pushed by carlschwan into branch 'master'.

Fix wrong for clause in Akonadi::Session
Related: bug 468343, bug 465245, bug 464275, bug 462213, bug 462169, bug 461131, bug 460653, bug 458497, bug 458315

M  +6    -3    src/core/session.cpp

https://invent.kde.org/pim/akonadi/commit/eca4fdbdf328883ae564b568c9ba13697cc90c4a
Comment 5 Carl Schwan 2023-04-22 05:06:01 UTC
Git commit 0ab418bacdaf8322771e41452a87d062a2449869 by Carl Schwan, on behalf of Jiří Paleček.
Committed on 22/04/2023 at 05:05.
Pushed by carlschwan into branch 'release/23.04'.

Fix wrong for clause in Akonadi::Session
Related: bug 468343, bug 465245, bug 464275, bug 462213, bug 462169, bug 461131, bug 460653, bug 458497, bug 458315
(cherry picked from commit eca4fdbdf328883ae564b568c9ba13697cc90c4a)

M  +6    -3    src/core/session.cpp

https://invent.kde.org/pim/akonadi/commit/0ab418bacdaf8322771e41452a87d062a2449869