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

ZeroDivisionError in sensors_librehardwaremonitor.py when page file is disabled on Windows 10 #390

Closed
Sanichka opened this issue Nov 11, 2023 · 1 comment · Fixed by #391
Labels
bug Something isn't working

Comments

@Sanichka
Copy link

Describe the bug
When page file is disabled in Windows 10 Memory_Stats thread get's exception due to division by zero

To Reproduce
Steps to reproduce the behavior:

  1. Go to Windows 10 Settings -> System -> About -> Advanced system settings -> Advanced tab -> Perfomance -> Advanced -> Virtual Memory Change -> Set no paging file
    image
  2. Configure USB screen(in my case USBpcmonitor 5) choose theme 5inchTheme2
  3. Run in console: python main.py
  4. Get exception in console
    image

Expected behavior
I've expected that there will be no errors in console.

Screenshots / photos of the Turing screen
Screen is working and showing and refreshing info, but i'm not sure where is swap data is used.
image

Environment:

  • Smart screen model UsbPCMonitor 5
  • Revision of this project release 3.3.4
  • OS with version Windows 10
  • Python version Python 3.9.13
  • Hardware AMD Ryzen 9 5900X, Nvidia 1070Ti
@Sanichka Sanichka added the bug Something isn't working label Nov 11, 2023
@mathoudebine
Copy link
Owner

Thanks for reporting this issue. I will fix it in the next version.

The crash happens in the memory thread, this is why you have no memory information displayed on screen:
image
But the other sensors (CPU, disk) and the program will continue to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants