Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VLC crashes... maybe due to kernel update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 117

PostPosted: Sun Nov 04, 2018 6:49 pm    Post subject: VLC crashes... maybe due to kernel update Reply with quote

I do not use VLC everyday, so this may not have anything to do with the kerrnel update, but the fact is that two days ago I updated my kernel to the latest version:

Code:

Videos> uname -r
4.14.78-gentoo


Since then VLC simply wont play, crashing imediatelly after launching. This is the output when it is launched from the command line:

Code:

Videos> vlc video.mkv
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
[00005579baff05f0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to authenticate
Segmentation fault
Videos>


This also happens with all other video file extensions that I have tested. This is my make.conf (which has been unchanged for a while, with the latest changes occurring in LINGUAS ans L1ON)

Code:

Videos> cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2"

USE="X policykit dbus consolekit alsa acl udev crypt savedconfig fortran unicode lapack threads symlink hardened gphoto2"



# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

MAKEOPTS="-j5"

LINGUAS="en pt pt_BR zh_CN"
L10N="en pt pt-BR zh zh-CN"


VIDEO_CARDS="intel nouveau"
INPUT_DEVICES="libinput"

SANE_BACKENDS="hpaio"

CAMERAS="ptp2 samsung"

GENTOO_MIRRORS="http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://mirror.bytemark.co.uk/gentoo/"


Here you may see the VLC flags that I am using (those have also been unchanged for a long time):

Code:

Videos> equery uses vlc
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-video/vlc-3.0.4:
 U I
 + + X                    : Enable support for e.g. fullscreen mode via X and the X C-language binding. It does not build a graphical interface
 + + a52                  : Enable support for decoding ATSC A/52 streams used in DVD
 + + alsa                 : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - archive              : Enable support for libarchive stream extractor
 - - aribsub              : Enable support for decoding ARIB STD-B24 subtitles
 - - bidi                 : Enable bidirectional language support
 - - bluray               : Enable libbluray for Blu-ray disc support
 - - cddb                 : Access cddb servers to retrieve and submit information about compact disks
 - - chromaprint          : Enable libchromaprint for Chromaprint based audio fingerprinter support
 - - chromecast           : Enable experimental support for Google Chromecast
 + + cpu_flags_x86_mmx    : Use the MMX instruction set
 + + cpu_flags_x86_sse    : Use the SSE instruction set
 + + dbus                 : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 + + dc1394               : Enable IIDC cameras support
 - - debug                : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 + + dts                  : Enable DTS Coherent Acoustics decoder support
 + + dvbpsi               : Enable support for Mpeg-TS files (.ts, .m2ts, .mts) via media-libs/libdvbpsi
 - - dvd                  : Add support for DVDs
 + + encode               : Enable streaming-output support and videolan manager to control multiple streams from within one instance
 + + faad                 : Enable AAC audio decoding library support via media-libs/faad2
 + + fdk                  : Enable the Fraunhofer AAC codec library
 + + ffmpeg               : Enable ffmpeg/libav-based audio/video codec support
 + + flac                 : Add support for FLAC: Free Lossless Audio Codec
 + + fluidsynth           : Enable Fluidsynth MIDI software synthesis (with external sound fonts)
 + + fontconfig           : Support for configuring and customizing font access via media-libs/fontconfig
 + + gcrypt               : Enable cryptography support via libgcrypt
 + + gme                  : Enable support for media-libs/game-music-emu for playing various video game music formats
 - - gnome-keyring        : Enable support for storing passwords via gnome-keyring
 + + gstreamer            : Enable GStreamer based decoding support (currently supports only video decoding)
 + + ieee1394             : Enable FireWire/iLink IEEE1394 support (dv, camera, ...)
 - - jack                 : Add support for the JACK Audio Connection Kit
 + + jpeg                 : Add JPEG image support
 + + kate                 : Adds support for Ogg Kate subtitles via libkate
 + + libass               : SRT/SSA/ASS (SubRip / SubStation Alpha) subtitle support
 - - libav                : Prefer libav over ffmpeg whenever both are supported
 + + libcaca              : Add support for colored ASCII-art graphics
 - - libnotify            : Enable desktop notification support
 + + libsamplerate        : Build with support for converting sample rates using libsamplerate
 - - libtar               : Uses libtar instead of the built-in tar reader for reading custom skins
 + + libtiger             : Enable Ogg Kate subtitles rendering using libtiger
 + + linsys               : Enable support for Linux Linear Systems Ltd. SDI and HD-SDI input cards
 - - lirc                 : Add support for lirc (Linux's Infra-Red Remote Control)
 + + live                 : Enable live555 streaming media support (client support for rtsp)
 + + lua                  : Enable Lua scripting support, needed for including support for Jamendo (online music platform) and similar things
 - - macosx-notifications : Enable Mac OS X notifications module (formerly growl)
 - - matroska             : Enable matroska support using reference libraries (fallback on other existing matroska support if disabled, i.e., matroska enabled FFmpeg)
 - - modplug              : Add libmodplug support for playing SoundTracker-style music files
 - - mp3                  : Add support for reading mp3 files
 + + mpeg                 : Add libmpeg2 support for mpeg-1 and mpeg-2 video streams
 + + mtp                  : Enable support for Media Transfer Protocol
 + + musepack             : Enable support for the musepack audio codec
 + + ncurses              : Add ncurses support (console display library)
 + + nfs                  : Enable support for nfs protocol via net-fs/libnfs
 - - ogg                  : Add support for the Ogg container format (commonly used by Vorbis, Theora and flac)
 + + omxil                : Enable OpenMAX Integration Layer codec module
 + + opencv               : Enable OpenCV (computer vision) filter module
 + + optimisememory       : Enable optimisation for memory rather than performance
 + + opus                 : Enable Opus audio codec support
 - - png                  : Add support for libpng (PNG images)
 + + postproc             : Enable image post-processing via libpostproc (part of FFmpeg)
 + + projectm             : Enable the projectM visualization plugin
 - - pulseaudio           : Add support for PulseAudio sound server
 + + qt5                  : Add support for the Qt 5 application and UI framework
 - - rdp                  : Enables RDP/Remote Desktop support
 - - run-as-root          : Allows vlc to start for root. Don't enable this unless you have a very specific (e.g. embedded) need for it!
 - - samba                : Add support for SAMBA (Windows File and Printer sharing)
 + + schroedinger         : Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac codec)
 + + sdl-image            : Enable sdl image video decoder (depends on sdl)
 - - sftp                 : Enable libssh2 to support SFTP file transfer
 + + shout                : Enable libshout output
 + + sid                  : Adds support for playing C64 SID files through media-libs/libsidplay:2
 - - skins                : Enable support for the skins2 interface
 - - soxr                 : Enable SoX Resampler support via media-libs/soxr
 + + speex                : Add support for the speex audio codec (used for speech)
 + + ssl                  : Add support for SSL/TLS connections (Secure Socket Layer / Transport Layer Security)
 - - svg                  : Add support for SVG (Scalable Vector Graphics)
 + + taglib               : Enable tagging support with taglib
 - - test                 : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
 + + theora               : Add support for the Theora Video Compression Codec
 - - tremor               : Enable tremor, a fixed-point version of the Ogg Vorbis decoder
 + + truetype             : Add support for FreeType and/or FreeType2 fonts
 + + twolame              : Enable twolame support (MPEG Audio Layer 2 encoder)
 + + udev                 : Enable virtual/udev integration (device discovery, power and storage device support, etc)
 + + upnp                 : Enable support for the Intel SDK stack based UPnP discovery module instead of CyberLink
 - - v4l                  : Enable support for video4linux (using linux-headers or userspace libv4l libraries)
 + + vaapi                : Enable Video Acceleration API for hardware decoding
 - - vdpau                : Enable the Video Decode and Presentation API for Unix acceleration interface
 - - vnc                  : Enable VNC (remote desktop viewer) support
 + + vorbis               : Add support for the OggVorbis audio codec
 + + vpx                  : Enable the decoder(s) from the WebM VP8 / VP9 Codec SDK
 - - wayland              : Enable dev-libs/wayland backend
 + + wma-fixed            : Enable fixed point WMA decoder
 + + x264                 : Enable h264 encoding using x264
 + + x265                 : Support X265 Encoder
 + + xml                  : Add support for XML files
 - - zeroconf             : Enable support for zero-configuration networking via avahi
 + + zvbi                 : Enable support for teletext subtitles via the zvbi library


Again, since I do not use VLC everyday I am not sure the new kernel is the culprit. Thank you all.
Back to top
View user's profile Send private message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 117

PostPosted: Wed Nov 07, 2018 2:32 am    Post subject: Reply with quote

I believe I can rule it out that the new kernel would be the culprit: I was finally able to reboot my machine using the earlier stable kernel (4.14.65) instead of the new one (4.14.78) and the problem persists. I also downgraded vlc, from the current version 3.0.4 into the older 3.0.3-r1, and the problem still persists. Also, I have another computer running gentoo where I may run vlc-3.0.4 without issues, which rules out vlc itself from the list of culprits. In this other computer I haven't performed the latest updates (usually I update my machines twice a week), so I am starting to suspect that the culprit is some dependency of vlc that is updated in the latest updates, possibly mesa since the library mentioned just before crashing (ibEGL) is provided by mesa. In this other computer the list of updates that are being offered by portage:

Code:

Vídeos> sudo emerge --ask --update --deep --newuse --with-bdeps=y --changed-use @world
Password:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] x11-misc/util-macros-1.19.2-r1 [1.19.2]
[ebuild     U  ] x11-misc/xbitmaps-1.1.2-r1 [1.1.2]
[ebuild     U  ] sys-process/lsof-4.91 [4.89]
[ebuild     U  ] dev-util/meson-0.47.1 [0.46.1]
[ebuild     U  ] x11-libs/libdrm-2.4.96 [2.4.93]
[ebuild     U  ] virtual/logger-0-r1 [0]
[ebuild     U  ] x11-libs/libX11-1.6.7 [1.6.6]
[ebuild     U  ] x11-libs/libSM-1.2.3 [1.2.2-r2]
[ebuild     U  ] media-fonts/encodings-1.0.4-r3 [1.0.4-r1] USE="(-X)"
[ebuild     U  ] x11-misc/xkeyboard-config-2.25 [2.23.1-r1]
[ebuild     U  ] dev-libs/rasqal-0.9.33 [0.9.32]
[ebuild     U  ] sys-fs/mdadm-4.1 [3.4]
[ebuild     U  ] media-libs/imlib2-1.5.1-r1 [1.5.1] USE="shm%* -doc%"
[ebuild     U  ] media-libs/mesa-18.2.4 [18.1.9] USE="-lm_sensors% -test%"
[ebuild     U  ] media-libs/libepoxy-1.5.3 [1.5.1]
[ebuild     U  ] dev-python/pycairo-1.17.0-r1 [1.16.3-r1] PYTHON_TARGETS="(-python3_7)"
[ebuild   R    ] x11-base/xorg-server-1.20.3  USE="suid%*"
[ebuild   R    ] media-video/vlc-3.0.4  USE="(-schroedinger*)"
[ebuild     U  ] www-client/firefox-60.3.0-r1 [60.3.0]
[ebuild     U  ] sys-apps/portage-2.3.51 [2.3.49]

