-
Notifications
You must be signed in to change notification settings - Fork 88
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
Out of memory error with isos that have invalid TOC entries #25
Comments
I believe I've never seen this. Can you explain this better? Are you using our fork of extract-xiso? There are other versions (outdated or specialized) of this tool maintained by other people.
Are we talking about confirmed images (at least 2 independent reference dumps which match)?
There've been 4 different games in the Burnout series on Xbox; and there's at least 12 different discs on Redump (only 2 of which have been confirmed).
We'd need more information for a fix. extract-xiso probably shouldn't crash, but it is possible that it hangs for a long time (if the input is bad, but could be valid). We could potentially add some sanity checks if need-be. |
I dumped it via a kreon drive and made a redump dump with DICUI where the md5 matches with the one from redump.org and additionally made a dump of the main partition with xbox backup creator where the dump of the main partition matches from 0x00010000 to 0x0CFF99C78 the redump dump from 0x018310000 to 0x0E8299C78 so I think the xbc dump I used with extract-xiso was dumped without errors.
I used the first PAL Burnout and got all the same hashes that are on here: http://redump.org/disc/14469/
I have 16 GB of RAM, while extracting it constantly takes 25,4 MB until it reaches trafcars\models\minibus\ then the RAM usage constantly rises until the PC is out of memory and then it prints failed to extract xbox iso image burnout.iso. I am really sorry to waste your time with this but as the xbox emulators improve I think people will try to use their own original discs with them. |
I did not find time to submit to redump yet, but I can confirm that same hash for my German disc of Burnout 1. So your disc / dumping method is fine.
Independent of the rest, this sounds suspicious: The data partition should be 7419363328 bytes in size. Your's is only half that size. I assume that xbc already compressed the ISO (removing padding sectors).
I was able to reproduce the issue. There's many independent issues in extract-xiso which cause this:
Point 3 is obviously the most critical one, as it means that extract-xiso is fundamentally broken. There's different exit conditions for XISO:
I've prototyped the array approach in JayFoxRox#1 - now that I understand it better, I'll look into a solution for the tree-like search (however, I'll not add the error conditions, because the code is fundamentally broken / bad; See #12 ).
It's not a waste of time. Thanks for reporting this bug! XboxDev was started by XQEMU developers, with the intention to work together with Cxbx-R people and other stakeholders.
Once you extract the data partition you should just be able to use it in XQEMU. Example:
In the near future, XQEMU should be able to support redump ISOs exclusively (and will also require SS.bin, DMI.bin and PFI.bin). Cxbx-R will probably still require extraction, but I assume they'll promote some fuse-filesystem to mount Xbox Redump ISOs, too.
Yes, it's annoying. We'd rather want to avoid tools which are primarily used by the piracy scene. We also want open-source and cross-platform tools. XQEMU specifically recommends this version of extract-xiso on its website.
Agreed. Issue remains open until we have a fix in master. |
With some games there are invalid entries even in the redump ISO.
When I use xbox backup creator to get the main partition of the PAL game Burnout for example and try to extract it with extract-xiso, it hangs at the directory trafcars/models/minibus and then crashes after some time with an out of memory error.
This directory is probably the last entry as the size of the extracted files exactly matches the size when extracting the disc with xbox back creator directly from the disc.
With xdvdmulleter with the redump as well as the xbox backup creator images I get an invalid toc entry error and can't even try to extract the file.
Is there some way to ignore this error or fix it?
The text was updated successfully, but these errors were encountered: