taskwarrior-reminders
taskwarrior-reminders copied to clipboard
Error during export
during the full export process:
10.15.4 (19E287)
[Taskwarrior ▶ Reminders] e881a648-d4fd-44b9-93f1-5968da1f4cc2
title[ ▶ figure out add way to repair/heal my left ankle that hurts on long walks and after jumping]
project[Reminders ▶ self.fitness]
[Taskwarrior] sync
[Taskwarrior] reminderID:933474A1-3367-406D-98B0-D87F659AC67C export
2020-06-04 17:32:26.774 task-reminders-sync[9735:9283012] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to set posix_spawn_file_actions for fd -1 at index 0 with errno 9'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff37d958d7 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff70b73a9e objc_exception_throw + 48
2 Foundation 0x00007fff3a4740c4 -[NSConcreteTask launchWithDictionary:error:] + 5316
3 task-reminders-sync 0x0000000105c787bc $s12Repositories21TaskwarriorRepositoryC04execB033_34B1B378C6FD518C2F80C60344E1C084LL4args5input10Foundation4DataVSgSaySSG_6Models4TaskCSgtFTf4nnd_n + 1756
4 task-reminders-sync 0x0000000105c732d5 $s12Repositories21TaskwarriorRepositoryC05fetchB4Task6filter6Models0E0CSgSS_tF + 197
5 task-reminders-sync 0x0000000105c735f3 $s12Repositories21TaskwarriorRepositoryC08upsertToB0yy6Models4TaskCF + 131
6 task-reminders-sync 0x0000000105c7f71d $s4Sync19TaskwarriorObserverC18taskwarriorChanged5eventy13EonilFSEvents0gH5EventV_tF + 893
7 task-reminders-sync 0x0000000105c7fd71 $sTA + 17
8 task-reminders-sync 0x0000000105c65aa7 $s13EonilFSEvents0A13FSEventStreamC12pathsToWatch9sinceWhen7latency5flags7handlerACSaySSG_AA0aB7EventIDVSdAA0aB11CreateFlagsVyAA0abM0VctKcfcys13OpaquePointerV_SvSgSiSvSPys6UInt32VGSPys6UInt64VGtcfU_Tf4dnnnnn_n + 311
9 FSEvents 0x00007fff39459a85 implementation_callback_rpc + 3083
10 FSEvents 0x00007fff39458dfe _Xcallback_rpc + 233
11 FSEvents 0x00007fff39458cf7 FSEventsD2F_server + 55
12 FSEvents 0x00007fff39458c61 __create_d2f_port_source_block_invoke + 232
13 libdispatch.dylib 0x00007fff71cb9658 _dispatch_client_callout + 8
14 libdispatch.dylib 0x00007fff71cbb818 _dispatch_continuation_pop + 414
15 libdispatch.dylib 0x00007fff71ccb4be _dispatch_source_invoke + 2084
16 libdispatch.dylib 0x00007fff71cc4b6d _dispatch_main_queue_callback_4CF + 618
17 CoreFoundation 0x00007fff37d58cc3 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
18 CoreFoundation 0x00007fff37d1897a __CFRunLoopRun + 2042
19 CoreFoundation 0x00007fff37d17b23 CFRunLoopRunSpecific + 466
20 Foundation 0x00007fff3a3ce2a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
21 Foundation 0x00007fff3a480d2f -[NSRunLoop(NSRunLoop) run] + 76
22 task-reminders-sync 0x0000000105c7b95f main + 127
23 libdyld.dylib 0x00007fff71d12cc9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
fish: 'task-reminders-sync --all' terminated by signal SIGABRT (Abort)
Weird!
So you created a reminder and it crashed trying to sync with taskd, is that right?
Can you confirm you’ve been able to successfully sync with taskd in the past?
Edit: anything else worth mentioning about your setup, like do you have a massive number of tasks?
I think one of the problems was having the reminders app open while running. This time I won't. I also verified i have this version of xcode: Version 11.5 (11E608c)
I was really just trying to sync the existing tasks on my computer to the reminders app to be able to see/edit/create tasks on my iphone I use sometimes. I use inthe.am as my task server.
ok i upgraded to the 11.5 xcode and command line tools; and now i see;
[I] ~/s/taskwarrior-reminders master task-reminders-sync --all
[task-reminders-sync] We're off to the races!
[Taskwarrior] export
[Taskwarrior ▶ Reminders] fc3cf844-8872-435b-a11c-324ccc4acb2e
fish: 'task-reminders-sync --all' terminated by signal SIGILL (Illegal instruction)
Gotcha, that's helpful. I upgraded MacOS and XCode and haven't been able to reproduce.
Could you try running this again after checking out origin/dev
, and let me know what you see?
Are you running it via XCode or CLI? And everything has permissions granted for Reminders?
Sorry for lack of quick responses :)
850ea7a [12 days ago] (HEAD -> origin/dev, origin/dev) Add some error handling and debug logs [Bryce Lampe]
----
[I] ~/s/taskwarrior-reminders origin/dev ls -l
total 488
-rw-r--r-- 1 david staff 931 Jun 4 18:26 Info.plist
-rw-r--r-- 1 david staff 1068 Jun 4 18:26 LICENSE
-rw-r--r-- 1 david staff 996 Jun 18 17:46 Makefile
-rw-r--r-- 1 david staff 322 Jun 4 19:30 Package.resolved
-rw-r--r-- 1 david staff 1193 Jun 4 18:26 Package.swift
-rw-r--r-- 1 david staff 3854 Jun 4 18:26 README.md
drwxr-xr-x 6 david staff 192 Jun 4 18:26 Sources/
-rw-r--r-- 1 david staff 567 Jun 4 18:26 com.blampe.task-reminders-sync.plist
-rwxr-xr-x 1 david staff 1769 Jun 18 17:44 on-add.context*
-rwxr-xr-x 1 david staff 466072 Jun 4 19:31 task-reminders-sync*
[I] ~/s/taskwarrior-reminders origin/dev make install
swift package clean
rm -rf .build
swift build -g -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __info_plist -Xlinker Info.plist --configuration release
error: unknown option -g; use --help to list available options
Did you mean -j?
make: *** [release] Error 1
[I] ✘ ~/s/taskwarrior-reminders origin/dev
Running it via CLI via fish shell (also tried running via bash -- same error).
I think it asked for permissions when I got it to build that one time but this time I'm not able to finish the build.
Ok I think I got the build issue fixed; not super competent with git branches so I deleted the source directory, then checked it out, then switched branches... got it to build on your origin/dev branch.
[I] ✘ ~/s/t/taskwarrior-reminders master git checkout -b origin/dev
Switched to a new branch 'origin/dev'
[I] ~/s/t/taskwarrior-reminders origin/dev make install
swift package clean
rm -rf .build
swift build -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __info_plist -Xlinker Info.plist --configuration release
Fetching https://github.com/eonil/FSEvents
Cloning https://github.com/eonil/FSEvents
Resolving https://github.com/eonil/FSEvents at 0.1.6
/Users/david/software/taskwarrior-reminders/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:27:9: warning: result of call to 'execTaskwarrior(args:input:)' is unused
execTaskwarrior(args: ["sync"])
^ ~~~~~~~~~~~~~~~~
/Users/david/software/taskwarrior-reminders/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:37:9: warning: result of call to 'execTaskwarrior(args:input:)' is unused
execTaskwarrior(args: ["reminderID:" + (t.reminderID ?? "ERROR"), "-COMPLETED", "delete"])
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/david/software/taskwarrior-reminders/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:38:9: warning: result of call to 'execTaskwarrior(args:input:)' is unused
execTaskwarrior(args: ["sync"])
^ ~~~~~~~~~~~~~~~~
/Users/david/software/taskwarrior-reminders/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:72:9: warning: result of call to 'execTaskwarrior(args:input:)' is unused
execTaskwarrior(args: args, input: task)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/david/software/taskwarrior-reminders/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:73:9: warning: result of call to 'execTaskwarrior(args:input:)' is unused
execTaskwarrior(args: ["sync"])
^ ~~~~~~~~~~~~~~~~
/Users/david/software/taskwarrior-reminders/taskwarrior-reminders/Sources/Repositories/Taskwarrior.swift:114:9: warning: no calls to throwing functions occur within 'try' expression
try process.launch()
^
/Users/david/software/taskwarrior-reminders/taskwarrior-reminders/Sources/Hooks/main.swift:22:9: warning: initialization of immutable value 'encoder' was never used; consider replacing with assignment to '_' or removing it
let encoder = JSONEncoder()
~~~~^~~~~~~
_
/Users/david/software/taskwarrior-reminders/taskwarrior-reminders/Sources/Sync/main.swift:15:9: warning: initialization of immutable value 'fsobserver' was never used; consider replacing with assignment to '_' or removing it
let fsobserver = TaskwarriorObserver(reminders, syncSince: syncStart)
~~~~^~~~~~~~~~
_
[7/7] Linking task-reminders-sync
rm -f /usr/local/bin/task-reminders-sync
launchctl remove com.blampe.task-reminders-sync || true
cp .build/release/task-reminders-sync task-reminders-sync
ln -Fs /Users/david/software/taskwarrior-reminders/taskwarrior-reminders/task-reminders-sync /usr/local/bin/task-reminders-sync
cp com.blampe.task-reminders-sync.plist ~/Library/LaunchAgents/.
launchctl load -w ~/Library/LaunchAgents/com.blampe.task-reminders-sync.plist
[I] ~/s/t/taskwarrior-reminders origin/dev
Then running it, ran into the illegal instruction thing again. I was prompted for access a few times the first run (gave it access each time). Then tried running it again after I had granted access.
[I] ~/.task task-reminders-sync --all
2020-06-18 18:00:46.420 task-reminders-sync[70870:33452025] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain Code=134070 "An error occurred in the persistent store." UserInfo={Problem=request failed, insufficient permission}
CoreData: error: -addPersistentStoreWithType:NSXPCStore configuration:(null) URL:file:///Users/david/Library/Calendars/Calendar%20Cache options:{
NSInferMappingModelAutomaticallyOption = 1;
NSMigratePersistentStoresAutomaticallyOption = 1;
NSPersistentHistoryTrackingKey = {
NSPersistentHistoryTrackingEntitiesToExclude = (
ChangeRequest
);
};
agentOrDaemon = 1;
serviceName = "com.apple.CalendarAgent.database";
} ... returned error NSCocoaErrorDomain(134070) with userInfo dictionary {
Problem = "request failed, insufficient permission";
}
[task-reminders-sync] We're off to the races!
[Taskwarrior] export
[Taskwarrior ▶ Reminders] fc3cf844-8872-435b-a11c-324ccc4acb2e
fish: 'task-reminders-sync --all' terminated by signal SIGILL (Illegal instruction)
[I] ✘ ~/.task task-reminders-sync --all
[task-reminders-sync] We're off to the races!
[Taskwarrior] export
[Taskwarrior ▶ Reminders] fc3cf844-8872-435b-a11c-324ccc4acb2e
fish: 'task-reminders-sync --all' terminated by signal SIGILL (Illegal instruction)
[I] ✘ ~/.task