Strange exception on update
Posted: Sun Jan 29, 2017 8:36 pm
Not sure what could be causing this...I have a theory I am passing in a dt that is too small because everything worked fine up until I changed how I calculated my deltatime. Just wanted to be sure to avoid it in the future...
EDIT: Whoops forgot to include the actual exception thrown:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in BEPUutilities.dll
Additional information: Specified argument was out of the range of valid values.
Code: Select all
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at BEPUphysics.NarrowPhaseSystems.NarrowPhase.OnCreatePair(NarrowPhasePair pair)
at BEPUphysics.NarrowPhaseSystems.NarrowPhase.AddNewNarrowPhaseObjects()
at BEPUphysics.NarrowPhaseSystems.NarrowPhase.UpdateSingleThreaded()
at BEPUphysics.MultithreadedProcessingStage.Update()
at BEPUphysics.Space.DoTimeStep()
at BEPUphysics.Space.Update(Single dt)
at DeiesServerData.Managers.MapManager.Update() in [CENSORED]
at DeiesServerData.Managers.MapManager.MapLoop(Object state) in [CENSORED]
at System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()
at System.Threading.TimerQueue.AppDomainTimerCallback()
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in BEPUutilities.dll
Additional information: Specified argument was out of the range of valid values.