Would you like to merge these packages? [Yes/No]


and checking for the vlc dependencies there are other possible culprits besides mesa: libdrm, libX11 and xorg-server. There is a kind of a bug with the new version of xorg-server (1.20) regarding regular users permissions, that makes it impossible to load xserver without adding per package the USE flag SUID, but I already fixed this in my machine (the one where I cant run vlc) and the problem still persists. Anyway, now I suspect the list of culprits to be:

Code:

x11-libs/libdrm-2.4.96
x11-libs/libX11-1.6.7
media-libs/mesa-18.2.4
x11-base/xorg-server-1.20.3


with mesa and libdrm as strongest candidates due to the error message "libEGL warning: DRI2: failed to authenticate" just before the crash.

Thank you all again.
Back to top
View user's profile Send private message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 117

PostPosted: Mon Nov 12, 2018 2:02 am    Post subject: Reply with quote

I just filed a bug containing also the backtrace for the crash, it is in this link.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19901
Location: here

PostPosted: Mon Nov 12, 2018 6:50 am    Post subject: Reply with quote

vcmota wrote:
I just filed a bug containing also the backtrace for the crash, it is in this link.

It's possible that you have missing to run 'bt' after program crash in gdb?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6578
Location: Austria

PostPosted: Mon Nov 12, 2018 7:12 am    Post subject: Reply with quote

