SFML community forums
Help => Window => Topic started by: miki151 on May 06, 2016, 07:47:12 am
-
This is from a minidump from a remote machine. I can send in the minidump and symbols, if needed.
Crashing line:
cache.connected = joyGetPosEx(JOYSTICKID1 + index, &joyInfo) == JOYERR_NOERROR;
index is 0
Stack trace:
dinput.dll!CDIDev_Acquire() Unknown
WINMMBASE.dll!joyGetPosEx() Unknown
sfml-window-2.dll!sf::priv::JoystickImpl::isConnected(unsigned int index=0) Line 191 C++
sfml-window-2.dll!sf::priv::JoystickManager::update() Line 88 C++
sfml-window-2.dll!sf::priv::WindowImpl::processJoystickEvents() Line 164 C++
sfml-window-2.dll!sf::priv::WindowImpl::popEvent(sf::Event & event={...}, bool block) Line 119 C++
sfml-window-2.dll!sf::Window::pollEvent(sf::Event & event={...}) Line 186 C++
-
Sorry, I forgot to add that I'm using SFML 2.3.2.
-
How many joysticks/controllers were there connected to the machine?
-
I have no idea, it's an automatic crash report.
What's the best way to compile SFML without joystick support?
-
At the moment, there is no way.
-
The only one thing that you can do is:remove joustick event polling code from SFML source and compile it manualy. :P
-
That was what I thought, if this bug pops out again. Can I safely remove the call to processJoystickEvents()?
-
the SFML license(http://www.sfml-dev.org/license.php) allows that. If you wouldn't claim, that you wrote SMFL yourself ;).
-
I have similar issues, crashes when disconecting the gamepad (xbox360 one).
Looks to be a heap corruption.
I am using the latest stable build of SFML on a Windows 8.1 machine.
The most informative callstack is bellow:
ntdll.dll!RtlpLowFragHeapAllocFromContext() Unknown
ntdll.dll!RtlAllocateHeap() Unknown
cfgmgr32.dll!StringIndirectionDuplicateString() Unknown
cfgmgr32.dll!SpInfLoadInfFile() Unknown
cfgmgr32.dll!LoadIndirectInfString() Unknown
cfgmgr32.dll!StringIndirectionResolveIndirection() Unknown
cfgmgr32.dll!StringIndirectionGetString() Unknown
cfgmgr32.dll!GetRegistryProperty() Unknown
cfgmgr32.dll!Local_CM_Get_DevNode_Registry_Property() Unknown
cfgmgr32.dll!CM_Get_DevNode_Registry_PropertyW() Unknown
dinput.dll!_DIHid_GetDevInfo@12() Unknown
dinput.dll!_DIHid_BuildHidListEntry@8() Unknown
dinput.dll!_DIHid_BuildHidList@4() Unknown
dinput.dll!_hResIdJoypInstanceGUID_WDM@8() Unknown
dinput.dll!_JoyReg_GetConfig@16() Unknown
dinput.dll!_CJoyCfg_GetConfig@16() Unknown
winmmbase.dll!_joyOpen@8() Unknown
winmmbase.dll!_joyGetPosEx@8() Unknown
Test.exe!sf::priv::JoystickImpl::isConnected(unsigned int) Unknown
Test.exe!sf::priv::JoystickManager::update(void) Unknown
Test.exe!sf::priv::WindowImpl::processJoystickEvents(void) Unknown
Test.exe!sf::priv::WindowImpl::popEvent(class sf::Event &,bool) Unknown
Test.exe!sf::Window::pollEvent(class sf::Event &) Unknown
Test.exe!PD_Screen::Update() Line 96 C++
Test.exe!GameManager::Update() Line 330 C++
Test.exe!GameManager::Run() Line 228 C++
Test.exe!Run() Line 37 C++
Test.exe!main() Line 48 C++
[External Code]