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

[Bug] PSX Multidisc games loading all discs and failing during decompression (memory?) #911

Open
Urkaz opened this issue May 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working emulatorjs Emulator.js bugs or feature requests

Comments

@Urkaz
Copy link

Urkaz commented May 31, 2024

RomM version
3.2.0

Describe the bug
Trying to play multidisc games like "Final Fantasy VII" or "The Legend of Dragoon" makes the emulator load all discs which results in an error during the "Decompress Game Data" step.
The Chrome console displays the following warning and errors:

enlarged memory arrays from 16777216 to 1543503872, took 76 ms (has ArrayBuffer.transfer? false)
Warning: Enlarging memory arrays, this is not fast! 16777216,1543503872
enlarged memory arrays from 1543503872 to 1962934272, took 3250 ms (has ArrayBuffer.transfer? false)
Warning: Enlarging memory arrays, this is not fast! 1543503872,1962934272
enlarged memory arrays from 1962934272 to 2013265920, took 6814 ms (has ArrayBuffer.transfer? false)
Warning: Enlarging memory arrays, this is not fast! 1962934272,2013265920

Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 2013265920, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 

Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 2013265920, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 

63f3e2e7-a57c-437d-8450-f59cd0e75951:1 Uncaught abort("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 2013265920, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 ") at Error
    at jsStackTrace (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:15398)
    at stackTrace (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:15558)
    at abort (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:195720)
    at abortOnCannotGrowMemory (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:17200)
    at Oe (blob<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:181215)
    at x (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:146545)
    at N (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:105826)
    at _extract (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:183716)
    at asm._extract (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:187130)
    at eval (eval at cwrap (blob:<serverurl>/63f3e2e7-a57c-437d-8450-f59cd0e75951:1:10779), <anonymous>:1:164)

To Reproduce
Steps to reproduce the behavior:

  1. Have a multidisc game like "The Legend of Dragoon" in the library (this is the one I used for the test).
  2. Click on Play (select your preferred bios and core.
  3. Notice that the emulator is downloading a lot of data (more than 1GB while one disc is ~500MB).
  4. Notice the error in the "Decompress Game Data" step.

Expected behavior
I don't know exactly how Emulator js works or why it loads all discs, but it would be good if only one disc is loaded instead of all of them. That will speed up the launch of the game and probably avoid the problem.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome 125.0.6422.113
@Urkaz Urkaz added the bug Something isn't working label May 31, 2024
@gantoine gantoine self-assigned this May 31, 2024
@gantoine gantoine added the emulatorjs Emulator.js bugs or feature requests label Jul 14, 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 emulatorjs Emulator.js bugs or feature requests
Projects
None yet
Development

No branches or pull requests

2 participants