elementary / calendar

Desktop calendar app designed for elementary OS
https://elementary.io
GNU General Public License v3.0
130 stars 39 forks source link

Can't drag event to greyed-out days of the next or previous month #684

Open wout opened 3 years ago

wout commented 3 years ago

What Happened

Dragging an event to the grey days of the next or previous months will redirect the event to the same day number of the current month. A more problematic side-effect is that, if you drop an event from a 30-day month to the 31st (grey) day of the previous month, the Calendar app crashes. What's worse is that it's no longer possible to open the Calendar app. It will open and immediately crash. A fix is to delete the event using Evolution.

Expected Behavior

Ideally, the event should be moved to the actual day it is dragged onto.

Steps to Reproduce

  1. Create an event in September
  2. Move it to 31 August
  3. App crashes

Logs

Crash with event dragged to the 31st day of the previous month:

Jul 25 13:03:02 Rossy gala[1844]: clutter_actor_remove_child: assertion 'CLUTTER_IS_ACTOR (child)' failed
Jul 25 13:03:02 Rossy gala[1844]: invalid (NULL) pointer instance
Jul 25 13:03:02 Rossy gala[1844]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Jul 25 13:03:02 Rossy kernel: [  288.463337] io.elementary.c[2538]: segfault at 10 ip 00007fee39c693c0 sp 00007fff949d6a50 error 4 in libglib-2.0.so.0.6400.6[7fee39c4b000+84000]
Jul 25 13:03:02 Rossy kernel: [  288.463343] Code: 86 a0 06 00 48 8d 3d 6d 5c 06 00 e8 7a fb 01 00 31 c0 48 83 c4 08 c3 0f 1f 00 f3 0f 1e fa 55 48 89 f5 53 48 89 fb 48 83 ec 08 <8b> 77 10 48 8b 7f 08 e8 f4 66 04 00 48 63 73 14 48 89 ef 48 ba 00ap

Platform Information

image

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/101159487-can-t-drag-event-to-greyed-out-days-of-the-next-or-previous-month?utm_campaign=plugin&utm_content=tracker%2F60388692&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F60388692&utm_medium=issues&utm_source=github).
mcclurgm commented 3 years ago

I don't see a crash when I try this, but in my case I dragged the event to the first of the next month and it went to the first of the current month. So I'll call this confirmed, since we clearly aren't accounting for something.

As for the crash, could you please follow these instructions? https://elementary.io/docs/code/os-dev#inspecting-crashes I don't think I can diagnose the crash with the logs you pasted.

wout commented 3 years ago

@mcclurgm Sure, I'll try to provide you with a more detailed crash report when I have the time. Probably next week. But I'm pretty sure it's related to the main issue which you confirmed.

4jNsY6fCVqZv commented 2 years ago

I also cannot confirm the crash with the last stable version 6.0.3.

@mcclurgm Do you have any idea why an event can currently only be moved within the same month? Because I have also made this observation.