Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vba-m won't open with wii u pro controller connected #444

Birutath opened this issue Jun 17, 2019 · 5 comments


Copy link

@Birutath Birutath commented Jun 17, 2019

Please fill out this form:

Expected behavior

To open normaly and recognize the controller as a xbox 360 one

Actual behavior

Won't open, and insted gives a pop up that reads "unhandled Standard exception of type "st20bad_array_new_lenght" with message std::bad_array_new_lenght"; terminating the application"

Steps to reproduce the behavior

Use a wii u pro controller with wiinUsoft app, and try to open vba-m

Build details

Operating System: Windows 10 pro 64 bit

Version of code: 2.1.3


This comment has been minimized.

Copy link

@Squall-Leonhart Squall-Leonhart commented Jun 18, 2019

Get a real xbox 360 controller, bluetooth pads are odd spec wise.


This comment has been minimized.

Copy link

@Birutath Birutath commented Jun 18, 2019

What i think is strange is that, i don't have this problem with anything else. All my pc games and emulators run normally, only vba-m won't run with my controller


This comment has been minimized.

Copy link

@denisfa denisfa commented Jun 18, 2019

@Birutath Thanks for the report. This is a little tough to debug because I believe we don't have someone who owns this controller... We can take a look, but it won't be high priority.


This comment has been minimized.

Copy link

@ZachBacon ZachBacon commented Jun 24, 2019

My guess is that SDL2 isn't picking up on that properly. May need to add a special case for that.

rkitover added a commit that referenced this issue Jun 24, 2019
Check that SDL reports any available controls for a joystick, otherwise
mark it invalid and close it.

When processing events for joysticks, check that each one is valid.

Set initial value of controls to zero initially not after getting the
initial state, previously we were getting the initial state and
overwriting it with zeroes, defeating the purpose.

Fix memory leak, `curval` array of controls not being cleared.

Signed-off-by: Rafael Kitover <>

This comment has been minimized.

Copy link

@rkitover rkitover commented Jun 24, 2019

The error should be fixed, as for the joystick you might look into SDL2 settings.

@rkitover rkitover closed this Jun 24, 2019
@rkitover rkitover mentioned this issue Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
5 participants
You can’t perform that action at this time.