Closed MorganTwoZero closed 1 year ago
Thank you for reporting this issue.
As per my investigation, this was caused by the download checks while looking into some file chunks that had already been completed. The Session
initialization didn't check if the chunk file was completely downloaded and instead skipped to IsSetResponseSuccess
while also having false
as its value. Then while the initializer tried to call the throw
, instead it can't see the session.SessionResponse.StatusCode
as it's now a null
. In this part, the throw
gives another throw
to be sent as NullReferenceException
.
In this https://github.com/neon-nyan/Hi3Helper.Http/commit/483090a660bfc6a795c0495757be2e2a165fc475# commit, I've wrote another check before IsSetResponseSuccess
check to ensure if the size of the existing chunk is the same as an expected chunk, then it will skip it and go to the next Session
initialization.
This commit https://github.com/neon-nyan/Hi3Helper.Http/commit/60aae49caf543b3e2a3225e8b5bb350f0706f00e also fixes a bug when some of the chunks are getting skipped, then set the StartOffset
with the next value for the next Session
initialization.
At this moment, @BuIlDaLiBlE will update the submodule including those fixes and hope there will be another update release for BetterHi3Launcher to fix this issue.
I've released v1.4.20230113.0, please check if it works as expected now, if possible.
I wasn't able to replicate the problem in the new release, so i think it's safe to mark as solved.
Got an error after i tried to unpause downloading update of the game. Same after restarting launcher, restarting PC, with and without VPN, with Hoyoverse server and Hi3mirror.
To Reproduce Steps to reproduce the behavior:
Expected behavior Successfully resume downloading of the update.
Log