Project

General

Profile

Actions

Emulator Issues #9486

closed

Random inputs with official WiiU Adaptor on games

Added by TehBazzard over 8 years ago. Updated over 2 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
Windows
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?
Super Smash Bros. Melee

Game ID? (right click the game in the game list, properties, info tab)

GALE01

MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)

0e63d4223b01d9aba596259dc155a174

What's the problem? Describe what went wrong.

When using the GC WiiU Adaptor released by Nintendo, the game seems to make random inputs, usually to the down and left position on both the C-Stick and Directional Stick. Occasionally, it'll even stick in that position. Sometimes unplugging and replugging the controller fixes it, but if it does, it's only temporary. When I removed the entire adaptor from my PC, it seems that the input was being made still even with the adaptor removed, and I could then confirm it was making the input on all four controller slots.

I want to stress that this doesn't just occur on SSBM: it happens far more frequently on Wii games. I've tested this on Super Smash Bros. Brawl and also the mod for that game, Project M, booted up via Gecko. It seems to be an emulator-wide issue.

What steps will reproduce the problem?
Just playing Smash Bros. will incur the issue.

Which versions of Dolphin did you test on? Does using an older version of Dolphin solve your issue? If yes, which versions of Dolphin used to work?
4.0 9103, and then in 4.0 9211. In 9211, I had the odd curiosity of the emulator then not taking ANY inputs except for the down-right input.

What are your PC specifications? (CPU, GPU, Operating System, more)

Operating System: Windows 10 Home 64-bit (10.0, Build 10586) (10586.th2_release_sec.160223-1728)
Processor: AMD A10-7400P Radeon R6, 10 Compute Cores 4C+6G (4 CPUs), ~2.5GHz
Memory: 8192MB RAM

Card name: AMD Radeon(TM) R6 Graphics
Manufacturer: Advanced Micro Devices, Inc.
Chip type: AMD Radeon Graphics Processor (0x130D)
DAC type: Internal DAC(400MHz)
Device Type: Full Device
Is there any other relevant information? (e.g. logs, screenshots,
configuration files)

The controller I am using is the Smash 4 Reprint GC controller. I went ahead and tried with an original run GC controller and a Wavebird. No issue. Also no issue with a 360 pad on my end and the proper settings.

Again, I know Project M is a mod and it occurs worse on there, but the problem also existed with Melee and Brawl.


Files

Power4Gear_Hybrid.png (204 KB) Power4Gear_Hybrid.png bueno, 11/11/2019 07:24 PM

Related issues 2 (0 open2 closed)

Has duplicate Emulator - Emulator Issues #9730: [Netplay] Official GCN Controller adapter random down-left inputs on control and C stickDuplicate

Actions
Has duplicate Emulator - Emulator Issues #10673: Mayflash gamecube adapter random inputs [Can't play]Duplicate

Actions
Actions #1

Updated by JMC4789 over 8 years ago

Usually when something like this happens, it's due to another program (usually a sound driver?) stealing the adapter because they use LibUSB.

I don't think this is Dolphin's bug. Please turn on logging and see if the adapter is being disconnected while you play.

Actions #2

Updated by DrHouse64 over 8 years ago

Actually I think it's a Dolphin bug. It also happens to me. I never had this problem before.
See : https://forums.dolphin-emu.org/Thread-wiiu-gc-adaptater-is-slightly-broken

Actions #3

Updated by JMC4789 over 8 years ago

I played a 6+ hour marathon on netplay earlier tonight with an official GC adapter and did not run into a bug.

Unless someone can get more information, there's nothing that can be done unless a developer runs into the bug.

If a random direction is hitting, 99% of the time it means we lost connection to the adapter. If you turn on log messages, you should see the adapter getting disconnected when this bug occurs. This should give us the necessary information on how to move forward.

Thank you for your time.

Actions #4

Updated by TehBazzard over 8 years ago

Turned on the logs and the issue occured. It was just as you expected. The adaptor is reading as detaching and reattaching. I just don't know why it does this. My cables were rested on a table so they didn't drop, and the device works just fine on my WiiU. Pastebin logs are included below.
http://pastebin.com/Mem5cE6Z

Actions #5

Updated by mathieui over 8 years ago

