EasyRPG / Player

RPG Maker 2000/2003 and EasyRPG games interpreter
https://easyrpg.org/player/
GNU General Public License v3.0
965 stars 183 forks source link

Wii - Playing a game outside of a zip archive may cause crashes when wav files are played #3113

Open Mimigris opened 9 months ago

Mimigris commented 9 months ago

Name of the game:

Ultra Violet version 0.05.

Player platform:

Wii, continuous build of the Player.

Describe the issue in detail and how to reproduce it:

Launch the game on Wii and the game should almost instantly crash. The Player seems to struggle and is unable to play the Music of the title screen (BGM001たいとるぽ, not that the issue is not due to the use of kanas) on Wii for some reason. This issue seems to also affect some other tracks in the game, for example the one playing on the Dream Balcony (though without deleting BGM001 you will not be able to test it). Removing the files in question or even the entirety of the Music folder will allow you to play the game correctly. It's an issue with the files and not with the game itself, you could play them in another game and the crash would also occur.

Mimigris commented 9 months ago

Crash dump: 20231005_200218

carstene1ns commented 9 months ago

In what format is the music file? midi?

Mimigris commented 9 months ago

In what format is the music file? midi?

The Music is in the wav format, you can find it here: BGM001.zip This game seems to only use wav files for the Music, no midi files if it can help.

carstene1ns commented 9 months ago

Might be worth to update dr_wav and check this again, there have been some fixes for malformed files in the last versions since we updated it.

Mimigris commented 8 months ago

Might be worth to update dr_wav and check this again, there have been some fixes for malformed files in the last versions since we updated it.

The dr_wav update that was merged yesterday didn't fixed the issue, so I guess that it will need to be looked later.

ElTipejoLoco commented 7 months ago

Transcribing Discord user's crash dump for their attempt to play Toilet in Wonderland on the Wii release of the Player that may be related to this issue:

Exception (DSI) occurred!
GPR00 80185900
GPR01 80A62BD0
GPR02 807E3D1C
GPR03 80DDB780
GPR04 00000000
GPR05 00000080
GPR06 00000048
GPR07 00000000
GPR08 00000000
GPR09 8009937C
GPR10 808C0000
GPR11 00000000
GPR12 48200222
GPR13 808B69E0
GPR14 00000000
GPR15 00000000
GPR16 00000000
GPR17 00000000
GPR18 00000000
GPR19 00000000
GPR20 80A62C78
GPR21 00000015
GPR22 80A62C68
GPR23 8055424C
GPR24 8107BDD0
GPR25 00000000
GPR26 0000000D
GPR27 80A62C98
GPR28 00000000
GPR29 80DDB780
GPR30 80DDB790
GPR31 8107BC08
LR 8018592C SRR0 80099380 SRR1 0000b032 MSR 0000100 DAR 00000000 DSISR 04000000

STACK DUMP:
80099380 --> 8018592c --> 80185838 --> 8018b6b0 --> 8018ca34 --> 8018cc8c --> 8016c578 --> 8015306c --> 8011faa8

CODE DUMP:
80099380: 81240000 93C10038 3BC40008 7C09F040
80099390: 9361002C 3B610010 93410028 93810030
800993a0: 7CBA2B78 93A10034 7C7D1B78 93E1003C
Mimigris commented 7 months ago

The crash mentioned for Toilet in Wonderland occurred when creating a new game, right when the player gains access to the character, and seems to occur since the Music clock.wav(name of the file in the latest English translation) is played.

Mimigris commented 6 months ago

Gave it another try on the continuous build (still on Ultra Violet), and found something interesting: the music plays normally and doesn't cause crashes when attempted to be played if the game is played in a zip archive, so it could be an issue with how the music is referenced when not playing with an archive.

Mimigris commented 5 months ago

Giving another update here about this issue since some commits were made recently related to the Wii version: Now, a game outside of a zip archive no longer crashes almost immediately when a wav music is attempted to be played and can sometimes not crash at all, but is still relatively unstable (while testing an unzipped version of Ultra Violet, I've encountered a crash once when trying to the game from the title, I was met with crashes the two times I've tried to change the language of the game - could be due to the game reloading the music data since the title scene is reloaded - and encountered a crash in the middle of the intro cutscene in Wadanohara). The zip files seem to still work as intended from what I've tried, no issue there. Renaming the issue also to be a more precise.