vlc directfb doesn't work

Bug #1527908 reported by Sabuj Pattanayek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vlc (Ubuntu)
Fix Released
Undecided
Sabuj Pattanayek

Bug Description

I upgraded to Vivid and vlc video output stopped working, mplayer works fine though. First I got this error :

% vlc test.mp4
VLC media player 2.2.0 Weatherwax (revision 2.2.0-0-g1349ef2)
[0000000001db6348] core interface error: no suitable interface module
[0000000001cde118] core libvlc error: interface "globalhotkeys,none" initialization failed
[0000000001cde118] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000000001cf52c8] [cli] lua interface: Listening on host "*console".
VLC media player 2.2.0 Weatherwax
Command Line Interface initialized. Type `help' for help.
> commandline read: vlc
commandline read: test.mp4

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008 The world wide DirectFB Open Source Community
        (c) 2000-2004 Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-24 12:33)
(*) Direct/Memcpy: Using libc memcpy()
(!) DirectFB/core/vt: Error opening `/dev/tty0'!
    --> Permission denied
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
[00007fc908007ba8] directfb vout display error: Cannot create primary surface
[00007fc908007ba8] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)
[00007fc91c0176d8] core video output error: video output creation failed
[00007fc9270e2898] core decoder error: failed to create video output
^C[0000000001cf52c8] [cli] lua interface error: Error loading script /usr/lib/vlc/lua/intf/cli.luac: lua/intf/modules/host.lua:279: Interrupted.

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008 The world wide DirectFB Open Source Community
        (c) 2000-2004 Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-24 12:33)
(*) Direct/Memcpy: Using libc memcpy()
(!) DirectFB/core/vt: Error opening `/dev/tty0'!
    --> Permission denied
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
[00007fc9340258d8] directfb vout display error: Cannot create primary surface
[00007fc9340258d8] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)
[00007fc908006f98] core video output error: video output creation failed
[00007fc9270e2898] core decoder error: failed to create video output

Permissions on /dev/tty0 at the time were :

% ls -l /dev/tty0
crw--w---- 1 root tty 4, 0 Dec 12 11:01 /dev/tty0

I put myself in the tty group, verified using id/groups that I was in the tty group, re-launched still same error. Then I sudo chmod 660 /dev/tty0 and I got this error :

% vlc test.mp4
VLC media player 2.2.0 Weatherwax (revision 2.2.0-0-g1349ef2)
[00000000013470c8] core interface error: no suitable interface module
[000000000131c118] core libvlc error: interface "globalhotkeys,none" initialization failed
[000000000131c118] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00000000013341f8] [cli] lua interface: Listening on host "*console".
VLC media player 2.2.0 Weatherwax
Command Line Interface initialized. Type `help' for help.
> commandline read: vlc
commandline read: test.mp4

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008 The world wide DirectFB Open Source Community
        (c) 2000-2004 Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-24 12:33)
(*) Direct/Memcpy: Using libc memcpy()
(!) DirectFB/core/vt: Error opening `/dev/tty7'!
    --> Permission denied
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Access denied!
[00007f4cc0001268] directfb vout display error: Cannot create primary surface
[00007f4cc0001268] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)
[00007f4cd4016f78] core video output error: video output creation failed
[00007f4cef0e2668] core decoder error: failed to create video output
^C[00000000013341f8] [cli] lua interface error: Error loading script /usr/lib/vlc/lua/intf/cli.luac: lua/intf/modules/host.lua:279: Interrupted.

Then I just sudo chmod 660 /dev/tty*, but then I got this error :

% vlc test.mp4
VLC media player 2.2.0 Weatherwax (revision 2.2.0-0-g1349ef2)
[0000000001aac0c8] core interface error: no suitable interface module
[0000000001a81118] core libvlc error: interface "globalhotkeys,none" initialization failed
[0000000001a81118] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000000001a991f8] [cli] lua interface: Listening on host "*console".
VLC media player 2.2.0 Weatherwax
Command Line Interface initialized. Type `help' for help.
> commandline read: vlc
commandline read: test.mp4

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008 The world wide DirectFB Open Source Community
        (c) 2000-2004 Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-24 12:33)
(*) Direct/Memcpy: Using libc memcpy()
(!) DirectFB/fbdev/vt: KD_GRAPHICS failed!
    --> Operation not permitted
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
[00007fa918001268] directfb vout display error: Cannot create primary surface
[00007fa918001268] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)
[00007fa924016f78] core video output error: video output creation failed
[00007fa9430e2898] core decoder error: failed to create video output
^C[0000000001a991f8] [cli] lua interface error: Error loading script /usr/lib/vlc/lua/intf/cli.luac: lua/intf/modules/host.lua:279: Interrupted.

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008 The world wide DirectFB Open Source Community
        (c) 2000-2004 Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-24 12:33)
(*) Direct/Memcpy: Using libc memcpy()
(!) DirectFB/fbdev/vt: KD_GRAPHICS failed!
    --> Operation not permitted
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
[00007fa92c025ab8] directfb vout display error: Cannot create primary surface
[00007fa92c025ab8] fb vout display error: cannot get terminal mode (Inappropriate ioctl for device)
[00007fa918000958] core video output error: video output creation failed
[00007fa9430e2898] core decoder error: failed to create video output

I checked the perms on /dev/fb0 , looks ok :

% ls -l /dev/fb0
crw-rw---- 1 root video 29, 0 Dec 12 11:01 /dev/fb0

and i'm in video, complete list of my groups :

uid=58512(sabuj) gid=1000(sabuj) groups=1000(sabuj),4(adm),5(tty),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),29(audio),30(dip),44(video),46(plugdev),104(fuse),105(lpadmin),112(netdev),119(admin),122(sambashare),127(vboxusers),135(libvirtd),10005(sbio),10006(jupiter)

Again mplayer works fine, more info :

Description: Ubuntu 15.04
Release: 15.04

% lsmod
Module Size Used by
rfcomm 69632 8
bnep 20480 2
xt_CHECKSUM 16384 2
iptable_mangle 16384 1
ipt_MASQUERADE 16384 6
nf_nat_masquerade_ipv4 16384 1 ipt_MASQUERADE
iptable_nat 16384 1
nf_nat_ipv4 16384 1 iptable_nat
nf_nat 28672 2 nf_nat_ipv4,nf_nat_masquerade_ipv4
nf_conntrack_ipv4 16384 3
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
xt_conntrack 16384 2
nf_conntrack 106496 5 nf_nat,nf_nat_ipv4,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4
ipt_REJECT 16384 4
nf_reject_ipv4 16384 1 ipt_REJECT
xt_tcpudp 16384 12
bridge 110592 0
stp 16384 1 bridge
llc 16384 2 stp,bridge
ebtable_filter 16384 0
ebtables 36864 1 ebtable_filter
ip6table_filter 16384 0
ip6_tables 28672 1 ip6table_filter
iptable_filter 16384 1
ip_tables 28672 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 36864 11 ip6table_filter,xt_CHECKSUM,ip_tables,xt_tcpudp,ipt_MASQUERADE,xt_conntrack,iptable_filter,ebtables,ipt_REJECT,iptable_mangle,ip6_tables
ctr 16384 1
ccm 20480 1
nls_utf8 16384 2
isofs 40960 2
pci_stub 16384 1
vboxpci 24576 0
vboxnetadp 28672 0
vboxnetflt 28672 0
binfmt_misc 20480 1
vboxdrv 421888 3 vboxnetadp,vboxnetflt,vboxpci
dell_wmi 16384 0
sparse_keymap 16384 1 dell_wmi
arc4 16384 2
dell_laptop 16384 0
dcdbas 16384 1 dell_laptop
uvcvideo 90112 0
videobuf2_vmalloc 16384 1 uvcvideo
i8k 16384 0
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_core 49152 1 uvcvideo
v4l2_common 16384 1 videobuf2_core
videodev 159744 3 uvcvideo,v4l2_common,videobuf2_core
media 24576 2 uvcvideo,videodev
dm_multipath 24576 0
scsi_dh 16384 1 dm_multipath
snd_hda_codec_hdmi 53248 1
kvm_intel 151552 0
snd_hda_codec_idt 65536 1
snd_hda_codec_generic 69632 1 snd_hda_codec_idt
kvm 483328 1 kvm_intel
snd_hda_intel 32768 2
btusb 32768 0
snd_hda_controller 32768 1 snd_hda_intel
bluetooth 491520 22 bnep,btusb,rfcomm
snd_hda_codec 143360 5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 20480 1 snd_hda_codec
snd_pcm_oss 53248 0
joydev 20480 0
snd_mixer_oss 24576 1 snd_pcm_oss
snd_pcm 106496 5 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
wl 6369280 0
iwlmvm 278528 0
serio_raw 16384 0
snd_seq_midi 16384 0
mac80211 720896 1 iwlmvm
snd_seq_midi_event 16384 1 snd_seq_midi
snd_rawmidi 32768 1 snd_seq_midi
snd_seq 69632 2 snd_seq_midi_event,snd_seq_midi
intel_ips 20480 0
snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 32768 2 snd_pcm,snd_seq
iwlwifi 196608 1 iwlmvm
cfg80211 540672 4 wl,iwlwifi,mac80211,iwlmvm
lpc_ich 24576 0
snd 90112 17 snd_pcm_oss,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_mixer_oss
soundcore 16384 2 snd,snd_hda_codec
shpchp 40960 0
dell_smo8800 16384 0
mei_me 20480 0
mei 90112 1 mei_me
mac_hid 16384 0
nfsd 294912 13
auth_rpcgss 61440 1 nfsd
coretemp 16384 0
nfs_acl 16384 1 nfsd
lockd 94208 1 nfsd
grace 16384 2 nfsd,lockd
parport_pc 32768 0
sunrpc 327680 18 nfsd,auth_rpcgss,lockd,nfs_acl
ppdev 20480 0
lp 20480 0
parport 45056 3 lp,ppdev,parport_pc
autofs4 40960 4
i915 1052672 8
psmouse 118784 0
i2c_algo_bit 16384 1 i915
drm_kms_helper 122880 1 i915
r8169 81920 0
drm 344064 5 i915,drm_kms_helper
ahci 36864 3
libahci 32768 1 ahci
mii 16384 1 r8169
wmi 20480 1 dell_wmi
video 20480 1 i915

% lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 06)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
12:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
13:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation 1st Generation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation 1st Generation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation 1st Generation Core Processor Reserved (rev 02)

Revision history for this message
Sabuj Pattanayek (sabujp) wrote :
Download full text (4.6 KiB)

here's the relevant portion of the strace, it looks like it's trying some ioctl on /dev/tty7 and failing even though it has perms :

[pid 16645] write(2, "(*) Direct/Memcpy: Using libc me"..., 39(*) Direct/Memcpy: Using libc memcpy()
) = 39
[pid 16645] madvise(0x7f95d402a000, 892928, MADV_DONTNEED) = 0
[pid 16645] open("/dev/fb0", O_RDWR) = 4
[pid 16644] <... poll resumed> ) = 0 (Timeout)
[pid 16645] fcntl(4, F_SETFD, FD_CLOEXEC) = 0
[pid 16644] write(14, "W", 1 <unfinished ...>
[pid 16645] setsid( <unfinished ...>
[pid 16644] <... write resumed> ) = 1
[pid 16645] <... setsid resumed> ) = 16630
[pid 16644] write(14, "W", 1 <unfinished ...>
[pid 16645] open("/dev/tty0", O_RDONLY|O_NOCTTY <unfinished ...>
[pid 16644] <... write resumed> ) = 1
[pid 16645] <... open resumed> ) = 12
[pid 16644] write(14, "W", 1 <unfinished ...>
[pid 16645] ioctl(12, VT_GETSTATE <unfinished ...>
[pid 16644] <... write resumed> ) = 1
[pid 16645] <... ioctl resumed> , 0x7f95cdbd5690) = 0
[pid 16644] read(13, <unfinished ...>
[pid 16645] ioctl(4, FBIOGET_CON2FBMAP <unfinished ...>
[pid 16644] <... read resumed> "WWW", 10) = 3
[pid 16645] <... ioctl resumed> , 0x7f95cdbd5670) = 0
[pid 16644] sendto(17, "\0\0\0\30\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0L\0\0\0\16L\0\0\0\22L\0"..., 44, MSG_NOSIGNAL, NULL, 0 <unfinished ...>
[pid 16645] fstat(4, <unfinished ...>
[pid 16644] <... sendto resumed> ) = 44
[pid 16645] <... fstat resumed> {st_mode=S_IFCHR|0660, st_rdev=makedev(29, 0), ...}) = 0
[pid 16644] read(13, <unfinished ...>
[pid 16645] ioctl(4, FBIOPUT_CON2FBMAP <unfinished ...>
[pid 16644] <... read resumed> 0x7f95cd6bce00, 10) = -1 EAGAIN (Resource temporarily unavailable)
[pid 16645] <... ioctl resumed> , 0x7f95cdbd55c0) = 0
[pid 16645] open("/dev/tty7", O_RDWR|O_NOCTTY) = 15
[pid 16644] poll([{fd=13, events=POLLIN}, {fd=17, events=POLLIN}], 2, 80 <unfinished ...>
[pid 16645] ioctl(15, TIOCSCTTY <unfinished ...>
[pid 16644] <... poll resumed> ) = 1 ([{fd=17, revents=POLLIN}])
[pid 16645] <... ioctl resumed> , 0) = -1 EPERM (Operation not permitted)
[pid 16644] write(14, "W", 1 <unfinished ...>
[pid 16645] write(15, "\33[?1;0;0c\0", 10 <unfinished ...>
[pid 16644] <... write resumed> ) = 1
[pid 16645] <... write resumed> ) = 10
[pid 16644] recvmsg(17, <unfinished ...>
[pid 16645] ioctl(15, KDSETMODE <unfinished ...>
[pid 16644] <... recvmsg resumed> {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0S\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=32, {cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=3495, uid=58512, gid=1000}}, msg_flags=0}, 0) = 20
[pid 16645] <... ioctl resumed> , 0x1) = -1 EPERM (Operation not permitted)
[pid 16644] write(14, "W", 1 <unfinished ...>
[pid 16645] write(2, "(!) DirectFB/fbdev/vt: KD_GRAPHI"..., 75 <unfinished ...>
(!) DirectFB/fbdev/vt: KD_GRAPHICS failed!
    --> Operation not permitted
[pid 16644] <... write resumed> ) = 1
[pid 16645] <... write resumed> ) = 75
[pid 16644] read(13, <unfinished ...>
[pid 16645] close(15 <unfinished ...>
[pid 16644] <... read resumed> "WW", 10) = 2
[pid 16645] <... close resumed> ) = 0
[pid...

Read more...

Revision history for this message
Sabuj Pattanayek (sabujp) wrote :

pkg vers :

% dpkg -l | grep vlc
rc libvlc2 1.0.6-1ubuntu1.2 amd64 multimedia player and streamer library
ii libvlc5 2.2.0-1 amd64 multimedia player and streamer library
rc libvlccore2 1.0.6-1ubuntu1.2 amd64 base library for VLC and its modules
rc libvlccore4 1.1.12-2~oneiric1 amd64 base library for VLC and its modules
rc libvlccore5 2.0.8-1 amd64 base library for VLC and its modules
rc libvlccore7 2.1.4-0ubuntu14.04.1 amd64 base library for VLC and its modules
ii libvlccore8 2.2.0-1 amd64 base library for VLC and its modules
rc vlc 2.2.0-0ubuntu0.14.10.1 amd64 multimedia player and streamer
ii vlc-data 2.2.0-1 all Common data for VLC
ii vlc-nox 2.2.0-1 amd64 multimedia player and streamer (without X support)

% dpkg -l | grep -i directfb
rc libdirectfb-1.2-0 1.2.8-5ubuntu2 amd64 direct frame buffer graphics - shared libraries
ii libdirectfb-1.2-9:amd64 1.2.10.0-5.1 amd64 direct frame buffer graphics - shared libraries

Revision history for this message
Sabuj Pattanayek (sabujp) wrote :

I reinstalled vlc and the problem fixed itself

Changed in vlc (Ubuntu):
assignee: nobody → Sabuj Pattanayek (sabujp)
status: New → Fix Released
Revision history for this message
themusicgod1 (themusicgod1) wrote :

Same problem with 16.04, same solution.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.