Bug 465080 - Kalendar crashes when dragging and dropping an event on the same day
Summary: Kalendar crashes when dragging and dropping an event on the same day
Status: RESOLVED FIXED
Alias: None
Product: Merkuro
Classification: Applications
Component: general (show other bugs)
Version: 22.12.1
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Claudio Cambra
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-01-31 11:36 UTC by Riccardo Robecchi
Modified: 2023-02-09 15:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (94.36 KB, text/plain)
2023-01-31 11:36 UTC, Riccardo Robecchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Robecchi 2023-01-31 11:36:20 UTC
Application: kalendar (22.12.1)

Qt Version: 5.15.8
Frameworks Version: 5.102.0
Operating System: Linux 5.19.15-xanmod1 x86_64
Windowing System: X11
Distribution: KDE neon 5.26
DrKonqi: 5.26.5 [CoredumpBackend]

-- Information about the crash:
Kalendar crashed after I right-clicked on an event. I couldn't reproduce after restarting the program.

The crash does not seem to be reproducible.

-- Backtrace (Reduced):
#6  0x00007fb1a359af75 in std::__atomic_base<int>::operator-- (this=0x18608e0ddc0) at /usr/include/c++/11/bits/atomic_base.h:385
#7  QAtomicOps<int>::deref<int> (_q_value=<error reading variable: Cannot access memory at address 0x18608e0ddc0>) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:289
[...]
#9  QDateTime::Data::operator= (other=..., other=..., this=0x55d46a824d28) at time/qdatetime.cpp:3411
#10 QDateTime::operator= (this=0x55d46a824d28, other=...) at time/qdatetime.cpp:3791
[...]
#12 0x00007fb1a36f40d4 in QtPrivate::QSlotObjectBase::call (a=0x7fff7b223f40, r=0x55d46875ac30, this=0x55d4687668b0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398


Reported using DrKonqi
Comment 1 Riccardo Robecchi 2023-01-31 11:36:21 UTC
Created attachment 155823 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Riccardo Robecchi 2023-01-31 14:46:44 UTC
The crash is actually always reproducible, it's the conditions that are different: Kalendar crashes when an event is dragged and then dropped on the same day. It doesn't happen when it is dropped on a different day.
Comment 3 Bug Janitor Service 2023-02-06 22:44:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kalendar/-/merge_requests/298
Comment 4 Claudio Cambra 2023-02-09 15:32:09 UTC
Git commit dcad77b9373c93c13bef2ca07e95064117d7bd37 by Claudio Cambra, on behalf of Carl Schwan.
Committed on 09/02/2023 at 15:15.
Pushed by clau-cambra into branch 'master'.

Fix bug when droping event with the same time

Signed-off-by: Carl Schwan <carl@carlschwan.eu>

M  +8    -1    src/contents/ui/KalendarUtils/dateutils.js
M  +5    -1    src/contents/ui/MainViews/BasicInternalHourlyView.qml
M  +3    -0    src/contents/ui/MainViews/BasicMonthListView.qml
M  +3    -0    src/contents/ui/MainViews/DayGridView.qml

https://invent.kde.org/pim/kalendar/commit/dcad77b9373c93c13bef2ca07e95064117d7bd37