Simple-Calendar icon indicating copy to clipboard operation
Simple-Calendar copied to clipboard

Entries are doubled

Open topcaser opened this issue 3 years ago • 24 comments

Hi, my appointments which are synced via davx5 are shown twice. Etar calendar does not have this problem. Any idea how to fix it?

Thanks for your support.

topcaser avatar Mar 04 '22 05:03 topcaser

what app and OS version are you using?

tibbi avatar Mar 04 '22 07:03 tibbi

App Version 6.17.2 OS: color OS 11 based on android 11

The app is loaded from fdroid

topcaser avatar Mar 04 '22 08:03 topcaser

you mean all events, or are those birthdays only? If you trigger some manual syncing, doesnt it create even more copies?

tibbi avatar Mar 04 '22 08:03 tibbi

The Birthdays are only once there. But the appointments of my main davx5 synced calender which is hosted in the nextcloud are shown twice (doubled). This is not the case with Etar calendar which means they (the appointments) are there only once and the bug is induced from simple calendar

topcaser avatar Mar 04 '22 14:03 topcaser

Screenshot_20220310-173203_Calendar only events made on Friday do this for me

Samsung s20 5g, fdroid, Android 12, davx5. syncing with my nextcloud calendar. The default samsung calendar does not add any additional events upon syncing. refreshing adds an additional event each time only on this particular calendar app.

Oclair avatar Mar 10 '22 16:03 Oclair

seems to occur when an event on the app cannot be written to the nextcloud calendar db

Oclair avatar Mar 10 '22 22:03 Oclair

Hi. I have the same issue with contacts birthdays. It duplicates contacts birthdays and on some contacts "triplicates". I am not sure if this is the issue, but I think it does that because it sync with all accounts from my device. If I open the calendar app and go to settings-add contact birthdays, it adds the birthdays, but after I open Whatsapp or another app that uses contacts and I go back in the calendar app, it doubles the contacts birthdays. Hope that I explained it well.

gg-gg1 avatar Mar 12 '22 10:03 gg-gg1

@topcaser Can you pls export and attach the .ics file of the duplicated events here? That would really help in debugging this issue. Thanks

How to: Tap on the three dots in the top-right corner => tap on "Export events to an .ics file" => Choose storage location for export

naveensingh avatar May 27 '22 05:05 naveensingh

Hi, I can't upload all my private events. Sorry. But I can test a possible fix.

topcaser avatar May 29 '22 05:05 topcaser

I am having this same problem - Version 6.16.2 Pro - Android 11 - ArrowOS v11.0

EDavidF avatar Jun 13 '22 02:06 EDavidF

hi i have the same problem only some events are duplicated i am not able to produce a event that duplicates but i can share a .ics file that has one (i removed all events except the related one and changed the name) steps i took to reproduce

  1. save duplicate.txt as a .ics file
  2. open the .ics file with Thunderbird
  3. edit all occurrences and change the Calendar from the file to a caldav calendar
  4. sync the calendar with simple calendar
  5. each time i sync the event will be duplicated the duplicated event is on 2021-12-29

i use a self hosted baikal caldav server and phone is a Fairphone 4 with /e/ os davx5 to sync caldav on my phone and Thunderbird on my laptop the calendar app is version 6.18.3 pro (from Fdroid) Android is version 11

vista-narvas avatar Jun 27 '22 08:06 vista-narvas

Alright, thanks for this much-needed info @vista-narvas

I'll soon check if I can reproduce the bug using these steps.

naveensingh avatar Jun 27 '22 10:06 naveensingh

i think this bug is caused by editing a ocurance of a event thats is repeated. but im still not able to force it @Naveen3Singh have you had the time to look into this ?

vista-narvas avatar Jul 15 '22 21:07 vista-narvas

All right, I was able to reproduce this thanks to the instructions by @vista-narvas and others

If anyone still has such duplicated events, here's a test apk that shouldn't cause duplication on CalDAV sync anymore (already duplicated events will stay there for now)

if installing an apk is not an option, the branch to compile from is https://github.com/Naveen3Singh/Simple-Calendar/tree/caldav_duplication

thanks!

naveensingh avatar Jul 31 '22 22:07 naveensingh

But the appointments of my main davx5 synced calender which is hosted in the nextcloud are shown twice (doubled).

@topcaser are these part of a recurring event as in the case of @vista-narvas? or is it a single non-recurring event that is duplicated?

naveensingh avatar Aug 01 '22 20:08 naveensingh

But the appointments of my main davx5 synced calender which is hosted in the nextcloud are shown twice (doubled).

@topcaser are these part of a recurring event as in the case of @vista-narvas? or is it a single non-recurring event that is duplicated?

Hi, my problem isn't gone with the latest update although e. g. Etar doesn't have it. Affected is an appointment which spans over several days (but it is not recurring): "Sommerferien". Furthermore some recurring events like birthdays are affected.

topcaser avatar Aug 02 '22 02:08 topcaser

If you need help for debugging let me know.

topcaser avatar Aug 02 '22 02:08 topcaser

@topcaser will you be able to test the fix APK linked in my previous comment?

an ICS file containing just the multi-day event that is being duplicated would be a great help

naveensingh avatar Aug 02 '22 13:08 naveensingh

Hi, the testversion didn't work for me. All duplicates are still there. As requested here is an ics, I deleted the rest of the appointments and hopefully the ics is still well formed: click

topcaser avatar Aug 02 '22 19:08 topcaser

@topcaser thx much! That did help reproduce the issue (although very indirectly, had to trigger a very rare code path).

one last thing :) :arrow_down:

These events are duplicated only twice right? Have you tried deleting one of them? If yes, does it delete the whole event from the server or only the locally duplicated one (after sync)?

(if you wanna try, don't try without backing up, I think it'll delete the event on the server too)

naveensingh avatar Aug 02 '22 20:08 naveensingh

@Naveen3Singh Thank you for the build. for me it fixed the issue.

vista-narvas avatar Aug 02 '22 22:08 vista-narvas

Hi, you are right, if I delete one of the duplicates and sync to the server, both are gone. But if I create the event newly, it's only once there. Really strange where the duplicates come from an why they are there.

topcaser avatar Aug 03 '22 04:08 topcaser

glad to see this randomly occurring bug is being studied

Great work everyone 👏

On August 3, 2022 4:46:55 AM UTC, topcaser @.***> wrote:

Hi, you are right, if I delete one of the duplicates and sync to the server, both are gone. But if I create the event newly, it's only once there. Really strange where the duplicates come from an why they are there.

-- Reply to this email directly or view it on GitHub: https://github.com/SimpleMobileTools/Simple-Calendar/issues/1658#issuecomment-1203479726 You are receiving this because you commented.

Message ID: @.***> -- Sent from my Android device with K-9 Mail. Please excuse my brevity.

Oclair avatar Aug 03 '22 11:08 Oclair

Is anyone here still experiencing this issue?

naveensingh avatar Jun 19 '23 21:06 naveensingh