Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61101

Crash in xinputgamepad on exit program

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.8.0
    • GamePad
    • None

    Description

      Calling QGamepadManager instance gives two warning messages

      auto* manager = QGamepadManager::instance();

       

      qt warn: Failed to load XInput library xinput1_3.dll (qxinputgamepadbackend.cpp:277, bool __cdecl QXInputGamepadBackend::start(void))

      qt warn: Failed to start gamepad backend (qgamepadmanager.cpp:66, __cdecl QGamepadManager::QGamepadManager(void))

       

      And on program exit there's a crash in xinputgamepad. No other gamepad related code is called.

      This is on a fresh and updated Windows 7 64-bit install.

      Callstack on crash:

      xinputgamepadd!QAtomicOpsBySize<4>::fetchAndStoreRelaxed<int>+0x28 xinputgamepadd!QGenericAtomicOps<QAtomicOpsBySize<4> >::fetchAndStoreAcquire<int,int>+0x1b xinputgamepadd!QBasicAtomicInteger<int>::fetchAndStoreAcquire+0x1e xinputgamepadd!QXInputThread::signalQuit+0x1f xinputgamepadd!QXInputGamepadBackend::stop+0x96 Qt5Gamepadd!QGamepadKeyNavigation::gamepadChanged+0x1db8 Qt5Gamepadd!QGamepadKeyNavigation::gamepadChanged+0x1b8a5 ucrtbased!<lambda_e971338317bfa523bb8920b43d823727>::operator()+0x117 ucrtbased!_crt_seh_guarded_call<int>::operator()<<lambda_d22e02de4d14401f49897516b29a2b7c>,<lambda_e971338317bfa523bb8920b43d823727> & __ptr64,<lambda_b0b8599c9027f5b14541fbbd6863d1f1> >+0x35 ucrtbased!_acrt_lock_and_call<<lambda_e971338317bfa523bb8920b43d823727> >+0x5c ucrtbased!_execute_onexit_table+0x25 Qt5Gamepadd!QGamepadKeyNavigation::gamepadChanged+0x1568e Qt5Gamepadd!QGamepadKeyNavigation::gamepadChanged+0x16639 Qt5Gamepadd!QGamepadKeyNavigation::gamepadChanged+0x1640c Qt5Gamepadd!QGamepadKeyNavigation::gamepadChanged+0x167c3 Qt5Gamepadd!QGamepadKeyNavigation::gamepadChanged+0x16936 ntdll!LdrShutdownProcess+0x1db

      Attachments

        For Gerrit Dashboard: QTBUG-61101
        # Subject Branch Project Status CR V

        Activity

          People

            lagocs Laszlo Agocs
            mikag Mikael Ågerud
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change