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

statusbox crash when flipping through modes #4

Closed
jamessanford opened this issue Sep 24, 2015 · 4 comments
Closed

statusbox crash when flipping through modes #4

jamessanford opened this issue Sep 24, 2015 · 4 comments

Comments

@jamessanford
Copy link
Owner

I was clicking through the various modes (best sector, optimal, ...) repeatedly and it crashed.

Looks like statusbox/format_time() expects milliseconds to only ever be an integer... There are likely more bugs in statusbox.

Exception: Thu Sep 24 05:24:46 2015
Traceback (most recent call last):
  File "apps/python/deltabar\deltabar.py", line 59, in acUpdate
    deltabar_app.acUpdate(delta_t)
  File "apps/python/deltabar\deltabar_lib\deltabar_lib.py", line 356, in acUpdate
    pos, self.lap.invalid_sectors[current_sector])
  File "apps/python/deltabar\deltabar_lib\statusbox.py", line 221, in update_frame
    self.data.textbox.set('i{}_2'.format(current_sector), format_time(current_sector_time - benchmark_sector_time, invalid=invalid, delta=True))
  File "apps/python/deltabar\deltabar_lib\statusbox.py", line 71, in format_time
    return "{}{}{}.{:03d}".format(star, sign, sec, thou)
ValueError: Unknown format code 'd' for object of type 'float'
@StoneSpb
Copy link
Contributor

Hi, James!

Thanks, will fix it :)

 James Sanford notifications@github.com:

I was clicking through the various modes (best sector, optimal, ...) repeatedly and it crashed.
Looks like statusbox/format_time() expects milliseconds to only ever be an integer... There are likely more bugs in statusbox.
Exception: Thu Sep 24 05:24:46 2015
Traceback (most recent call last):
File "apps/python/deltabar\deltabar.py", line 59, in acUpdate
deltabar_app.acUpdate(delta_t)
File "apps/python/deltabar\deltabar_lib\deltabar_lib.py", line 356, in acUpdate
pos, self.lap.invalid_sectors[current_sector])
File "apps/python/deltabar\deltabar_lib\statusbox.py", line 221, in update_frame
self.data.textbox.set('i{}_2'.format(current_sector), format_time(current_sector_time - benchmark_sector_time, invalid=invalid, delta=True))
File "apps/python/deltabar\deltabar_lib\statusbox.py", line 71, in format_time
return "{}{}{}.{:03d}".format(star, sign, sec, thou)
ValueError: Unknown format code 'd' for object of type 'float'

Reply to this email directly or view it on GitHub .

@jamessanford
Copy link
Owner Author

Oh, I just fixed it :)

@StoneSpb
Copy link
Contributor

Mmm!
Thank you! :)

Alexander Denisov

James Sanford notifications@github.com:

Oh, I just fixed it :)

Reply to this email directly or view it on GitHub .

@jamessanford
Copy link
Owner Author

"fixed" in 469c7e9

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

No branches or pull requests

2 participants