Bug 506714 - Kontact crashes when switching to Calendar or To-List
Summary: Kontact crashes when switching to Calendar or To-List
Status: REPORTED
Alias: None
Product: korganizer
Classification: Applications
Component: todoview (other bugs)
Version First Reported In: 6.4.80
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
: 506819 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-07-07 11:31 UTC by Robby Engelmann
Modified: 2025-08-31 08:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/212479/events/8c4c6bd64e6c44578cce96ded9fb86a4/


Attachments
New crash information added by DrKonqi (135.63 KB, text/plain)
2025-07-07 11:31 UTC, Robby Engelmann
Details
crash using master snapshot that should include the fix (250707, 08:00 pm) (118.72 KB, text/vnd.kde.kcrash-report)
2025-07-08 10:19 UTC, Robby Engelmann
Details
250723 crash prior to config file killing (43.15 KB, text/vnd.kde.kcrash-report)
2025-07-23 17:35 UTC, Robby Engelmann
Details
250728_new BT (164.50 KB, text/vnd.kde.kcrash-report)
2025-07-28 14:58 UTC, Robby Engelmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robby Engelmann 2025-07-07 11:31:03 UTC
Application: kontact (6.5.40 alpha (25.11.70))

ApplicationNotResponding [ANR]: false
Qt Version: 6.9.1
Frameworks Version: 6.17.0
Operating System: Linux 6.15.4-1-default x86_64
Windowing System: Wayland
Distribution: "openSUSE Tumbleweed"
DrKonqi: 6.4.80 [CoredumpBackend]

-- Information about the crash:
But Korganizer starts when Kontact is closed; Starting Korganizer having running Kontact also crashes Kontact.

Operating System: openSUSE Tumbleweed 20250706
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 20 × 13th Gen Intel® Core™ i7-13700H
Memory: 64 GiB of RAM (62.5 GiB usable)
Graphics Processor: Intel® Iris® Xe Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro Gen8 (MK1)

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x00007f98d009c6f3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:89
#7  0x00007f98d0042106 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f98d002938b in __GI_abort () at abort.c:73
#9  0x00007f98d04b2cb4 in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#10 0x00007f98d04c531c in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#11 0x00007f98d04b283a in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
#12 0x00007f98d04c55c8 in __cxxabiv1::__cxa_throw (obj=<optimized out>, tinfo=0x7f982063b980 <typeinfo for Akonadi::PayloadException>, dest=0x7f98204e6be0 <Akonadi::PayloadException::~PayloadException()>) at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:98
#13 0x00007f9820482d35 in ??? () at /lib64/libKPim6AkonadiCore.so.6
#14 0x00007f9868221b42 in ??? () at /lib64/libKPim6AkonadiCalendar.so.6
#15 0x00007f9868275611 in ??? () at /lib64/libKPim6AkonadiCalendar.so.6
#16 0x00007f9868279951 in ??? () at /lib64/libKPim6AkonadiCalendar.so.6
#17 0x00007f98d0a2fb14 in QtPrivate::QSlotObjectBase::call (this=0x564aafbe4c00, r=<optimized out>, a=0x7fff84181b60, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qtbase-everywhere-src-6.9.1/src/corelib/kernel/qobjectdefs_impl.h:461
#18 doActivate<false> (sender=0x564aafb0bbc0, signal_index=13, argv=0x7fff84181b60) at /usr/src/debug/qtbase-everywhere-src-6.9.1/src/corelib/kernel/qobject.cpp:4146
[...]
#20 QAbstractItemModel::rowsInserted (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized out>, _t4=...) at /usr/src/debug/qtbase-everywhere-src-6.9.1/build/src/corelib/Core_autogen/include/moc_qabstractitemmodel.cpp:688
#21 0x00007f98d0c086f0 in QAbstractItemModel::endInsertRows (this=0x564aafb0bbc0) at /usr/src/debug/qtbase-everywhere-src-6.9.1/src/corelib/itemmodels/qabstractitemmodel.cpp:2917


Reported using DrKonqi
Comment 1 Robby Engelmann 2025-07-07 11:31:04 UTC
Created attachment 183035 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Allen Winter 2025-07-07 12:10:50 UTC
I'm looking...

I believe the crash is related to the filters somehow.  have you removed view filters in KOrganizer recently?
Comment 3 Robby Engelmann 2025-07-07 13:06:04 UTC
Not to me knowledge,
I even do not know about view filters in Korganizer nor how to remove them. Where could I look for it?
Comment 4 Allen Winter 2025-07-07 13:44:17 UTC
quit Kontact

edit ~/.config/kontactrc
- remove all sections that start with "Filter_*" 
- remove the "CalendarFilters" and "Current Filter" values in the [General] section

restart Kontact. 
see what happens
Comment 5 Bug Janitor Service 2025-07-07 13:56:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/eventviews/-/merge_requests/161
Comment 6 Allen Winter 2025-07-07 14:06:24 UTC
are you using  etesync or kolab  calendars?
Comment 7 Robby Engelmann 2025-07-07 14:42:00 UTC
(In reply to Allen Winter from comment #4)
> quit Kontact
> 
> edit ~/.config/kontactrc
> - remove all sections that start with "Filter_*" 
> - remove the "CalendarFilters" and "Current Filter" values in the [General]
> section
> 
> restart Kontact. 
> see what happens

checked it,
there was nothing with "Filter_*" and no entries in  "CalendarFilters" and "Current Filter"
Comment 8 Robby Engelmann 2025-07-07 14:45:30 UTC
(In reply to Allen Winter from comment #6)
> are you using  etesync or kolab  calendars?

etesync not,
kolab not sure: I have a calender from nextcloud, a google calendar and one from a ews ressource
Comment 9 Allen Winter 2025-07-07 15:18:42 UTC
Git commit 00407b16a6d3ba96c9374906ee5e928cc4d05fd3 by Allen Winter.
Committed on 07/07/2025 at 14:23.
Pushed by winterz into branch 'master'.

todoviewsortfilterproxymodel.cpp - call beginFilterChange() as needed

Since Qt6.9,
Per https://doc.qt.io/qt-6/qsortfilterproxymodel.html#invalidateFilter
we need to call beginFilterChange() before invalidateRowsFilter().

Possible crash fix.

M  +9    -0    src/todo/todoviewsortfilterproxymodel.cpp

https://invent.kde.org/pim/eventviews/-/commit/00407b16a6d3ba96c9374906ee5e928cc4d05fd3
Comment 10 Allen Winter 2025-07-07 15:19:00 UTC
Git commit 54ed7301b311470c200c6fb6b10bfeaf9efa4844 by Allen Winter.
Committed on 07/07/2025 at 15:18.
Pushed by winterz into branch 'release/25.08'.

todoviewsortfilterproxymodel.cpp - call beginFilterChange() as needed

Since Qt6.9,
Per https://doc.qt.io/qt-6/qsortfilterproxymodel.html#invalidateFilter
we need to call beginFilterChange() before invalidateRowsFilter().

Possible crash fix.


(cherry picked from commit 00407b16a6d3ba96c9374906ee5e928cc4d05fd3)

Co-authored-by: Allen Winter <winter@kde.org>

M  +9    -0    src/todo/todoviewsortfilterproxymodel.cpp

https://invent.kde.org/pim/eventviews/-/commit/54ed7301b311470c200c6fb6b10bfeaf9efa4844
Comment 11 Robby Engelmann 2025-07-07 21:00:49 UTC
still crashing here
Comment 12 Robby Engelmann 2025-07-08 10:19:26 UTC
Created attachment 183056 [details]
crash using master snapshot that should include the fix (250707, 08:00 pm)
Comment 13 Allen Winter 2025-07-10 11:09:02 UTC
*** Bug 506819 has been marked as a duplicate of this bug. ***
Comment 14 Robby Engelmann 2025-07-10 12:08:12 UTC
so I found another way to trigger this bug:
- open Korganizer
-switch to ToDo View
Comment 15 Robby Engelmann 2025-07-15 05:55:25 UTC
having switched off the ToDo plugin in kontactrc renders the Calender View in Kontakt working again, with the drawback of lacking ToDos.
Comment 16 Allen Winter 2025-07-20 12:46:10 UTC
moving to KOrganizer..

Robby, can you test again after last night's update?  obviously, restore the todo plugin first.
Comment 17 Robby Engelmann 2025-07-23 17:34:47 UTC
I removed the config files for korganizer and kontact and now it seems to work mostly without crashes. The last one (prior to removal of the configs and renew them) is attached
Comment 18 Robby Engelmann 2025-07-23 17:35:20 UTC
Created attachment 183469 [details]
250723 crash prior to config file killing
Comment 19 Allen Winter 2025-07-27 16:09:24 UTC
could you add the debuginfo to this crash?
you would need to edit (or create) a file in your home directory called .gdbinit
then add the line  'set debuginfod enabled on' to .gdbinit.

then get a new crash and attach the new backtrace.
generating the new backtrace will take some time since a lot of debuginfo rpms will be installed
Comment 20 Robby Engelmann 2025-07-28 14:58:03 UTC
uploaded, hope this helps
Comment 21 Robby Engelmann 2025-07-28 14:58:28 UTC
Created attachment 183600 [details]
250728_new BT
Comment 22 Allen Winter 2025-07-29 11:43:26 UTC
Last night I reverted some changes I had made in todoview .

any improvement today?
Comment 23 Robby Engelmann 2025-07-30 08:35:37 UTC
(In reply to Allen Winter from comment #22)
> Last night I reverted some changes I had made in todoview .
> 
> any improvement today?

Still crashing when switching in Kontact to To-Do List.
Comment 24 Allen Winter 2025-08-30 18:49:50 UTC
Robby,
I forgot about this one.
How are things working for you with the official 6.5.0 release?
Comment 25 Robby Engelmann 2025-08-31 08:42:44 UTC
It is still crashing in current master:

Kontact: 6.5.40 alpha (25.11.70)
KDE Frameworks: 6.18.0
Qt: Using 6.9.2 and built against 6.9.2
openSUSE Tumbleweed (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.16.3-1-default