mirror of
https://github.com/SabreTools/MPF.git
synced 2026-04-05 22:01:16 +00:00
[Problem] Stack trace when scanning for protections on some discs #274
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kreeblah on GitHub (Mar 19, 2021).
Originally assigned to: @mnadareski on GitHub.
Before You Submit
If all of those fail, then continue...
Version
What version are you using?
bfbae5cf5cBuild
What runtime version are you using?
Describe the issue
When scanning the Descent 3 for Macintosh CD, the process fails with a stack trace in the output. This is the only disc I can repro on so far.
To Reproduce
Steps to reproduce the behavior:
Scan for protectionExpected behavior
I'd expect it to finish cleanly.
Additional context
Sample output:
@mnadareski commented on GitHub (Mar 19, 2021):
The actual error you're getting,
Path could not be scanned! System.IO.IOException: The disk structure is corrupted and unreadable.is thrown by the standard library code. It means it can't read the disc itself for some reason. I'm not sure right now how much work I can reasonably do to get around that for scanning. I'll see if I can get that as a verbose log only.@Kreeblah commented on GitHub (Mar 19, 2021):
Ah, yeah, reporting it at a lower level instead would make sense.
@mnadareski commented on GitHub (Mar 20, 2021):
I can't really make it so that the error doesn't happen, but this makes MPF far smarter about dealing with any resulting exceptions.