Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue with _stepCount Not Resetting, Causing Infinite Separator Exceptions #1535

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

airtaxi
Copy link

@airtaxi airtaxi commented Jun 25, 2024

Description:

Problem

In the WinUI application, there was an issue where the _stepCount variable was not being reset, despite the UI not visibly exceeding 10,000 steps. Over time, _stepCount accumulated due to continuous use, which eventually triggered ThrowInfiniteSeparators() method calls.

Solution

To address this issue, I implemented a change where _stepCount is reset to 0 before each logic check that involves this variable.

Verification

Post-implementation, the change was tested by monitoring the application for extended periods. The fix proved effective, as the application no longer threw exceptions after approximately 10 minutes of uptime while showing graphs, a common occurrence prior to this update.

Related Issue

This fix also appears to resolve a similar issue reported in Issue #1076, further indicating the effectiveness of this solution.

Fixed an issue where _stepCount was not being reset, causing ThrowInfiniteSeparators() to be triggered as _stepCount accumulated over time, even though the actual step count did not exceed 10,000. (beto-rodriguez#1076 (comment))
Now, _stepCount is reset to 0 before each relevant logic check. This resolved the exception that occurred about 10 minutes after the chart was displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant