Project

General

Profile

Actions

Emulator Issues #6781

closed

Wii-network branch may freeze randomly when playing some titles

Added by mbc07 over 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
WiiNetwork
% 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?
Monster Hunter Tri (RMHE08), Wii Shop Channel (HABA01), Wii U Transfer Channel (HCSE01), Opera Internet Channel (HADE01), possibly other titles with network-related functions

What went wrong?
Starting with Dolphin 3.5-268 (r9754fda516f3 -- wii-network branch) or Dolphin 3.5-2143 (r3968a5d169fd -- master branch), some Wii titles that have network-related functions will randomly freeze after some time with FPS 0 and VPS varying. Leaving Dolphin running for some time after the title frozen (around 30 sec. to 1 minute) may result in a "Dolphin has stopped working properly" crash

What did you expect to happen instead?
The titles shouldn't freeze

What steps will reproduce the problem?

  1. Launch an affected title (for example, Monster Hunter Tri)
  2. Depending of the title, just wait some time and it'll randomly freeze. In Monster Hunter 3 you should get in the menus. After that, wait some time and it'll freeze randomly too...

Which versions of Dolphin did you test on?
Latest master build and almost all wii-network builds before the merge

Which version of Dolphin used to work?
In master branch, the last revision without this issue is 3.5-1936 (r40a1cb5dfed6). In wii-network branch, the last revision working is 3.5-231 (r9af785532ef9)

What are your PC specifications?
CPU: Intel Core i7 3630QM @ 2.4GHz (3.4GHz Turbo Boost)
GPU: nVidia GeForce GT635M @ 2GB GDDR3 RAM
OS: Windows 8 x64
RAM: 8 GB

64 or 32 bit Dolphin?
Tested various revisions in both architectures -- The issue always occur in affected revisions

Any other relevant information?
After the freeze you'll hear the last sound buffer being repeated. If using a wii-network build before new-ah-hle merge, the last 5 seconds of audio will keep repeating. If using a wii-network build after the new-ax-hle merge or using a master build after wii-network merge, a static sound note will keep repeating like in this video: http://goo.gl/8Kg9Gj

This seems to be a merge issue, but also appear to be related to the hardware you're using: as stated by some people in issue 6577, they couldn't reproduce this issue, and in fact I tested in my old PC using a Core 2 Duo E4500 and Windows 7 x64 with an nVidia GT 440 and couldn't reproduce the issue here...

Actions #1

Updated by MayImilae over 10 years ago

  • Category set to wiinetwork
Actions #2

Updated by parlane over 10 years ago

"In wii-network branch, the last revision working is 3.5-231 (r9af785532ef9)"

Thankyou jhonn!!!!

Clearly the issue is with usb! :D This atleast gives me an area to look at, and I'll need to send someone test builds. Do you happen to want to be on IRC this week ? :D

Actions #3

Updated by mbc07 over 10 years ago

I'll see what I can do... Is there an desired time you want me to do so? Generally, I get home around 5 PM (GMT -4 time), so, you can ping me to do the testings at any moment...

Actions #4

Updated by parlane over 10 years ago

9:14 AM in NZDT atm.

I get home at about 5pm :(

Actions #5

Updated by mbc07 over 10 years ago

Well, ping me when you get time... I'll respond as soon as possible (if I did the time conversion right, when you get home I'll be soon to lunch time and I may be able to do some testings)...

Actions #6

Updated by parlane over 10 years ago

Do you have any kind of microphone plugged in to your pc ?

Actions #7

Updated by mbc07 over 10 years ago

I have the built in microphones of the HP TrueVision HD webcam, but disabling/removing the "USB Composite device" in Device Manager that corresponds to the webcam doesn't disable the microphones, so, I think they are "plugged" directly in the sound card...

Actions #8

Updated by parlane over 10 years ago

jhonn here we go!

http://dl.dolphin-emu.org/builds/dolphin-usb_optional-4.0-315-x64.7z

In Dolphin.ini add:

USBHIDEnabled = False

under [General]

And then start Dolphin and see what MH3 does!

Then if it MAGICALLY works...

We need some debug logs from you!

Turn on Warn in log settings and deselect everything except for WII IPC HID

Actions #9

Updated by parlane over 10 years ago

I meant if that makes mh3 work, then renable hid by setting USBHIDEnabled to True.

THEN do the logs, please :) Logs up to the point that it stops at 0 fps. Cheers.

Actions #10

