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

Crash on first launch with both stable and develop version #219

Open
duke1102 opened this issue Jun 9, 2018 · 3 comments
Open

Crash on first launch with both stable and develop version #219

duke1102 opened this issue Jun 9, 2018 · 3 comments
Assignees
Labels

Comments

@duke1102
Copy link

duke1102 commented Jun 9, 2018

Hey!

So I encountered a critical issue with MedLaunch today, when I wanted to test it out.
The issue happened with the current production release v0.5.25.3 and v0.5.25.4-DEVBUILD-133.
I also tried to use Mednafen v1.21.3 and v1.21.1 (64bit) - same issue.

I'm using Windows 10 Pro 64bit.

According from the exception log I assume it has something to do with the Gamepad initializing.
I'm using a wired XBOX 360 Gamepad connected via USB. After unplugging it, the same crash happens.

Even after trying a fresh copy of MedLaunch and Mednafen again with the gamepad unplugged, it threw the same exception. So not sure if it is caused by my controller.

Here's the exception.log file it created: Exceptions.log

If you need any further details about my system specifications and such, let me know!

@Asnivor
Copy link
Owner

Asnivor commented Jun 9, 2018

Hey there.
Yeah, that looks like a bug. The exception IS thrown when initializiing any joypads at boot.
I'll look into it as soon as I can.

@Asnivor Asnivor self-assigned this Jun 9, 2018
@Asnivor Asnivor added the bug label Jun 9, 2018
@duke1102
Copy link
Author

duke1102 commented Jun 9, 2018

Hey @Asnivor - thanks for the quick reply!

I just build the source myself and could identify the problem.
I had a software called PC Remote from Monect installed, which allowed me to control my PC via an Android phone and use it as a mouse/keyboard/gamepad. The software created it's own device driver "Monect Hid Device" which ultimately caused the exception to happen.

After I uninstalled the software and device from the device manager... voila, MedLaunch launched without problems.

Exception gets thrown on line 129 in the GamePad.cs, where it checks if the ContInfoFromLog.Count() > 0. This "Monect Hid Device" did fool the if-check and caused to go boom. Might want to use a try-catch block here too, even if this issue is rather rare.

Keep up the good work! I hope I helped!

@Asnivor
Copy link
Owner

Asnivor commented Jun 9, 2018

Awesome stuff, thanks. Thats a great help.

I guess I never assumed there would be a gamepad device that would be detected in slimdx, but not in mednafen. Duh. I will certainly get this fixed up when I next have the chance.

Thanks again!

@Asnivor Asnivor added this to Pending in MedLaunch Development Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants