[GH-ISSUE #132] NbfcService service error after waking from Sleep Mode #121

Closed
opened 2026-02-26 00:31:47 +03:00 by kerem · 6 comments
Owner

Originally created by @oldbk on GitHub (Nov 1, 2016).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/132

Asus n550jv
Hi, i've got next errors in mmc on windows 8.1

Application: NbfcService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException

Stack:
at System.Array.Copy(System.Array, Int32, System.Array, Int32, Int32, Boolean)
at System.Collections.Generic.Queue1[[System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetCapacity(Int32) at System.Collections.Generic.Queue1.Enqueue(Double)
at StagWare.FanControl.ArithmeticMeanTemperatureFilter.FilterTemperature(Double)
at StagWare.FanControl.FanControl.TimerCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()

Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Collections.Generic.Queue1.SetCapacity(Int32 capacity) at System.Collections.Generic.Queue1.Enqueue(T item)
at StagWare.FanControl.ArithmeticMeanTemperatureFilter.FilterTemperature(Double temperature)
at StagWare.FanControl.FanControl.TimerCallback(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()

Failed in handling the PowerEvent. The error that occurred was: System.TimeoutException: EC initialization timed out.
at StagWare.FanControl.FanControl.InitializeRegisterWriteConfigurations()
at NbfcService.NoteBookFanControlService.OnPowerEvent(PowerBroadcastStatus powerStatus)
at System.ServiceProcess.ServiceBase.DeferredPowerEvent(Int32 eventType, IntPtr eventData).

2016-11-02_014356

Originally created by @oldbk on GitHub (Nov 1, 2016). Original GitHub issue: https://github.com/hirschmann/nbfc/issues/132 **Asus n550jv** Hi, i've got next errors in mmc on windows 8.1 **Application: NbfcService.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentException** Stack: at System.Array.Copy(System.Array, Int32, System.Array, Int32, Int32, Boolean) at System.Collections.Generic.Queue`1[[System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SetCapacity(Int32) at System.Collections.Generic.Queue`1[[System.Double, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Enqueue(Double) at StagWare.FanControl.ArithmeticMeanTemperatureFilter.FilterTemperature(Double) at StagWare.FanControl.FanControl.TimerCallback(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.TimerQueueTimer.CallCallback() at System.Threading.TimerQueueTimer.Fire() at System.Threading.TimerQueue.FireNextTimers() **Source array was not long enough. Check srcIndex and length, and the array's lower bounds.** at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) at System.Collections.Generic.Queue`1.SetCapacity(Int32 capacity) at System.Collections.Generic.Queue`1.Enqueue(T item) at StagWare.FanControl.ArithmeticMeanTemperatureFilter.FilterTemperature(Double temperature) at StagWare.FanControl.FanControl.TimerCallback(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() **Failed in handling the PowerEvent. The error that occurred was: System.TimeoutException: EC initialization timed out.** at StagWare.FanControl.FanControl.InitializeRegisterWriteConfigurations() at NbfcService.NoteBookFanControlService.OnPowerEvent(PowerBroadcastStatus powerStatus) at System.ServiceProcess.ServiceBase.DeferredPowerEvent(Int32 eventType, IntPtr eventData). ![2016-11-02_014356](https://cloud.githubusercontent.com/assets/6886009/19910425/e9f9b36a-a09d-11e6-8a93-d37be4204d4b.png)
kerem closed this issue 2026-02-26 00:31:47 +03:00
Author
Owner

@hirschmann commented on GitHub (Nov 2, 2016):

Seems like NBFC fails to access the hardware after standby.
Does this happen every time the system wakes up or infrequently?

<!-- gh-comment-id:257820478 --> @hirschmann commented on GitHub (Nov 2, 2016): Seems like NBFC fails to access the hardware after standby. Does this happen every time the system wakes up or infrequently?
Author
Owner

@oldbk commented on GitHub (Nov 17, 2016):

sure infrequently

<!-- gh-comment-id:261396485 --> @oldbk commented on GitHub (Nov 17, 2016): sure infrequently
Author
Owner

@hirschmann commented on GitHub (Nov 20, 2016):

I'll look into it, but I can't reproduce this error, so I'm not sure if I can do anything about it.

When this error occurs, have you tried to stop the NBFC service and restart it?

<!-- gh-comment-id:261811019 --> @hirschmann commented on GitHub (Nov 20, 2016): I'll look into it, but I can't reproduce this error, so I'm not sure if I can do anything about it. When this error occurs, have you tried to stop the NBFC service and restart it?
Author
Owner

@oldbk commented on GitHub (Nov 21, 2016):

yes, after restart NBFC service it pretty work. But this strange service "stagnation" after sleep, for what it can depend, approximately?

<!-- gh-comment-id:262017957 --> @oldbk commented on GitHub (Nov 21, 2016): yes, after restart NBFC service it pretty work. But this strange service "stagnation" after sleep, for what it can depend, approximately?
Author
Owner

@hirschmann commented on GitHub (Nov 22, 2016):

When NBFC can't access the EC, it just stops the service. I guess that's what you describe as stagnation.
Please give the latest beta a try. It should handle standby and hibernate much better.

<!-- gh-comment-id:262375330 --> @hirschmann commented on GitHub (Nov 22, 2016): When NBFC can't access the EC, it just stops the service. I guess that's what you describe as stagnation. Please give the latest beta a try. It should handle standby and hibernate much better.
Author
Owner

@oldbk commented on GitHub (Nov 23, 2016):

Greatful thx you man. It`s seems stable than previous version ;)

<!-- gh-comment-id:262412847 --> @oldbk commented on GitHub (Nov 23, 2016): Greatful thx you man. It`s seems stable than previous version ;)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nbfc-hirschmann#121
No description provided.