Updated by mbc07 over 10 years ago

Tested the build you've linked, and indeed, with USBHIDEnabled = False, everything works fine, the random freeze don't occur. I ran the test again with USBHIDEnabled = True and logging enabled (like you asked), and this is what I got:

Right after booting the game, this line pop out:
47:42:129 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:118 W[WII_IPC_HID]: HID::Close

Everything goes well, but as soon as you get in the menus, these lines appear in the log:
48:01:179 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:110 W[WII_IPC_HID]: HID::Open
48:01:179 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:154 W[WII_IPC_HID]: HID::IOCtl(Open) (BufferIn: (00000000, 0), BufferOut: (103f2c20, 32)
48:01:180 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:146 W[WII_IPC_HID]: HID::IOCtl(Get Attached) (BufferIn: (00000000, 0), BufferOut: (103f2c20, 1536)
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:379 W[WII_IPC_HID]: Found 11 viable USB devices.
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:469 W[WII_IPC_HID]: Found device with Vendor: 930 Product: 6545 Devnum: 0
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:445 W[WII_IPC_HID]: libusb_get_config_descriptor failed with: -5
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:469 W[WII_IPC_HID]: Found device with Vendor: 138A Product: 18 Devnum: 1
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:469 W[WII_IPC_HID]: Found device with Vendor: 8087 Product: 24 Devnum: 2
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:445 W[WII_IPC_HID]: libusb_get_config_descriptor failed with: -5
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:445 W[WII_IPC_HID]: libusb_get_config_descriptor failed with: -5
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:469 W[WII_IPC_HID]: Found device with Vendor: 8087 Product: 24 Devnum: 3
48:08:552 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:469 W[WII_IPC_HID]: Found device with Vendor: 480 Product: A006 Devnum: 4

After those lines, the game freeze with a sound note repeating and with FPS 0 and VPS varying (like in the video I linked above). If I keep the emulation running for around 30-60 sec. after the freeze, then, a lot of "49:23:705 Src\HW\Memmap.cpp:114 E[*]: Illegal HW Read8 cc00XXXX" starts popping in the log with the number increasing endlessly from cc000000 until I stop the emulation.

After the emulation stop, I get an "50:29:848 Src\IPC_HLE\WII_IPC_HLE_Device_hid.cpp:118 W[WII_IPC_HID]: HID::Close" and that's all. Hopefully this helps finding the bug...

Actions #11

Updated by parlane over 10 years ago

I'm surprised there were no attempts to connect to a bad device etc

Actions #12

Updated by tueidj over 10 years ago

parlane: you should probably keep track of how much device descriptor info gets written instead of just overflowing the buffer...

Actions #13

Updated by tueidj over 10 years ago

... checking that they're actually HID devices before you report them as HID devices is probably a good idea too.

Actions #14

Updated by parlane over 10 years ago

Ye, but comex has completely rewritten usb. Still needs some fixing.

Actions #15

Updated by tueidj over 10 years ago

I don't see any changes to HID in his branch.

Actions #16

Updated by parlane over 10 years ago

jhonn I may have fixed this, please try e805bf60685bb5f4bd5ac1bf0a290519a678e5b4

Actions #17

Updated by parlane over 10 years ago

Which is 4.0-399

Actions #18

Updated by mbc07 over 10 years ago

The issue is fixed, no more random freezes, tested Monster Hunter Tri (RMHE08), Wii Shop Channel (HABA01), Wii U Transfer Channel (HCSE01) and Opera Internet Channel (HADE01) and none of them froze in 4.0-399. Thanks

Actions #19

Updated by parlane over 10 years ago

  • Status changed from New to Fixed

Fixed by e805bf60685bb5f4bd5ac1bf0a290519a678e5b4

Actions #20

Updated by ronangamero over 10 years ago

Hey, I have the same problem here. How I dowload this fixed Dolphin version? (4.0-399)

Actions #21

Updated by mbc07 over 10 years ago

Just download the latest development version from the main website, the fix is already included...

Actions #22

Updated by alexor1994 over 9 years ago

Sorry for saying the same after a year, but I have the latest version of Dolphin and is happening to me too. Yesterday I was playing fine, and today is freezing.

Actions #23

Updated by magumagu9 about 9 years ago

Please don't add further comments here. If you need support, ask at https://forums.dolphin-emu.org/ . If you want to file an issue report, there's a "New issue" button at the top of the page.

Actions

Also available in: Atom PDF