MantisBT - NetSurf
View Issue Details
0002791NetSurfWin32-specificpublic2020-08-26 21:372020-10-04 10:56
ReporterFour Oh Four 
Assigned ToDaniel Silverstone 
PrioritynormalSeveritymajorReproducibilityhave not tried
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0002791: Multiple download issues with large moddb file
DescriptionHaving tried to download in NetSurf, I experience the following:

- download window reports invalid size and percentage.
- download window does not update.
- text clips(default DPI of 96 is used).
- CPU usage of NetSurf locks to 50% of one core.
- ???? the download continues, but seems suspiciously fast for this site. I suspect that NetSurf writes faster(garbage) than speed of download for this file. Not entirely sure about this one.
- the download eventually stops(file no longer grows on disk), but it has overshot 3,793,952,970 bytes(instead, file is 4,179,295,893 bytes).
- the file is indeed garbage, as 7z cannot open it.
- even after download stops, down-window is same. CPU usage is also same, will linger until NetSurf process closes.

- NetSurf build 5197 nightly
- WinXP x86
TagsNo tags attached.
Attached Filespng CoC_superdownload.png (25,791) 2020-08-26 21:37

Daniel Silverstone   
2020-10-04 10:56   
The file is greater than `INT_MAX` bytes, and I imagine we track size in int (or perhaps in `ssize_t` which on 32-bit platforms would be 32bit also).

Really we should track file downloads using a `uint64_t` but that'd be a large change.

Issue History
2020-08-26 21:37Four Oh FourNew Issue
2020-08-26 21:37Four Oh FourFile Added: CoC_superdownload.png
2020-10-04 10:56Daniel SilverstoneNote Added: 0002296
2020-10-04 10:56Daniel SilverstoneAssigned To => Daniel Silverstone
2020-10-04 10:56Daniel SilverstoneStatusnew => acknowledged