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. System crash with QMediaPlayer and gstreamer
Qt 6.11 is out! See what's new in the release blog

System crash with QMediaPlayer and gstreamer

Scheduled Pinned Locked Moved General and Desktop
3 Posts 1 Posters 3.1k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    oVooVo
    wrote on last edited by
    #1

    Hi,

    I am currently writing an application with build in audio player.

    When I setup QMediaPlayer, I get (always) the following error:

    Cannot connect to server socket err = No such file or directory
    Cannot connect to server request channel
    jack server is not running or cannot be started

    There are some google results about that, but I did not find any solution to fix it.
    Please note that I do not use jack.

    So far I can live with that error message, but there is a much worse problem:
    Most of the time, the application works fine and does the expected. But sporadically, the application freezes. That is, the whole system freezes. I can turn the mouse around (with a poor frame rate) but I cannot click on anything or interact with any other program. Even switching to a text terminal with <Ctrl><Alt><F1> does not work.
    So I guess an issue with a driver or kernel module.

    I tried mp3 and vorbis, with debugger or without, debug and release mode. Always the same.
    There is no additional warning, error etc.
    The error also occurs when starting the application from console (an executable that ran just before without any problems).

    System:
    Linux t420s 3.16-3-amd64 #1 SMP Debian 3.16.5-1 (2014-10-10) x86_64 GNU/Linux

    Qt 5.1.1, C++11

    qmake:
    qmake .../CAN.pro -r -spec linux-g++-64 CONFIG+=debug

    The part of code causing the issue:
    @
    QMediaPlayer* _player = 0;
    _player = new QMediaPlayer(this);

    ...
    
    QFile tmpFile&#40;filename&#41;;
    tmpFile.open(QIODevice::ReadWrite&#41;;
    tmpFile.write(_mediaFile&#41;;
    
    _player->setMedia(QUrl::fromLocalFile(filename&#41;&#41;;    // <-- this line causes the freezing
    

    @

    The last system update/upgrade was today.

    I appreciate any help. Thanks!

    btw, the whole project is publicly hosted on github:
    https://github.com/oVooVo/CAN

    1 Reply Last reply
    0
    • O Offline
      O Offline
      oVooVo
      wrote on last edited by
      #2

      Hm, no one?

      Maybe a bug in QMediaPlayer / gstreamer / ... ?
      Can you recommend submitting bug reports without exactly knowing what causes it?

      Can you recommend me an other library to play either vorbis or mp3 (or both)? Preferably with seamless Qt integration :D

      1 Reply Last reply
      0
      • O Offline
        O Offline
        oVooVo
        wrote on last edited by
        #3

        Hey there,

        Since I did not expect my question to be answered here, I posted the same question on stackoverflow.

        http://stackoverflow.com/questions/26913231/system-crash-with-qmediaplayer-and-gstreamer

        Sorry for multiposting. I guess this thread should be closed?

        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