Try with removing local vlc config/cache dir.

May also be related to xorg-server +-suid setting and resulting auth issues? How do you start your session?
Code:
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to authenticate

_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 117

PostPosted: Mon Nov 12, 2018 1:22 pm    Post subject: Reply with quote

fedeliallalinea wrote:
vcmota wrote:
I just filed a bug containing also the backtrace for the crash, it is in this link.

It's possible that you have missing to run 'bt' after program crash in gdb?


Thank you fedeliallalinea for your reply. Yes, it was missing that. Now that is what I did, in this same order:

Code:

Videos> gdb /usr/bin/vlc
GNU gdb (Gentoo 8.1 p1) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/vlc...done.
(gdb) set logging file vlcbacktrace.log
(gdb) set logging on
(gdb)run
[...]
Thread 27 "vlc" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff957c1700 (LWP 3678)]
0x0000000000000000 in ?? ()
(gdb) thread apply all bt full
[...]
        set = {__val = {16391, 0 <repeats 15 times>}}
        self = 140737353922368
        argv = 0x7fffffffdd00
        argc = <optimized out>
        vlc = 0x55555575a810
        ret = 1
        signum = 32767
(gdb)bt
(gdb)set logging off
(gdb) quit
Videos>


Now I have the correct backtrace, I guess, and I just put it in the bug link
Back to top
View user's profile Send private message
vcmota
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jun 2017
Posts: 117

PostPosted: Mon Nov 12, 2018 1:50 pm    Post subject: Reply with quote

Thank you asturm for your reply.

asturm wrote:
Try with removing local vlc config/cache dir.


I did, but the issue persists.

asturm wrote:

May also be related to xorg-server +-suid setting and resulting auth issues? How do you start your session?
Code:
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to authenticate


As I understand my session starts the simplest way. My .bash_profile call xinit:

Code:

~> cat .bash_profile
# /etc/skel/.bash_profile

# This file is sourced by bash for login shells.  The following line
# runs your .bashrc and is recommended by the bash info pages.
if [[ -f ~/.bashrc ]] ; then
        . ~/.bashrc
fi


xinit
~>


After that .xinitrc contains:

Code:

~> cat .xinitrc
#!/bin/bash

barM &
setxkbmap br
feh --bg-scale /home/vinicius/mybackground/bw.jpg &


exec ck-launch-session dbus-launch --sh-syntax --exit-with-session dwm
~>

and I guess that is it. Indeed I had an issue with the SUID USE flag in xorg-server, I could not start my session, but after adding this SUID flag to package.use/xorg-server and reemerge it was worked out:
Code:

~> cat /etc/portage/package.use/xorg-server
x11-base/xorg-server suid
~>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum