Problems with Open-Source Downloads read and

QMediaPlayer issue(audio not playing after some time)

  • I have a problem with sound in my application, in which I use QMediaplayer. I cannot reproduse the issue when I'm running the app from pycharm, but when I'm running it as normal application from command line after some time(10-15mins or more) the sound stops and never plays again. And 2-3 times I had a complet freeze. After a freeze I get an error about /usr/lib/x86_64-linux-gnu/gstreamer-1.0/ cannot open shared object file:: to many open files.
    And the last time when sound stopped i get this error:
    (python3:22875): GStreamer-CRITICAL **: 17:18:23.046: gst_poll_wait: assertion 'set != NULL' failed
    I have some small(3-4secs) waf files which activated by click of button or when timer finishes. Here is the code I use for sound play:

        def playSound(self,sound):
            player = QtMultimedia.QMediaPlayer(self)

    And I use this method in some places to load the files like this:


    Any ideas why this happens, and hopefully a way to fix this?

Log in to reply