Game controller crash

Game controller crash

Postby dzsabor » 09 Jan 2018, 20:20

Hi All,

I got a crash right after initialization (see crash text at the end of the post).
I was trying to get PC Remote working (https://play.google.com/store/apps/deta ... t.portable) to get an additional steering wheel like controller on Windows 10.
The PC receiver part of the software creates a soft game controller device with a lot of axes and buttons (which receives input from a mobile device over network). After this game controller device is created STK crashes during startup.
I tried the following so far:
- In the Game Controllers / Properties / Test window of Windows 10 the device is working fine.
- Also tried other software (vdrift) where the game controller is working
- When I disable/remove the device STK starts and works properly

Regards,
Gabor

---------------------------
SuperTuxKart crashed :/
---------------------------
SuperTuxKart crashed!
Please hit Ctrl+C to copy to clipboard and signal the problem
to the developers on our forum: viewforum.php?f=16

Call stack:

gamepad_device.cpp:GamePadDevice::isButtonPressed:97
input_manager.cpp:InputManager::input:945
event_handler.cpp:GUIEngine::EventHandler::OnEvent:239
cirrdevicestub.cpp:irr::CIrrDeviceStub::postEventFromUser:226
cirrdevicewin32.cpp:irr::SJoystickWin32Control::pollJoysticks:495
cirrdevicewin32.cpp:irr::CIrrDeviceWin32::run:1564
irr_driver.cpp:IrrDriver::update:1758
main_loop.cpp:MainLoop::run:242
main.cpp:main:1805
exe_common.inl:__scrt_common_main_seh:283
BaseThreadInitThunk
RtlUserThreadStart
---------------------------
OK
---------------------------
dzsabor
 
Posts: 1
Joined: 09 Jan 2018, 20:04

Re: Game controller crash

Postby Auria » 10 Jan 2018, 00:09

Hi,

thanks, I have created an issue here : https://github.com/supertuxkart/stk-code/issues/3089
Image
User avatar
Auria
STK Moderator
 
Posts: 2836
Joined: 07 Dec 2009, 03:52

Re: Game controller crash

Postby GeekPenguinBR » 10 Jan 2018, 03:17

dzsabor {l Wrote}:I got a crash right after initialization


For coincidence, I had the same issue today.

My old control stopped working, so, I tried a simple generic control for PS that works on PC. The device was immediately recognized by DCS, Euro Truck Simulator 2, GT Legends, as well, most games I play on Steam (or not), except F1 Race Stars and Dirt Rally. However, Supertuxkart was the only one that crashed.

Here's the error message:

---------------------------
SuperTuxKart crashed :/
---------------------------
SuperTuxKart crashed!
Please hit Ctrl+C to copy to clipboard and signal the problem
to the developers on our forum: viewforum.php?f=16

Call stack:

DllCanUnloadNow
DllCanUnloadNow
timeEndPeriod
BaseThreadInitThunk
RtlUserThreadStart
---------------------------
OK
---------------------------

I did a research to figure out the reason and I noticed that, even if I never had experienced until now, this is a common issue. Then, it's better reporting too. Maybe the information can help the developers to avoid this for other generic devices in general improving the receiving of data from/through DirectInput.

Relevant information:
Windows 10 Home 64 bits
DirectX 12
"Making cool harmless games makes the world a better place".
User avatar
GeekPenguinBR
 
Posts: 321
Joined: 22 Mar 2014, 00:41
Location: Rio de Janeiro

Re: Game controller crash

Postby QwertyChouskie » 10 Jan 2018, 21:36

GeekPenguinBR: It seems you are still using 0.9.2, can you re-try with 0.9.3? A lot was changed in regards to controllers in 0.9.3. (for better or for worse ;)
User avatar
QwertyChouskie
 
Posts: 130
Joined: 29 Jun 2016, 14:57

Re: Game controller crash

Postby Auria » 11 Jan 2018, 00:49

It's a bit hard to be fully sure since I do not have this crash myself, but I believe I have fixed the crash you encountered. If you know how to use the latest git version, you could try it; otherwise, the fix will come with next release
Image
User avatar
Auria
STK Moderator
 
Posts: 2836
Joined: 07 Dec 2009, 03:52

Re: Game controller crash

Postby GeekPenguinBR » 11 Jan 2018, 09:36

QwertyChouskie {l Wrote}:GeekPenguinBR: It seems you are still using 0.9.2, can you re-try with 0.9.3? A lot was changed in regards to controllers in 0.9.3. (for better or for worse ;)


Hi! Thanxs.

I was offline for hours installing some new devices on my PC. It takes from 4 PM to 11:40 PM and I even needed to ask the help of my brother, who came to fix the cable management (since he is more skilled than me working with wires).

Well, all my recent videos were recorded playing 0.9.3. Actually, I have 0.9.3 already (since November, 20th.) as you can see on the screenshot:
Tela 0.9.3..jpg


Auria {l Wrote}:..If you know how to use the latest git version, you could try it; otherwise, the fix will come with next release


Thank you for your reply.
I took a look at github, but, AFAIK, to insert the new lines into the proper directory, I do need to download and install Visual Studio, SuperTuxKart source package, Windows dependencies package and CMake. It's something new for someone with no experience in programming. So, I don't think I should be able to do this correctly.

I will keep playing on a keyboard for a while. Maybe I'll buy a wheel.
Thank you, anyway.
"Making cool harmless games makes the world a better place".
User avatar
GeekPenguinBR
 
Posts: 321
Joined: 22 Mar 2014, 00:41
Location: Rio de Janeiro

Who is online

Users browsing this forum: No registered users and 1 guest