locked
Strange Exceptions from Workflow Runtime RRS feed

  • Question

  • I have a custom windows service running several WorkflowHost's, and about 79% of the time everything is running great.  However, we are experiencing a bunch of strange errors intermittently.  We just got this error:

    System.Runtime.CallbackException: Async Callback threw an exception. ---> System.ArgumentNullException: Value cannot be null.
    Parameter name: key
       at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
       at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
       at System.Activities.Runtime.ActivityInstanceMap.RemoveEntry(IActivityReference reference)
       at System.Activities.Runtime.CompletionCallbackWrapper.CompletionWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.OnExecuteWorkItem(WorkItem workItem)
       at System.Activities.Runtime.Scheduler.Callbacks.ExecuteWorkItem(WorkItem workItem)
       at System.Activities.Runtime.Scheduler.OnScheduledWork(Object state)
       at System.Runtime.Fx.SendOrPostThunk.UnhandledExceptionFrame(Object state)
       at System.Activities.Runtime.Scheduler.InternalResume(RequestedAction action)
       at System.Activities.Runtime.ActivityExecutor.FinishWorkItemAfterTracking(WorkItem workItem)
       at System.Activities.Runtime.WorkItem.OnTrackingComplete(IAsyncResult result)
       at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
       at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
       --- End of inner exception stack trace ---
       at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
       at System.Runtime.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)
       at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
       at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)
       at System.Activities.Tracking.TrackingParticipant.TrackAsyncResult.TrackCore()
       at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
       at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
       at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

    What could be causing this?  It looks like a threading bug.
    Friday, December 4, 2009 9:32 PM

Answers

  • Could you give more information about your app? Would it be difficult to come up with a repro that you could send us? We have been fixing several stress bugs after the release of .NET 4 Beta 2, perhaps this issue will be solved with the final release of .NET 4, but if you could come up with a simple repro of this issue we could check that out for you.

    Sunday, December 6, 2009 8:20 PM

All replies

  • Could you give more information about your app? Would it be difficult to come up with a repro that you could send us? We have been fixing several stress bugs after the release of .NET 4 Beta 2, perhaps this issue will be solved with the final release of .NET 4, but if you could come up with a simple repro of this issue we could check that out for you.

    Sunday, December 6, 2009 8:20 PM
  • Let us know if you are still experiencing this issue.
    Wednesday, December 9, 2009 11:47 PM