Mysticial / y-cruncher

Bug-Tracking and open-sourced parts of y-cruncher.
189 stars 16 forks source link

"Write - GetOverlappedResult(): Not Ready" error while writing digits with v0.8.3.9530 + Windows 7 #40

Closed jedi95 closed 9 months ago

jedi95 commented 10 months ago

y-cruncher 0.8.3.9530 repeatedly prints the error "Write - GetOverlappedResult(): Not Ready" to the console when it attempts to write the digits to disk using Windows 7. The previous build (0.8.2.9524) works correctly on the same machine.

0.8.3.9530 does work correctly using the same PC with Windows 10 Pro 22H2: Working win10

Steps to reproduce:

  1. Launch y-cruncher
  2. Benchmark Pi 25M multi threaded
  3. The error "Write - GetOverlappedResult(): Not Ready" will be printed to the console repeatedly when y-cruncher attempts to write the computed digits to disk.

System information: CPU: AMD Athlon 5350 RAM: 2x4GB DDR3 1600 Motherboard: Asus AM1M-A OS: Windows 7 Ultimate 64-bit SP1

Things I tried that did not resolve the issue:

Screenshot of the error: y-cruncher bug

Mysticial commented 10 months ago

Thanks for reporting! Had to dust off my Win7 machine to test this and confirmed the issue.

This won't be an immediate fix. This Windows overlapped API is an absolute tragedy and is nearly impossible to use correctly. I have a fix that seems to work, but will need some extensive testing to make sure it doesn't break anything else.

Mysticial commented 10 months ago

https://github.com/Mysticial/y-cruncher/releases/tag/v0.8.3.9531

jedi95 commented 9 months ago

Builds 9531 and 9532 both work correctly now. Thanks!