vlc directfb doesn't work
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,
[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
~~~~
(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[0000000001cf
~~~~
(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,
[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
~~~~
(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[000000000133
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,
[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
~~~~
(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[0000000001a9
~~~~
(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=
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_
iptable_nat 16384 1
nf_nat_ipv4 16384 1 iptable_nat
nf_nat 28672 2 nf_nat_
nf_conntrack_ipv4 16384 3
nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
xt_conntrack 16384 2
nf_conntrack 106496 5 nf_nat,
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_
x_tables 36864 11 ip6table_
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,
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,
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_
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_
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_
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_
intel_ips 20480 0
snd_seq_device 16384 3 snd_seq,
snd_timer 32768 2 snd_pcm,snd_seq
iwlwifi 196608 1 iwlmvm
cfg80211 540672 4 wl,iwlwifi,
lpc_ich 24576 0
snd 90112 17 snd_pcm_
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_
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)
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() 0x7f95d402a000, 892928, MADV_DONTNEED) = 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 ...> S_IFCHR| 0660, st_rdev=makedev(29, 0), ...}) = 0 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
) = 39
[pid 16645] madvise(
[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\
[pid 16645] fstat(4, <unfinished ...>
[pid 16644] <... sendto resumed> ) = 44
[pid 16645] <... fstat resumed> {st_mode=
[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(
[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...