Thanks for the log, it does look like windows drivers madness again. You could try removing other usb devices (such as mouse or keyboard). See https://bugs.dolphin-emu.org/issues/8552 (it was considered fixed because they weren’t using the adapter at that time, so disabling the adapter entirely fixed it), but there’s not much we can do about it, if it is this issue.

I’ll submit a libusb update to dolphin externals in the next few days, but I don't have too much hope…

Actions #6

Updated by PEmu about 8 years ago

mathieui wrote:

Thanks for the log, it does look like windows drivers madness again. You could try removing other usb devices (such as mouse or keyboard). See https://bugs.dolphin-emu.org/issues/8552 (it was considered fixed because they weren’t using the adapter at that time, so disabling the adapter entirely fixed it), but there’s not much we can do about it, if it is this issue.

I’ll submit a libusb update to dolphin externals in the next few days, but I don't have too much hope…

Are you still planning on updating libusb? There have been a number of complaints about random input using GameCube controllers since this report was made and it would be nice to see if updating it helps at all.

Actions #7

Updated by JosJuice about 8 years ago

  • Has duplicate Emulator Issues #9730: [Netplay] Official GCN Controller adapter random down-left inputs on control and C stick added
Actions #8

Updated by Nightfirecat about 8 years ago

I'm experiencing this same issue on 5.0-321 (specifically while playing 0e63d4223b01d9aba596259dc155a174) with one caveat regarding when/how it is being caused: I'm only seeing the adapter disconnection while moving my mouse; otherwise, it remains connected without any issues.

Actions #9

Updated by PEmu about 8 years ago

libusb has now been updated to 1.0.20. Could a user who has had issues with random inputs with the Wii U adapter test with the latest Dolphin development builds to see if there is any improvement?

Actions #10

Updated by leoetlino almost 8 years ago

And now libusb has been updated to 1.0.21. I doubt that will fix any issues on master though, but there's another thing you can try.

1.0.21 introduces a new libusb backend on Windows (usbdk). Since it's an entirely new backend, it may not have this problem at all. For instructions on how to try it, see this post: https://www.reddit.com/r/emulation/comments/5k8ho4/looking_for_feedback_potentially_changing_usb/dbm3eyy/

You can ignore things that are specific to USB passthrough (whitelisting devices); all you need to do is use the special PR build, launch Dolphin and use your GC adapter as usual.

Actions #11

Updated by FourSword over 7 years ago

I've recently been having this problem so I figured I'd contribute to doing some testing and try to uncover the reason behind this issue.
A bit of background history:

  • I've been aware of this issue for some time but have never experienced this problem for myself in the last 12-24 months of using the dolphin emulator
  • Recently I've started streaming and ever since that time I've been having this issue.

Things I've tried to resolve the issue on my own:

  • Plugging different controllers in the GC adapter (did not help)
  • Reinstall zadig several times (did not help, except for one instance)
  • Using different USB ports (did not help)
  • Use different versions of dolphin (did not help)
  • Disconnecting all other USB devices (did not help)

Some users on IRC suggested I tried the logger within dolphin, as other users have found:
The adapter seems to disconnect and reconnect at several intervals (can provide the logs if necessary)

After talking to JMC47 I've decided to do a quick test of the following:

  • Try to minimize the amount of open processes/applications, at first I decided to kill OBS completely.
  1. After OBS was killed I started up netplay and tested it with another user; the random inputs did not occur.
  2. Immediately after I started OBS back up again and started streaming; the random inputs started occurring again.
    I was utilizing a Window Capture method for capturing dolphin gameplay.

I'm available for further testing if necessary, hopefully these results will help further identify the cause/problem.

Actions #12

Updated by leoetlino about 7 years ago

  • Status changed from New to Invalid
  • Operating system Windows added
  • Operating system deleted (N/A)

This sounds like something that Dolphin can't fix, unfortunately.

Actions #13

Updated by FourSword about 7 years ago

Hey leoetlino,

It does seem like that is the case since most of the information I've found talks about libusb losing focus due to some reason.
So expecting a solution out of dolphin might not be realistic.

With that said in older versions of dolphin (think 4.0 development versions) this problem was not nearly as aggravating.
The difference is in that since 5.0 and up this issue will input a down/left input (and sometimes A) which causes weird behavior in games, while in 4.0 the input would simply reset to neutral (with no input of A).

Obviously both are not ideal, but I'm wondering if it's possible to make it behave more or less the same way as in 4.0.

Actions #14

Updated by thisproblemisstillhere almost 7 years ago

Has anyone figured this out?

Actions #15

Updated by leoetlino almost 7 years ago

Actions #16

Updated by kdizzle340 over 6 years ago

I'm still having this problem and it SUCKS. nothing i do seems to fix this. I don't even know why the USB port would behave like this. My PC and adapter should both be behaving fine, but instead I get these constant down and left inputs as my adapter fails with Dolphin. :angery:

Actions #17

Updated by ItsZev about 6 years ago

Switched from a USB 3.0 to a USB 2.0 and it fixed the issue.

Actions #18

Updated by bueno almost 5 years ago

I finally found a different fix for this bug. But first, here is a bit of background history.

I played several months with the GC adapter, without having encountered this bug. Then suddenly, after 2 weeks without launching Dolphin, this bug occurs, sending down + left inputs almost every 30 seconds on every game.

I tried all fixes describe above, but none of them work for me. During one month, the bug occurs on every play. Then one week ago, I found that the problem came from my computer, not Dolphin.

My computer is running an ASUS software called "Power4Gear Hybrid", which offer 4 ways to manage the power settings of the computer: "High Performance", "Entertainment", "Quiet Office" and "Battery Saving" (see attached screenshot). Due to a stupid keyboard shortcut, the selected mode switched from "High Performance" to Entertainment".

I switched it back to "High Performance", and since then the random input bug is gone :o

If you still have this bug, please look if your computer is not running on a "slow" mode like mine ;)

Actions #19

Updated by Taako over 2 years ago

I'm encountering this symptom trying to run Dolphin in a Windows VM. Can someone tell me how to enable logs so I can confirm it's the same issue? I think it's related to the fact that KVM is emulating the USB controller and i'm hoping to purchase a PCIe USB Controller and bind the entire thing to VFIO so that KVM doesn't have to emulate the controller.

But i'd like to confirm the issue of the mayflash adapter being lost momentarily before i do that. How do i enable logging and what log should i look for to see the mayflash adapater losing connection to dolphin?

Actions #20

Updated by pokechu22 over 2 years ago

View → Show Logs and also View → Show Log Configuration. Then set the verbosity to "info", check "write to window" (and maybe "write to file"), and enable the "Controller Interface (CI)" log (and maybe "Common" and "Serial Interface (SI)").

Actions #21

Updated by Taako over 2 years ago

pokechu22 wrote:

View → Show Logs and also View → Show Log Configuration. Then set the verbosity to "info", check "write to window" (and maybe "write to file"), and enable the "Controller Interface (CI)" log (and maybe "Common" and "Serial Interface (SI)").

Thank you! I will try this later tonight.

Just to confirm, i should be searching for logs similar to the following:

22:19:206 GCAdapter.cpp:353 N[SI]: GC Adapter detached
22:19:722 GCAdapter.cpp:219 N[SI]: Found GC Adapter with Vendor: 57E Product: 337 Devnum: 1
22:19:727 GCAdapter.cpp:384 N[SI]: New device connected to Port 1 of Type: 14
22:23:838 GCAdapter.cpp:353 N[SI]: GC Adapter detached
22:24:320 GCAdapter.cpp:219 N[SI]: Found GC Adapter with Vendor: 57E Product: 337 Devnum: 1
22:24:330 GCAdapter.cpp:384 N[SI]: New device connected to Port 1 of Type: 14

This seems right based on the logs posted in comment #4, i'd just like to make sure i'm correctly identifying the issue. If I see these types of logs every so often it means the adapter is being dropped and re-attached, correct?

Actions #22

Updated by pokechu22 over 2 years ago

I think so. The GC adapter code has changed a bit since then, but that should just mean that when this happens, there's more information to work with.

Actions #23

Updated by Taako over 2 years ago

I colleged a set of logs, here is a brief explanation of each, between each log i closed dolphin completely

