Giter Club home page Giter Club logo

Comments (9)

delcier avatar delcier commented on July 18, 2024

Ok, I fixed it by deleting a task that kept on changing its due date on its own after each sync. I tried restoring it through Etesync to check what might have been wrong with it, but the app crashes when I try to do that.

I feel lucky that this task was so easy to spot... Otherwise this could have taken a lot more time to figure out.

from android.

abaker avatar abaker commented on July 18, 2024

Do you happen to have the raw vtodo data for this task?

from android.

AndreasDeschner avatar AndreasDeschner commented on July 18, 2024

My phone for a few days now is very often trying to sync my tasks with an error just like the one described in this post. The debug info looks exactly like the one posted here. I don't have any suspicious or unusual tasks. My internet was really spotty, though.
Does anybody know how I should proceed?

from android.

0chroma avatar 0chroma commented on July 18, 2024

also getting the same error, my stack trace is slightly different though:

SYNCHRONIZATION INFO
Synchronization phase: applying remote entries
Account name: 0chroma
Authority: org.tasks.opentasks
Debug activity source: class com.etesync.syncadapter.syncadapter.SyncNotification$NotificationHandlerActivity (Kotlin reflection is not available)

EXCEPTION:
at.bitfire.ical4android.CalendarStorageException: Couldn't apply batch operation
	at at.bitfire.ical4android.BatchOperation.commit(BatchOperation.kt:54)
	at at.bitfire.ical4android.AndroidTask.add(AndroidTask.kt:320)
	at com.etesync.syncadapter.syncadapter.TasksSyncManager.processTask(TasksSyncManager.kt:137)
	at com.etesync.syncadapter.syncadapter.TasksSyncManager.processItem(TasksSyncManager.kt:89)
	at com.etesync.syncadapter.syncadapter.SyncManager.applyRemoteItems(SyncManager.kt:470)
	at com.etesync.syncadapter.syncadapter.SyncManager.performSync(SyncManager.kt:252)
	at com.etesync.syncadapter.syncadapter.TasksSyncAdapterService$TasksSyncAdapter.onPerformSyncDo(TasksSyncAdapterService.kt:70)
	at com.etesync.syncadapter.syncadapter.SyncAdapterService$SyncAdapter.onPerformSync(SyncAdapterService.kt:117)
	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:334)
Caused by: android.content.OperationApplicationException: Too many content provider operations between yield points. The maximum number of operations per yield point is 500
	at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java:161)
	at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java:528)
	at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:532)
	at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:520)
	at at.bitfire.ical4android.BatchOperation.runBatch(BatchOperation.kt:80)
	at at.bitfire.ical4android.BatchOperation.commit(BatchOperation.kt:44)
	... 8 more

SOFTWARE INFORMATION
EteSync version: 2.3.0 (20300) 
Installed from: com.google.android.packageinstaller
CONFIGURATION
Power saving disabled: yes
android.permission.READ_CONTACTS permission: granted
android.permission.WRITE_CONTACTS permission: granted
android.permission.READ_CALENDAR permission: granted
android.permission.WRITE_CALENDAR permission: granted
org.dmfs.permission.READ_TASKS permission: granted
org.dmfs.permission.WRITE_TASKS permission: granted
org.tasks.permission.READ_TASKS permission: granted
org.tasks.permission.WRITE_TASKS permission: granted
System-wide synchronization: automatically
Account: -
  Address book sync. interval: 240 min
  Calendar     sync. interval: 240 min
  OpenTasks    sync. interval: —
  Tasks.org    sync. interval: manually
  WiFi only: false
  [CardDAV] Contact group method: GROUP_VCARDS
           Manage calendar colors: true
Address book account: Personal (0chroma kr)
  Main account: Account {name=0chroma, type=com.etesync.syncadapter}
  URL: -
  Sync automatically: true

SQLITE DUMP
android_metadata
	|  locale |
	|  en_US |
----------
settings
	|  setting | value |
----------

SERVICES DUMP

JOURNALS DUMP

SYSTEM INFORMATION
Android version: 10 (QP1A.190711.020.G960U1UES9FVD1)
Device: Samsung SM-G960U1 (starqlteue)

--- END DEBUG INFO ---

I've also had issues with tasks changing due/start dates back like others have mentioned

from android.

0chroma avatar 0chroma commented on July 18, 2024

I think I isolated the vcard that is responsible. For some reason it had X-APPLE-SORT-ORDER:655191476 repeated 1,552 times. I use tasks.org for what it's worth, it could be an upstream bug with them. But it's still frustrating to have sync break when technically it's a valid vcard that other applications can read.

The way I isolated it was by taking a backup of my tasks as an ics, reimporting it through etesync on android, and seeing what task was missing between the two files.

Here's the ics in question:

DTSTAMP:20220918T053603Z
UID:1707289006283413006
SEQUENCE:7
CREATED:20220807T224404Z
LAST-MODIFIED:20220918T053602Z
SUMMARY:redacted
PRIORITY:1
STATUS:NEEDS-ACTION
X-APPLE-SORT-ORDER:655191476
(repeat last line 1551x)
DUE;VALUE=DATE:20220919
BEGIN:VALARM
TRIGGER;RELATED=END:PT0S
ACTION:DISPLAY
DESCRIPTION:Default Tasks.org description
X-EVOLUTION-ALARM-UID:75169867a46d15920217fbf28226703efe77df7f
END:VALARM
BEGIN:VALARM
TRIGGER;RELATED=END:P1D
ACTION:DISPLAY
DESCRIPTION:Default Tasks.org description
X-EVOLUTION-ALARM-UID:608fef114438db924473c76d1464021a19e6217c
END:VALARM
END:VTODO

from android.

abaker avatar abaker commented on July 18, 2024

@0chroma I added a unit test to make sure Tasks wasn't adding multiple X-APPLE-SORT-ORDER properties, so I don't think it's my fault. Any chance you've been able to reproduce this?

from android.

0chroma avatar 0chroma commented on July 18, 2024

ahh yeah it's likely a bug with tasks.org and should be reported to them, though I do feel like ical4android should probably be able to deal with that weird edge case. I haven't had the bug happen to me again since then, but I can keep you posted. Thanks for your work on this!

from android.

delcier avatar delcier commented on July 18, 2024

from android.

abaker avatar abaker commented on July 18, 2024

@0chroma sorry, I meant I added a test to Tasks.org to verify it wasn't adding multiple X-APPLE-SORT-ORDER properties to the ical4android object

@delcier are you able to reproduce this?

from android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.