Emulator Issues #12932
openLater revisions of Super Paper Mario hang when stopping emulation, resetting, or returning to the system menu
0%
Description
Game Name?
Super Paper Mario
Game ID? (right click the game in the game list, Properties, Info tab)
R8PE01
MD5 Hash? (right click the game in the game list, Properties, Verify tab, Verify Integrity button)
[Put MD5 Hash here]
What's the problem? Describe what went wrong.
When closing emulation, the game goes into shutting down, then stops shutting down.
What steps will reproduce the problem?
Load the game. Play for any amount of time, I always let it get past the normal Wii menus and to the title screen, and then try to close the window. Have let it sit on my Mac for over 10 mins and it still failed to close.
Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.
5.0-16522
Is the issue present in the latest stable version?
(Unable to use Stable due to Mac mini M1 so Beta used) Yes, Beta 5.0-16380
If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool https://forums.dolphin-emu.org/Thread-green-notice-development-thread-unofficial-dolphin-bisection-tool-for-finding-broken-builds and anyone who is building Dolphin on their own can use git bisect.)
Present in Stable and current Development Version
If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here: https://wiki.dolphin-emu.org/index.php?title=FifoPlayer
Not Graphical. Stopping Emulation Issue.
What are your PC specifications? (CPU, GPU, Operating System, more)
Mac mini M1
Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)
I am using a playstation 4 controller with emulated Wii controller (it works perfectly fine, just needed button remapping a little.) No Special configuration used, no texture packs used, no cheats used. Pure base game, .iso file, verified good with onboard dolphin verify under Properties>Verify. If I am missing anything or you would like anything specific please let me know.
Files
Updated by SiriusDark over 2 years ago
I forgot the MD5. My apologies. 89976060c338b096277b134aa15cc210
Updated by pokechu22 over 2 years ago
I can't reproduce with my copy of the game (fe441d77d5cb9a7f01de954e84e6ca49, revision 0 - yours is revision 2). For mine, the game more or less immediately closes when stopping emulation (without any kind of fadeout, which seems to be normal for launch games - I wouldn't be surprised if revision 2 behaves differently with regards to this).
Note that with Wii games, stopping emulation simply tells the emulated game that the power button has been pressed, and then waits for the game to do its stuff (e.g. finish saving). In some cases, the game isn't listening for the signal (mostly if you press the power button during early startup). You can click the stop emulation button a second time to force emulation to stop (without asking the game nicely).
Can you post a log file with "IOS - State Transition Manager" enabled and the log level set to info? That might contain additional data that helps here.
Updated by SiriusDark over 2 years ago
So I am not sure if I did what you said correctly but here is the output I got.
45:01:437 Core/IOS/STM/STM.cpp:46 I[IOS_STM]: /dev/stm/immediate - IOCtl:
45:01:437 Core/IOS/STM/STM.cpp:47 I[IOS_STM]: IOCTL_STM_VIDIMMING
Even after waiting a few mins and even after forcing shut down. Nothing changed.
I ran the same info with another game and it showed the shutdown command like I think you were looking for.
Updated by pokechu22 over 2 years ago
Yes, that's the information I was looking for, thanks. Unfortunately the lack of any shutdown command means that I don't have any ideas for further steps to take (though a developer with a copy of the revision 2 of Super Paper Mario could investigate further).
Updated by JMC4789 over 2 years ago
I can reproduce the issue - the game freezes in the middle shutdown for me.
Updated by SiriusDark over 2 years ago
Don't know if this helps but it looks like it isn't acknowledging the shutdown command at all and the other processes continue. I toggled on all logging and found this.
10:25:236 m_stop_internal:2675 N[Audio]: Cubeb stream (0x149e3c100) stopped successfully. (I hit the red X to close the window and it said stop. Then after hitting yes to shutdown it then produced the next line. Each stop line is me hitting the X. When asked to force shutdown I hit no.)
10:27:346 m_stop_internal:2647 N[Audio]: Cubeb stream (0x149e3c100) started successfully.
10:36:009 m_stop_internal:2675 N[Audio]: Cubeb stream (0x149e3c100) stopped successfully.
10:41:555 m_stop_internal:2647 N[Audio]: Cubeb stream (0x149e3c100) started successfully.
10:46:531 m_stop_internal:2675 N[Audio]: Cubeb stream (0x149e3c100) stopped successfully.
10:51:480 m_stop_internal:2647 N[Audio]: Cubeb stream (0x149e3c100) started successfully.
Updated by JMC4789 over 2 years ago
Using LLE Audio fixes the issue. Obviously not a great option, but at least the more accurate option works.
Updated by SiriusDark over 2 years ago
Thanks for the workaround. I will also report that leaving it on HLE and changing the backend setting from Cubeb to No Audio Output still causes the issue so it seems specific to the HLE.
Updated by lasers over 2 years ago
I can confirm this issue multiple times because I'm currently playing this game (rev 2). I didn't realize it is a bug.
Updated by pokechu22 over 2 years ago
- Status changed from New to Accepted
Does the game also hang when exiting to the system menu from the HOME menu (with DSP HLE)? Or is only shutting down affected?
Updated by AdmiralCurtiss over 2 years ago
Also freezes on EU version (Rev 1).
Trying to exit or reset with the Home menu freezes as well.
Game gets stuck in this loop during shutdown so I'm guessing this is an interrupt timing issue.
Updated by pokechu22 over 2 years ago
JMC provided some screenshots of the threads widget (with symbols generated from the signature database): https://usercontent.irccloud-cdn.com/file/KqbWN3hl/image.png https://usercontent.irccloud-cdn.com/file/ioiWWsPM/image.png https://usercontent.irccloud-cdn.com/file/DGf7LYcY/image.png https://usercontent.irccloud-cdn.com/file/x4TG7dg3/image.png https://usercontent.irccloud-cdn.com/file/z9350saK/image.png - the hang in __AIDHandler
is apparently related to DSP HLE timings.
Updated by pokechu22 over 2 years ago
- Subject changed from Super Paper Mario R8PE01 (possibly other versions, untested) will not stop emulation to Later revisions of Super Paper Mario hang when stopping emulation, resetting, or returning to the system menu
Updated by pokechu22 over 2 years ago
spm-practice-codes includes a patch for this: inserting a blr
right at the start of spm::spmario_snd::spsndExit
on versions other than US rev 0, Japan rev 0, or Japan rev 1. (It also provides a list of addresses for that function in all revisions). We could theoretically include this patch, though it'd be better to just fix the timing issue (if we can figure it out).
Updated by iwubcode over 2 years ago
This also impacts Sakura Wars: So Long My Love (Wii)
Updated by AdmiralCurtiss 8 months ago
- File image1.png image1.png added
- File image2.png image2.png added
- File image3.png image3.png added
- File image4.png image4.png added
- File image5.png image5.png added
Saving the images pokechu linked locally in case the image host goes down in the future...