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

Crash when calulating MD5 for WasmModule when file can't be accessed #1738

Open
neilenns opened this issue Mar 3, 2024 · 0 comments
Open
Labels
bug Something isn't working in a officially released version

Comments

@neilenns
Copy link
Contributor

neilenns commented Mar 3, 2024

Describe the bug
Mobiflight crashes when calculating the MD5 in WasmModuleUpdater if the file can't be accessed for some reason.

System.IO.IOException: Le fichier APPX n'est pas accessible, car il n'est pas chiffré comme prévu.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at MobiFlight.SimConnectMSFS.WasmModuleUpdater.CalculateMD5(String filename)
   at MobiFlight.SimConnectMSFS.WasmModuleUpdater.WasmModulesAreDifferent()

Reported by a user in Discord after they reinstalled MSFS and Mobiflight.

They solved the problem by uninstalling MSFS and rebooting, then installing again.

Not much we can do here other than a try/catch and log an error.

@neilenns neilenns added the bug Something isn't working in a officially released version label Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in a officially released version
Projects
None yet
Development

No branches or pull requests

1 participant