Project

General

Profile

Actions

Emulator Issues #8735

closed

Sonic Unleashed freezes randomly (PPCAnalyst)

Added by Nicknine almost 10 years ago.

Status:
Fixed
Priority:
High
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?
Sonic Unleashed

Game ID?
RSVP8P

What's the problem? Describe what went wrong in few words.
The game freezes some time after starting a stage (any stage). It appears to happen randomly. Can be 30 seconds before hanging, can be 2 minutes.

What did you expect to happen instead?
No freeze. I can finish the stage normally.

What steps will reproduce the problem?
[Don't assume we have ever played the game and know any level names. Be as
specific as possible.]

  1. Launch any stage from World Map or Gaia Temple.
  2. Wait
  3. Game freezes

Dolphin 3.5 and 3.5-367 are old versions of Dolphin that have
known issues and bugs, so don't report issues about them and test the
latest Dolphin version first.
Which versions of Dolphin did you test on?
4.0-6926
4.0-6092
4.0-5939

Does using an older version of Dolphin solve your issue? If yes, which
versions of Dolphin used to work?
It didn't hang in older builds but I didn't have much time at the moment of writing the issue and it appears to go at least 3 months back so I couldn't find a working one.

What are your PC specifications? (including, but not limited to: Operating
System, CPU and GPU)
Intel Core i5-4690k @ 3.5 GHz
8 GB RAM DDR3-1866
Gigabyte GeForce GTX 760 (2 GB VRAM)
Windows 7 64-bit

Is there any other relevant information? (e.g. logs, screenshots,
configuration files)
Nothing, tested with default settings.

Actions #2

Updated by Nicknine almost 10 years ago

Dolphin USED to crash in this game (I think it was related to Wiimote) but this was eventually fixed. This isn't the case now Dolphin doesn't crash, the game itself freezes.

Actions #3

Updated by JMC4789 almost 10 years ago

I'm investigating this now. In the meantime, try settings like single core, or using a GameCube controller instead.

Actions #4

Updated by Nicknine almost 10 years ago

I always played this game with (emulated) Gamecube controller and disconnecting virtual Wiimote doesn't help. Gonna try single-core mode now.

Actions #5

Updated by JMC4789 almost 10 years ago

  • Status changed from New to Accepted

I tried single core mode. Turning on logging, and see if you can't catch the game's crashing message in our logs. It should send some logging information that you can give us.

Actions #6

Updated by Nicknine almost 10 years ago

It appears that switching to JITTIL recompiler fixes freezing. Should I still record a log?

Actions #7

Updated by JMC4789 almost 10 years ago

Well, we're going to have to play the fallback game. I tried using full MMU, and got 13 minutes into a stage so far. If it's a CPU bug and we're stubborn enough, we can get enough information for someone to fix it. Are you with me? :)

Actions #8

Updated by JMC4789 almost 10 years ago

oh wait, 15 minutes in with MMU, crashed. Will test JITIL then. I could just take longer to crash due to being slower.

Actions #9

Updated by Nicknine almost 10 years ago

Enabled logging anyway, nothing in the log at the moment of crash. D'oh.

Actions #10

Updated by JMC4789 almost 10 years ago

Yeah, same, silent crash. We'll have to play the fallback game if JITIL is confirmed to be working.

Actions #11

Updated by JMC4789 almost 10 years ago

23 minutes on JITIL without a crash so far. The question is how do we test for fallbacks on something like this?

Actions #12

Updated by Nicknine almost 10 years ago

Well, I went back to 4.0-5939 which is 3 months old so it's definitely older than that. I remember this issue being rather old, try a January build for starters. If you can't a find a working build, I'll join tomorrow.

Actions #13

Updated by JMC4789 almost 10 years ago

Don't bother playing the regression testing. I'll play the fallback game to find out what the JIT is doing wrong instead.

Actions #14

Updated by JMC4789 almost 10 years ago

  • Priority set to High

Narrowed it down. It's a PPCAnalyst Optimization issue

Actions #15

Updated by JMC4789 almost 10 years ago

Narrowed it down further; seems to be Branch Merging optimization causing this.

Actions #16

Updated by JMC4789 almost 10 years ago

Disabling optimizations on addx fixes the hang.

Actions #17

Updated by JMC4789 almost 10 years ago

phire found the bug, just awaiting a PR now.

Actions #18

Updated by JMC4789 almost 10 years ago

  • Status changed from Accepted to Fix pending
Actions #19

Updated by phire almost 10 years ago

  • Status changed from Fix pending to Fixed

Merged

Actions

Also available in: Atom PDF