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
"IOException: The device is not ready" when loading .cue
#3532
Comments
The nature of the error would imply this is not at all related to the actual game per se, as it ends up erroring in internal OS code when trying to resolve the .cue files. Could you post the exact .cue file? Also, where exactly did you place this .cue file? |
I placed the .cue file in a directory where I place all the games that I want to play in the future and the content of the .cue file is:
|
Is that directory |
Remove the |
Why BizHawk doesn't show me a clear error message box? |
It does. Drive F: is not ready, and you'd get the same if you tried to access it in Windows Explorer. |
BizHawk is not a human, it doesn't understand that you're "asking" to access drive F because you got your dump from some shady site and didn't put it in there yourself (if you otherwise dumped it yourself like you are "supposed" to this would not be an issue, even then how people find these weird fubared dumps is beyond me) and doesn't understand the exact solution. (EDIT: ignore issue reopen, finger misclicked) |
I agree that "The device is not ready" is not a helpful message for the end-user. We should encapsulate directory enumeration and throw "file not found" in that case. (And then handle missing files in |
.cue
I corrected the .cue file according to your suggestion and now BizHawk plays the game fine. Looks like that I made a mistake while dumping this game. I am not so good at dumping my games and I don't like that I have to repeat this process for every game that I want to play on my PC but not that I have another choice. With a proper error message box I wouldn't open this issue at all in first place. Except not helpful errors BizHawk is indeed an excellent software to play and cheat my retro games on my PC once BizHawk can play them. |
fwiw the core does usually throw a |
This puts me in blackout to see a so detailed error message box if "directory not found" is the only problem here. Especially C# like exceptions which are irrelevant for users that are not .NET developers. When I see such errors this drives me to open another issue here to paste the detailed error here. I think that this must still be improved. If "directory not found" is the only problem that prevents the user from playing his or her game then the error message box should be three words only: "Directory not found" and that's all though this is advised to specify the directory that BizHawk attempted to open and failed because BizHawk didn't find it after these three words in the second line. This is my opinion. Sounds logical isn't it? |
I disagree strongly. That is the canonical message that MS Windows gives end users if, for instance, you try to access a floppy drive with no disk in it. It's distinct from path or file not found; more like "Drive not found" but a bit more complex because the drive might exist but just isn't ready. Boiling down all IOExceptions to just a generic "not found" hurts user debugging. |
Stacktraces are immensely useful for bug reports. While here there isn't an actual bug per se (at most, not useful super useful error messages), it was still helpful to see the stacktrace as we can use that to immediately track down the potentially problematic code. |
It would be nice to have the full pathname of the faulting file here. |
I am a windows user for many years and with windows applications and programs that I was using over the years every time that a file or folder or directory or path was not found I saw an error message box that explicitly state it. I don't remember that I was seeing the words "device" or "ready" at all. Besides error message should not be so big, so long and so detailed just because a file was not found. In such cases the error message should be at most 2 lines. |
As google shows, it's quite common even now that floppies are dead due to removable USB media: https://letmegooglethat.com/?q=device+not+ready |
🤏 This close to clicking the lock button. Malformed |
I am not dealing with floppies at all. |
It's hard for me to take this as anything other than you deliberately ignoring everything I've said and linked to. As is shown in many of the results there, the problem happens for floppies, CDs, usb sticks, network drives... all sorts of things. And I even said "removable USB media" in my comment, referencing the stick drives. At the end of the day, we've had these cue error messages from nonsensical pirated cue files for years, yet users get along fine. We're not ripping up all of discohawk just because of one person decided to make many comments on a github issue. And no, I don't believe you ripped this game yourself, otherwise you would know what your own F: drive was. |
Summary
When I try to an error message box appears instead of booting the game.
Repro
Just click File => Open ROM... or simpy press Ctrl+O and then open "Sonic 3D Blast.cue" and then this error message box appears on screen.
Output
Host env.
The text was updated successfully, but these errors were encountered: