SIGSEGV on gst_element_set_state when trying to run any of QMediaPlayer examples - Ubuntu 20.10
-
Hi and welcome to devnet,
Did you try to build your application with the distribution provided Qt ?
-
@SGaist said in SIGSEGV on gst_element_set_state when trying to run any of QMediaPlayer examples - Ubuntu 20.10:
y to build your application with the distribution provided Qt
Hello, not sure if I understood correctly, but I didn't build the Qt from source, my Qt is installed using Qt Maintenance Tool for Linux. Would you advise to build the necessary Qt libraries from source to try to solve this problem?
-
Not at all, my suggestion is to use your distribution's package manager to install the development packages for Qt as they provide it.
-
Can you test if you can play that media file directly with GStreamer ?
-
Just to be sure everything is done correctly, does the player get the full path the file ? It should not trigger a segfault though.
-
Just to be sure everything is done correctly, does the player get the full path the file ? It should not trigger a segfault though.
does the player get the full path the file
The SIGSEGV happens on this line:
m_mediaPlayer = new QMediaPlayer(this, QMediaPlayer::VideoSurface);. So, I cannot call the constructor of the class.
I feel like it may be a problem with Qt not finding the GStream library path correctly, or something within those lines. Unfortunately, I do not have much understanding beyond that. -
Which packages of GStreamer did you install ?
Do you also have that in a dummy project with just the video player ?