LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14.2 - Exmplayer - segmentation fault (https://www.linuxquestions.org/questions/slackware-14/slackware-14-2-exmplayer-segmentation-fault-4175592242/)

glupa4e 10-26-2016 12:02 AM

Slackware 14.2 - Exmplayer - segmentation fault
 
Hello there,

yesterday i decided to try out the extended version of MPlayer. When i started it, i got the following error:
Code:

bash-4.3$ exmplayer &
[1] 28491
bash-4.3$ Debug: Checking for MPlayer binary...
Debug: Starting mplayer process...
Warning: QMetaObject::connectSlotsByName: No matching signal for on_sliderSeekFullSc_actionTriggered(int)
Debug: "/tmp"
Debug: Config path : "/home/user/.config/exmplayer"
Debug: Checking for user short cut bindings... false
Debug: Loading shortcut file : "/etc/exmplayer/sc_default.xml"
Debug: Checking for deault short cut bindings... true
Debug: KDE detected
Debug: playerHeight :0
Debug: playerHeight :0
Debug: playerHeight :0
Debug: w_width: 600, w_height: 413
Debug: w: 600, h: 413

Does anybody have an idea what could that be?

business_kid 10-26-2016 08:48 AM

It's apparently compiled with debug enabled, so you get a lot of noise and log spam. There is not a fatal error in your snippet. grep the log for "error:" and try and find where it notes the segfault. Look out for a patch fixing the code wherever you downloaded exmplayer.

glupa4e 10-28-2016 12:04 AM

Hello business_kid,

i got the exmplayer from the SlackBuilds repository. Do you know in which log should i search? I am sorry i could not understand where to look for.

business_kid 10-29-2016 01:49 AM

/var/log/messages or anything specific time mplayer. Mplayer has plenty of text output so
Code:

employer >startup.log 2>&1
will trap that.

glupa4e 10-29-2016 01:05 PM

Quote:

Originally Posted by business_kid (Post 5624392)
/var/log/messages or anything specific time mplayer. Mplayer has plenty of text output so
Code:

employer >startup.log 2>&1
will trap that.

gives simply segmentation fault
but
/var/log/messages
Code:

Oct 29 20:01:55 localhost kernel: [221945.236269] exmplayer[2730]: segfault at 0 ip 00007fcaa08be6ef sp 00007ffe29105b30 error 6 in libQtCore.so.4.8.7[7fcaa07e7000+2eb000]

business_kid 10-30-2016 02:37 AM

That would seem to be the binary. A mistake in the code, a doubtful library. Does a normal version of mplayer run ok?

glupa4e 10-31-2016 02:59 AM

yes that normal version of mplayer is working ok. I have no video but only audio. I am getting no errors when starting it.

business_kid 10-31-2016 05:17 AM

You should have audio & video. Can you get video?

I'd view that exmplayer binary as the issue then. Go for a replacement. Otherwise, whatever is stopping the video from playing in a video player is the problem. Go figure.

glupa4e 11-01-2016 03:01 AM

Well in Mplayer i cannot get any video. I have tried .avi and .mp4. The same videos can be played in Kaffeine with video. In Mplayer i get only audio. Where is the log file to look at?

bassmadrigal 11-01-2016 07:11 AM

Run mplayer /path/to/video-file.avi from the command line to see the output.

glupa4e 11-01-2016 03:29 PM

mplayer /path/to/video-file.avi
 
Code:

Playing /path/to/video-file.avi.
libavformat version 56.40.101 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [DX50]  640x272  24bpp  25.000 fps  754.5 kbps (92.1 kbyte/s)
Load subtitles in /path/to/subtitles
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (internal)
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x272 => 640x272 Planar YV12
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO: [xv] 640x272 => 640x272 Planar YV12
A:  0.1 V:  0.0 A-V:  0.083 ct:  0.000  2/  2 ??% ??% ??,?% 1 0
[VD_FFMPEG] DRI failure.
A:  40.8 V:  40.8 A-V:  0.011 ct: -0.025 1020/1020  1%  0%  0.3% 1

I am able to see the video right now, i can hear also sound. i have no controls for stop, pause, etc.

astrogeek 11-01-2016 03:54 PM

This is confusing...

Quote:

Originally Posted by glupa4e (Post 5625522)
Well in Mplayer i cannot get any video. I have tried .avi and .mp4. The same videos can be played in Kaffeine with video. In Mplayer i get only audio. Where is the log file to look at?

How are you starting mplayer in this case?

But then....

Quote:

Originally Posted by glupa4e (Post 5625817)
I am able to see the video right now, i can hear also sound. i have no controls for stop, pause, etc.

That tells you that mplayer itself is OK and the problem is almost certainly in exmplayer binary as suggested by bassmadrigal.

Mplayer itself does not have GUI controls, it uses keyboard events instead. You can see what those are in the mplayer manual page, man mplayer and scroll to the section, INTERACTIVE CONTROL.

bassmadrigal 11-01-2016 04:59 PM

So, when you say that mplayer is providing you audio, but no video, how are you opening the file up? Are you just double-clicking a file in a folder, right-clicking on a file and selecting mplayer (which I can't remember if that's even an option), or some other method? Based on your output, it seems like mplayer itself is working fine, but somehow, with the way you're interacting with it (possibly through a 3rd-party program), it is causing you issues.

Also, based on your first post, it seems like exmplayer opened up fine, but in a later post, it segfaults? Does it only segfault now? Can you post the output of running exmplayer on the command line (don't use the ampersand "&" at the end of it)? I haven't used it before, but I imagine it works with both just running exmplayer or exmplayer /path/to/file.avi

If you're not set on using exmplayer, I can highly recommend smplayer, which is a GUI frontend for mplayer. It is a relatively simple interface, but still has a lot of power behind it. I've been using it for a long time and use it on both Linux and Windows.

orbea 11-02-2016 09:19 AM

Seriously no mention of gdb? Trying to diagnose a segfault without a backtrace is kind of silly. Rebuild exmplayer with debugging symbols, run it in gdb and then type 'bt full' when it crashes.

Additionally lines like this indicate its not a full install and I wonder if any important libraries are also missing?

Code:

Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory

bassmadrigal 11-02-2016 12:19 PM

Quote:

Originally Posted by orbea (Post 5626114)
Seriously no mention of gdb? Trying to diagnose a segfault without a backtrace is kind of silly. Rebuild exmplayer with debugging symbols, run it in gdb and then type 'bt full' when it crashes.

I was waiting on more clarification on what was happening and when before I would suggest diving into debugging.

Quote:

Originally Posted by orbea (Post 5626114)
Additionally lines like this indicate its not a full install and I wonder if any important libraries are also missing?

Code:

Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory

libvdpau_va_gl is not part of the stock install. It is something that needs to be installed separately (it's available on SBo).


All times are GMT -5. The time now is 08:54 PM.