dolphinlog1.log - First log without changing anything, I enabled logging after i had already started the game so some logs are cut off
https://gist.github.com/TaakoMagnusen/2be72710143a0d80f7c6ddb14f28879d#file-dolphinlog1-log

dolphinlog2.log - Did not change anything but logging was enabled from the the start of the game.
https://gist.github.com/TaakoMagnusen/2be72710143a0d80f7c6ddb14f28879d#file-dolphinlog2-log

dolphinlog3-resintallWinUSB.log - I used Zadig to re-replace the WinUSB drivers, I did not uninstall the drivers before this. This seemed to make the issue even worse as there were more frequent bursts of errors
https://gist.github.com/TaakoMagnusen/2be72710143a0d80f7c6ddb14f28879d#file-dolphinlog3-resintallwinusb-log

dolphin-libusb-win32.log - I used zadig to install the libusb-win32 drivers, replacing WinUSB
https://gist.github.com/TaakoMagnusen/2be72710143a0d80f7c6ddb14f28879d#file-dolphin-libusb-win32-log

dolphin-deletedDriversAndReplug.log - I went to device manager -> properties -> Uninstall device (and delete drivers), I then unplugged and replugged the device and did not use Zadig to replace any drivers. this may have made it revert to winusb, im not sure
https://gist.github.com/TaakoMagnusen/2be72710143a0d80f7c6ddb14f28879d#file-dolphin-deleteddriversandreplug-log

Nothing worked, each time a "chunk" of errors came in it would result in one "downward movement" on the joystick (so the mario kart main menu which i was using to test would go down one selection).

The problem happens whenever this error occurs (each collective chunk of errors is one joystick movement):

51:24:543 InputCommon\GCAdapter.cpp:734 E[CI]: error reading payload (size: 0, type: 21)
51:24:543 InputCommon\GCAdapter.cpp:734 E[CI]: error reading payload (size: 0, type: 21)
51:24:543 InputCommon\GCAdapter.cpp:734 E[CI]: error reading payload (size: 0, type: 21)
51:24:543 InputCommon\GCAdapter.cpp:734 E[CI]: error reading payload (size: 0, type: 21)
51:24:545 InputCommon\GCAdapter.cpp:734 E[CI]: error reading payload (size: 0, type: 21)
51:24:545 InputCommon\GCAdapter.cpp:734 E[CI]: error reading payload (size: 0, type: 21)
51:24:545 InputCommon\GCAdapter.cpp:734 E[CI]: error reading payload (size: 0, type: 21)
51:24:545 InputCommon\GCAdapter.cpp:734 E[CI]: error reading payload (size: 0, type: 21)

I do not see it saying "GC Adapater detected" though. Only that it fails to read the payload. Maybe that's just the newest error message since i'm on the latest beta of dolphin

Actions #24

Updated by Taako over 2 years ago

typo, colleged -> collected

Can someone confirm that this is indeed the same error where dolphin loses connection to the mayflash adapter. I've ordered a PCIe USB controller and will try to install it tomorrow and see if passing through an entire controller to the VM helps fix this.

Actions #25

Updated by Taako over 2 years ago

Just updating the thread in case someone stumbles upon. it with the same issue I had (running dolphin in a VM). In my case i was passing through the individual USB device (Mayflash gamecube adapater) and the issue was caused by the KVM having to emulate the usb controller (since it didn't own the whole device).

Ihe issue was solved by buying a PCIe USB controller (Inateck PCI-E to USB 3.0 (5 Ports) PCI Express Card and 15-Pin Power Connector) and passing binding the entire PCIe device to the Virtual Machine VFIO. This allowed the KVM to not need to emulate the USB controller and so performance was significantly improved. I'm no longer getting errors or the ghost joystick movement.

Actions #26

Updated by davidvkimball over 2 years ago

Using Dolphin 5.0 for speedrunning Melee, and I continue to run into this issue.

I found this old SmashLadder post addressing it: [[https://www.smashladder.com/blogs/view/26qo/2016-08-12/psa-controller-inputs-down-left-on-c-stick-main-stick-rando]]

I've tried to keep Zadig open, and it seems at least to reduce its frequency, and it tends to happen when I'm using my mouse or keyboard and Dolphin is not the active window.

Would still love a permanent, reliable fix for this if it ever happens!

Actions

Also available in: Atom PDF