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

Crash on playback of WAV file on Windows 7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0 RC
    • 5.5.1
    • Multimedia
    • None
    • 9f35d7763e50676eb8521eaaf4542eaf6851c769

    Description

      If you try to playback the attached file 'buggy_nosound.wav' with the attached example program, there will be a crash in the memcpy call in qsoundeffect_qaudio_p.cpp:395. Looks like something goes wrong with calculating offsets or remaining sound data. The WAV file itself looks sane, no problem with playback on Linux or other media players on Windows.

      The full backtrace is:
      0 memcpy MSVCR100D 0x551aca24
      1 PrivateSoundSource::readData qsoundeffect_qaudio_p.cpp 395 0x55e29a7d
      2 QIODevice::read qiodevice.cpp 850 0x5554f617
      3 QWindowsAudioOutput::deviceReady qwindowsaudiooutput.cpp 508 0x5474c010
      4 QWindowsAudioOutput::qt_static_metacall moc_qwindowsaudiooutput.cpp 73 0x5474c598
      5 QMetaCallEvent::placeMetaCall qobject.cpp 486 0x556918ed
      6 QObject::event qobject.cpp 1240 0x556927aa
      7 QCoreApplicationPrivate::notify_helper qcoreapplication.cpp 1094 0x5564f58e
      8 QCoreApplication::notify qcoreapplication.cpp 1038 0x5564f343
      9 QCoreApplication::notifyInternal qcoreapplication.cpp 965 0x5564f294
      10 QCoreApplication::sendEvent qcoreapplication.h 224 0x55654729
      11 QCoreApplicationPrivate::sendPostedEvents qcoreapplication.cpp 1593 0x55650136
      12 QEventDispatcherWin32::sendPostedEvents qeventdispatcher_win.cpp 1241 0x556e2ac4
      13 qt_internal_proc qeventdispatcher_win.cpp 416 0x556e0482
      14 gapfnScSendMessage USER32 0x772662fa
      15 GetThreadDesktop USER32 0x77266d3a
      16 CharPrevW USER32 0x772677c4
      17 DispatchMessageW USER32 0x7726788a
      18 QEventDispatcherWin32::processEvents qeventdispatcher_win.cpp 818 0x556e1775
      19 QEventLoop::processEvents qeventloop.cpp 129 0x5564bcac
      ... <Mehr>

      Attachments

        1. buggy_nosound.wav
          0.1 kB
        2. main.cpp
          0.3 kB
        3. main.qrc
          0.1 kB
        4. soundtest.pro
          0.1 kB

        Activity

          People

            ylopes Yoann Lopes
            tokoe.kdab Tobias Koenig
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: