Skip to content

Doesn't work from inside tmux #4

Closed

Description

@knpwrs

Using tmux 2.1. In a plain zsh shell I can use the reminders command. Inside a tmux shell (running zsh) a big ol' stacktrace is printed.

Activity

  1. keith commented on Aug 29, 2016

    @keith
    Owner

    Can you paste that here?

  2. keith commented on Aug 29, 2016

    @keith
    Owner

    But I think the problem is needing to use reattach-to-user-namespace. See this issue for details :(

  3. knpwrs commented on Aug 29, 2016

    @knpwrs
    Author

    Note: Under Yosemite (and later) pasteboard access seems to work fine without the program from this repository.

    pbcopy and pbpaste actually work fine for me in El Capitan, I was previously aware of that issue and was surprised to see them work without modifications.

  4. knpwrs commented on Aug 29, 2016

    @knpwrs
    Author

    Interesting thing happened when I tried to pipe the strack trace to pbcopy. I got the following on my clipboard:

    You need to grant reminders access
    
  5. keith commented on Aug 29, 2016

    @keith
    Owner

    pbcopy and pbpaste actually work fine for me in El Capitan, I was previously aware of that issue and was surprised to see them work without modifications.

    Right, but as you can see in my issue, it seems like some things are still affected by this.

    "You need to grant reminders access" is the warning from reminders-cli, I would just copy and paste the stack trace directly here.

  6. knpwrs commented on Aug 30, 2016

    @knpwrs
    Author
    2016-08-29 20:20:57.666 reminders[36442:3950334] [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.CalendarAgent.proxy was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (
        0   CalendarAgentLink                   0x00007fff8d285ab1 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47
        1   CalendarPersistence                 0x00007fff98bb9910 +[CalPersistence _startCoreDataXPCServer:] + 198
        2   CalendarPersistence                 0x00007fff98bb8d66 +[CalPersistence setupCalendarPersistence:andCreateDefaultCalendarsIfNeeded:withSetupGroup:] + 207
        3   EventKit                            0x00007fff9c723913 -[EKCalendarStoreBackingStore _updatePersistenceAvailability] + 85
        4   EventKit                            0x00007fff9c7cdcf2 -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:orWithExistingStore:] + 799
        5   EventKit                            0x00007fff9c7cd99c -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 86
        6   EventKit                            0x00007fff9c7c5c8f -[EKEventStore _newBackingStoreForType:options:sourceFilters:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 121
        7   EventKit                            0x00007fff9c722dc0 -[EKEventStore _newBackingStoreForType:options:sourceFilters:asyncWithCompletion:] + 81
        8   EventKit                            0x00007fff9c722c64 -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:orWithExistingStore:andBackingStore:] + 393
        9   EventKit                            0x00007fff9c722abd -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:] + 86
        10  reminders                           0x0000000107bc95d8 globalinit_33_8CC2B3380A07EFD4E877A86A0AD32E0B_func0 + 40
        11  libdispatch.dylib                   0x00007fff9c36b40b _dispatch_client_callout + 8
        12  libdispatch.dylib                   0x00007fff9c36b303 dispatch_once_f + 67
        13  reminders                           0x0000000107bc92c8 main + 152
        14  libdyld.dylib                       0x00007fff9a4165ad start + 1
    )]
    2016-08-29 20:20:57.666 reminders[36442:3950334] [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying...]
    2016-08-29 20:20:57.667 reminders[36442:3950334] [com.apple.calendar.store.log] [Retry Attempt 1]
    2016-08-29 20:20:57.668 reminders[36442:3950330] [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.CalendarAgent.proxy was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (
        0   CalendarAgentLink                   0x00007fff8d285ab1 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47
        1   CalendarPersistence                 0x00007fff98bb94ad -[CALIdentityManager resetCache:] + 242
        2   CalendarPersistence                 0x00007fff98bb937a -[CALIdentityManager init] + 146
        3   CalendarPersistence                 0x00007fff98bb92da __36+[CALIdentityManager defaultManager]_block_invoke + 41
        4   libdispatch.dylib                   0x00007fff9c36b40b _dispatch_client_callout + 8
        5   libdispatch.dylib                   0x00007fff9c36b303 dispatch_once_f + 67
        6   CalendarPersistence                 0x00007fff98bb92af +[CALIdentityManager defaultManager] + 42
        7   CalendarPersistence                 0x00007fff98bb9263 -[CalVirtualSource ownerAddresses] + 37
        8   EventKit                            0x00007fff9c723f27 -[EKFrozenCalendarSource initWithObject:createPartialObject:preFrozenRelationshipObjects:] + 476
        9   EventKit                            0x00007fff9c723d21 +[EKFrozenObject frozenObjectForObject:createPartialObject:preFrozenRelationshipObjects:forceUpdate:] + 176
        10  EventKit                            0x00007fff9c723c4d +[EKFrozenObject frozenObjectForObject:createPartialObject:preFrozenRelationshipObjects:] + 60
        11  EventKit                            0x00007fff9c7df398 -[EKObject initWithObject:createPartialBackingObject:keepBackingObject:preFrozenRelationshipObjects:additionalFrozenProperties:] + 234
        12  EventKit                            0x00007fff9c7e4f9b -[EKSource initWithObject:createPartialBackingObject:keepBackingObject:preFrozenRelationshipObjects:additionalFrozenProperties:] + 110
        13  EventKit                            0x00007fff9c723bda -[EKObject initWithObject:createPartialBackingObject:keepBackingObject:preFrozenRelationshipObjects:] + 74
        14  EventKit                            0x00007fff9c723b68 -[EKObject initWithObject:keepBackingObject:preFrozenRelationshipObjects:] + 104
        15  EventKit                            0x00007fff9c723ade -[EKObject initWithObject:] + 84
        16  EventKit                            0x00007fff9c723a6e +[EKObject objectWithObject:] + 65
        17  EventKit                            0x00007fff9c7239e5 +[EKSource sourceWithCalendarSource:eventStore:] + 73
        18  EventKit                            0x00007fff9c723976 +[EKSource localSource] + 70
        19  EventKit                            0x00007fff9c7236a9 __62-[EKCalendarStoreBackingStore _doBackgroundInitializationWork]_block_invoke + 113
        20  libdispatch.dylib                   0x00007fff9c37693d _dispatch_call_block_and_release + 12
        21  libdispatch.dylib                   0x00007fff9c36b40b _dispatch_client_callout + 8
        22  libdispatch.dylib                   0x00007fff9c36f29b _dispatch_root_queue_drain + 1890
        23  libdispatch.dylib                   0x00007fff9c36eb00 _dispatch_worker_thread3 + 91
        24  libsystem_pthread.dylib             0x00007fff9a9204de _pthread_wqthread + 1129
        25  libsystem_pthread.dylib             0x00007fff9a91e341 start_wqthread + 13
    )]
    2016-08-29 20:20:57.668 reminders[36442:3950330] [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.CalendarAgent.proxy was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (
        0   CalendarAgentLink                   0x00007fff8d285ab1 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47
        1   CalendarPersistence                 0x00007fff98bb9910 +[CalPersistence _startCoreDataXPCServer:] + 198
        2   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        3   CalendarPersistence                 0x00007fff98bb8d66 +[CalPersistence setupCalendarPersistence:andCreateDefaultCalendarsIfNeeded:withSetupGroup:] + 207
        4   EventKit                            0x00007fff9c723913 -[EKCalendarStoreBackingStore _updatePersistenceAvailability] + 85
        5   EventKit                            0x00007fff9c7cdcf2 -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:orWithExistingStore:] + 799
        6   EventKit                            0x00007fff9c7cd99c -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 86
        7   EventKit                            0x00007fff9c7c5c8f -[EKEventStore _newBackingStoreForType:options:sourceFilters:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 121
        8   EventKit                            0x00007fff9c722dc0 -[EKEventStore _newBackingStoreForType:options:sourceFilters:asyncWithCompletion:] + 81
        9   EventKit                            0x00007fff9c722c64 -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:orWithExistingStore:andBackingStore:] + 393
        10  EventKit                            0x00007fff9c722abd -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:] + 86
        11  reminders                           0x0000000107bc95d8 globalinit_33_8CC2B3380A07EFD4E877A86A0AD32E0B_func0 + 40
        12  libdispatch.dylib                   0x00007fff9c36b40b _dispatch_client_callout + 8
        13  libdispatch.dylib                   0x00007fff9c36b303 dispatch_once_f + 67
        14  reminders                           0x0000000107bc92c8 main + 152
        15  libdyld.dylib                       0x00007fff9a4165ad start + 1
    )]
    2016-08-29 20:20:57.668 reminders[36442:3950330] [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying...]
    2016-08-29 20:20:57.668 reminders[36442:3950330] [com.apple.calendar.store.log] [Retry Attempt 2]
    2016-08-29 20:20:57.724 reminders[36442:3950334] [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.CalendarAgent.proxy was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (
        0   CalendarAgentLink                   0x00007fff8d285ab1 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47
        1   CalendarPersistence                 0x00007fff98bb9910 +[CalPersistence _startCoreDataXPCServer:] + 198
        2   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        3   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        4   CalendarPersistence                 0x00007fff98bb8d66 +[CalPersistence setupCalendarPersistence:andCreateDefaultCalendarsIfNeeded:withSetupGroup:] + 207
        5   EventKit                            0x00007fff9c723913 -[EKCalendarStoreBackingStore _updatePersistenceAvailability] + 85
        6   EventKit                            0x00007fff9c7cdcf2 -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:orWithExistingStore:] + 799
        7   EventKit                            0x00007fff9c7cd99c -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 86
        8   EventKit                            0x00007fff9c7c5c8f -[EKEventStore _newBackingStoreForType:options:sourceFilters:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 121
        9   EventKit                            0x00007fff9c722dc0 -[EKEventStore _newBackingStoreForType:options:sourceFilters:asyncWithCompletion:] + 81
        10  EventKit                            0x00007fff9c722c64 -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:orWithExistingStore:andBackingStore:] + 393
        11  EventKit                            0x00007fff9c722abd -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:] + 86
        12  reminders                           0x0000000107bc95d8 globalinit_33_8CC2B3380A07EFD4E877A86A0AD32E0B_func0 + 40
        13  libdispatch.dylib                   0x00007fff9c36b40b _dispatch_client_callout + 8
        14  libdispatch.dylib                   0x00007fff9c36b303 dispatch_once_f + 67
        15  reminders                           0x0000000107bc92c8 main + 152
        16  libdyld.dylib                       0x00007fff9a4165ad start + 1
    )]
    2016-08-29 20:20:57.724 reminders[36442:3950334] [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying...]
    2016-08-29 20:20:57.724 reminders[36442:3950334] [com.apple.calendar.store.log] [Retried Attempt 3]
    2016-08-29 20:20:57.772 reminders[36442:3950334] [com.apple.calendar.store.log] [Couldn't update cached me card from CalendarAgent]
    2016-08-29 20:20:58.226 reminders[36442:3950334] [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.CalendarAgent.proxy was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (
        0   CalendarAgentLink                   0x00007fff8d285ab1 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47
        1   CalendarPersistence                 0x00007fff98bb9910 +[CalPersistence _startCoreDataXPCServer:] + 198
        2   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        3   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        4   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        5   CalendarPersistence                 0x00007fff98bb8d66 +[CalPersistence setupCalendarPersistence:andCreateDefaultCalendarsIfNeeded:withSetupGroup:] + 207
        6   EventKit                            0x00007fff9c723913 -[EKCalendarStoreBackingStore _updatePersistenceAvailability] + 85
        7   EventKit                            0x00007fff9c7cdcf2 -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:orWithExistingStore:] + 799
        8   EventKit                            0x00007fff9c7cd99c -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 86
        9   EventKit                            0x00007fff9c7c5c8f -[EKEventStore _newBackingStoreForType:options:sourceFilters:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 121
        10  EventKit                            0x00007fff9c722dc0 -[EKEventStore _newBackingStoreForType:options:sourceFilters:asyncWithCompletion:] + 81
        11  EventKit                            0x00007fff9c722c64 -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:orWithExistingStore:andBackingStore:] + 393
        12  EventKit                            0x00007fff9c722abd -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:] + 86
        13  reminders                           0x0000000107bc95d8 globalinit_33_8CC2B3380A07EFD4E877A86A0AD32E0B_func0 + 40
        14  libdispatch.dylib                   0x00007fff9c36b40b _dispatch_client_callout + 8
        15  libdispatch.dylib                   0x00007fff9c36b303 dispatch_once_f + 67
        16  reminders                           0x0000000107bc92c8 main + 152
        17  libdyld.dylib                       0x00007fff9a4165ad start + 1
    )]
    2016-08-29 20:20:58.226 reminders[36442:3950334] [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying...]
    2016-08-29 20:20:58.227 reminders[36442:3950334] [com.apple.calendar.store.log] [Retried Attempt 4]
    2016-08-29 20:20:59.733 reminders[36442:3950335] [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.CalendarAgent.proxy was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (
        0   CalendarAgentLink                   0x00007fff8d285ab1 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47
        1   CalendarPersistence                 0x00007fff98bb9910 +[CalPersistence _startCoreDataXPCServer:] + 198
        2   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        3   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        4   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        5   CalendarPersistence                 0x00007fff98bb9da3 +[CalPersistence _startCoreDataXPCServer:] + 1369
        6   CalendarPersistence                 0x00007fff98bb8d66 +[CalPersistence setupCalendarPersistence:andCreateDefaultCalendarsIfNeeded:withSetupGroup:] + 207
        7   EventKit                            0x00007fff9c723913 -[EKCalendarStoreBackingStore _updatePersistenceAvailability] + 85
        8   EventKit                            0x00007fff9c7cdcf2 -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:orWithExistingStore:] + 799
        9   EventKit                            0x00007fff9c7cd99c -[EKCalendarStoreBackingStore initWithSourceFilters:options:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 86
        10  EventKit                            0x00007fff9c7c5c8f -[EKEventStore _newBackingStoreForType:options:sourceFilters:accessRequestedForEvents:accessRequestedForReminders:asyncWithCompletion:] + 121
        11  EventKit                            0x00007fff9c722dc0 -[EKEventStore _newBackingStoreForType:options:sourceFilters:asyncWithCompletion:] + 81
        12  EventKit                            0x00007fff9c722c64 -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:orWithExistingStore:andBackingStore:] + 393
        13  EventKit                            0x00007fff9c722abd -[EKEventStore initWithStoreType:options:sourceFilters:asyncWithCompletion:] + 86
        14  reminders                           0x0000000107bc95d8 globalinit_33_8CC2B3380A07EFD4E877A86A0AD32E0B_func0 + 40
        15  libdispatch.dylib                   0x00007fff9c36b40b _dispatch_client_callout + 8
        16  libdispatch.dylib                   0x00007fff9c36b303 dispatch_once_f + 67
        17  reminders                           0x0000000107bc92c8 main + 152
        18  libdyld.dylib                       0x00007fff9a4165ad start + 1
    )]
    2016-08-29 20:20:59.734 reminders[36442:3950335] [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying...]
    2016-08-29 20:20:59.734 reminders[36442:3950335] [com.apple.calendar.store.log] [Retried too many times, giving up.]
    2016-08-29 20:20:59.734 reminders[36442:3950335] [com.apple.calendar.store.log] [Couldn't start the XPC store server. [Error Domain=CalPersistenceCreationDomain Code=3 "Could not create XPC connection to the CalendarAgent, connection interrupted or invalidated more than 5 times" UserInfo={NSLocalizedDescription=Could not create XPC connection to the CalendarAgent, connection interrupted or invalidated more than 5 times}]]
    
    
  7. keith commented on Aug 30, 2016

    @keith
    Owner

    Can you try this with reattach to user namespace and see if it fixes it?

  8. knpwrs commented on Sep 4, 2016

    @knpwrs
    Author

    Yep, that fixes it. Strange that the pasteboard commands started working with nothing extra but other stuff didn't. Oh well.

  9. knpwrs commented on Sep 4, 2016

    @knpwrs
    Author
  10. keith commented on Sep 4, 2016

    @keith
    Owner

    Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions