Comments (4)
By having a quick look at the code, I believe the problem lies in the fact that mkpsxiso launches a thread (std::launch::async), for each sector for the XA file, to generate edc/ecc data, for each sector, which for very big files this would exhaust the maximum number of thread that can be run. In fact, when running mkpsxiso with gdb, I can see a lot of threads spawn.
I do not see the point of using threading for such a very simple task like generating ecc/edc, considering psx bins are not going to be very large anyway.
-EDIT- in fact, by removing all the async non-sense, everything works fine as expected. If using threads is really important, then I would suggest limiting the amount of tasks you spawn. My laptop has 32GB RAM, and this was not enough to pack a 434 MB XA file.
from mkpsxiso.
Probably you did not spot this issue, because the std library uses a thread pool in Windows. But on Linux, each std::async actually spawns a new thread. See https://stackoverflow.com/questions/29622179/async-uses-a-threadpool
from mkpsxiso.
The recent rewrite has added a lot of changed code that I fear has not been properly tested, and thus regressed the tool, rather than improving it.
The previous version was not even capable of generating proper checksums so any and all files built through it were technically broken. I'm sorry that a regression crept in, but a rewrite was available for testing for a while before it got merged to the mainline repository and all reported issues were fixed. I'm sure you realize you can't fix bugs nobody spots, and it's not realistic to achieve 100% coverage of all possible discs.
Probably you did not spot this issue, because the std library uses a thread pool in Windows. But on Linux, each std::async actually spawns a new thread
That's quite disappointing. In this case I think the idea of using a thread pool as in the PR is fine.
from mkpsxiso.
That's long fixed by #37.
from mkpsxiso.
Related Issues (20)
- Cue files might reference bin files incorrectly HOT 6
- Bug when calculating the folder size
- Invalid sectors generated when a license file isn't provided HOT 1
- dumpsxiso crashes when given an obviously invalid file
- -lba and -lbahead require a positional argument HOT 1
- Is the XML file supposed to generate alongside the extracted files? HOT 3
- Merging folders with the same name HOT 4
- dumpsxiso: Specifying a path to the directory via -s instead of path to XML doesn't throw a descriptive error
- Use XML project filename instead of hardcoded "mkpsxiso" for IMAGE_NAME and CUE_SHEET HOT 1
- -lba option outsputs incorrect LBA for DA files HOT 5
- [QUESTION] How to Specify Game ID? HOT 2
- Why are file names limited to 12 characters long?
- PSX-EXE LBA and Size HOT 2
- Regression (?) in v2 .bin generation HOT 3
- Cannot rebuild T kara hajimaru monogatari
- mkisoxml is missing HOT 5
- Tomba! (USA) is missing 150 sectors HOT 2
- Extract files but doesn't create xml HOT 2
- ECC/EDC mismatch when rebuilding CTR (NTSC-U)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkpsxiso.