Dolphin, the GameCube and Wii emulator - Forums

Full Version: Mario Sunshine crash when minimizing window
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On my PC, I am able to reproduce a crash 100% of the time in Super Mario Sunshine.
This happens whenever I minimize the game window.  It doesn't crash if I minimize the window during the fading logos at the beginning, need to wait until the title screen cutscene starts to play.

Unhandled exception at 0x0000000000A6655F in Dolphin.exe: 0xC0000094: Integer division by zero.
Code disassembly near the crash:

Code:
0000000000A66506 4C 8D 44 24 30       lea         r8,[rsp+30h]  
0000000000A6650B 89 74 24 30          mov         dword ptr [rsp+30h],esi  
0000000000A6650F BA 67 88 00 00       mov         edx,8867h  
0000000000A66514 8B 4C C3 18          mov         ecx,dword ptr [rbx+rax*8+18h]  
0000000000A66518 FF 15 3A CA 22 01    call        qword ptr [1C92F58h]  
0000000000A6651E 83 7C 24 30 01       cmp         dword ptr [rsp+30h],1  
0000000000A66523 0F 85 86 00 00 00    jne         0000000000A665AF  
0000000000A66529 8B 83 18 10 00 00    mov         eax,dword ptr [rbx+1018h]  
0000000000A6652F 4C 8D 44 24 38       lea         r8,[rsp+38h]  
0000000000A66534 48 8D 3C C3          lea         rdi,[rbx+rax*8]  
0000000000A66538 89 74 24 38          mov         dword ptr [rsp+38h],esi  
0000000000A6653C 8B 4F 18             mov         ecx,dword ptr [rdi+18h]  
0000000000A6653F BA 66 88 00 00       mov         edx,8866h  
0000000000A66544 FF 15 0E CA 22 01    call        qword ptr [1C92F58h]  
0000000000A6654A 48 63 0D BB 46 7C 00 movsxd      rcx,dword ptr [122AC0Ch]  
0000000000A66551 33 D2                xor         edx,edx  
0000000000A66553 8B 44 24 38          mov         eax,dword ptr [rsp+38h]  
0000000000A66557 48 8D 04 80          lea         rax,[rax+rax*4]  
0000000000A6655B 48 C1 E0 07          shl         rax,7  
0000000000A6655F 48 F7 F1             div         rax,rcx    <- crashes here dividing by zero

EDIT:
Changing the internal resolution to something that isn't "Window Size" seems to stop the crashes.
When exactly is this happening?  I can't reproduce this.  I've minimized the window multiple times throughout the game.  During the intro.  At the Start screen.  During the cut scenes. During game play.  I used both the D3D & OpenGL backends.  Nothing I did produced this error.

Edit: Nevermind. I didn't catch that you had the resolution set to Auto Window Size. Yes, I can confirm that when it's set to window size, Dolphin does crash when you try to minimize the game