Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [ SOLVED ] WMF QtMultimedia backend crashing when the application is idle for a long time

[ SOLVED ] WMF QtMultimedia backend crashing when the application is idle for a long time

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Radostina
    wrote on last edited by Radostina
    #1

    The application is using QMediaPlayer to play some audio files - wav, mp3 mainly. The scenario for reproducing the Windows Media Foundation (WMF) crash is the following:

    1. start the application
    2. leave it for 2 hours to be idle
    3. play the given audio file

    The file gets played but the application crashes when it reaches the execution of the MFCreateAudioRenderer function. Here is the actual call stack. As you could see above the callstack area the thread is not the main one so presumably it could be some multithreading issue. The used environment is:

    1. Windows 7 32/64 bit. (very important). Not reproduced in Windows 8.1 64-bit. Not tested on Windows 8 32/64 bit.
    2. Qt 5.3.2 MSVC 12 (MSVS 2013) OpenGL 32-bit.
    3. The crash happens both in release and debug.

    Has anyone had the same problem with the WMF (plugins/mediaservice/wmfengine.dll) backend for Qt and how could I programmatically use the other two backends - the qt one and the DirectSound one (dsengine.dll)?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Radostina
      wrote on last edited by
      #2

      A way to workaround this problem is to create new QMediaPlayer right before you use it.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved