Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26785 - [vlc] slow startup

Attached to Project: Arch Linux
Opened by Anthony Vital (anthon) - Monday, 07 November 2011, 19:55 GMT
Last edited by Ionut Biru (wonder) - Monday, 07 November 2011, 20:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Vlc takes about 3 seconds to start. It doesn't seem like a big deal, but if I run explicitely "/usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins" as root, then vlc starts up almost instantaneously.
What is weird is that that command is present in the post install script, and it is clearly executed because a cache file is generated (plugins-*.dat) in /usr/lib/vlc/plugins at installation time. But if I don't re-execute it manually after a new installation, vlc still takes 3 seconds to start.


Additional info:
* package version(s)
vlc 1.1.12-1, but the bug has been present for some time now. I hadn't really noticed it was bad until I launched vlc on other distros (debian sid and kubuntu oneiric) where the startup time is very short.


Steps to reproduce:
Do a fresh install of vlc.
Open a file with vlc, notice how vlc takes about 3s to start.
Now run "/usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins" as root.
Open a file with vlc, notice how vlc takes about 0.5s to start.
This task depends upon

Closed by  Ionut Biru (wonder)
Monday, 07 November 2011, 20:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  in trunk. will be available on the next rebuild
Comment by Ionut Biru (wonder) - Monday, 07 November 2011, 20:00 GMT Comment by Anthony Vital (anthon) - Monday, 07 November 2011, 20:05 GMT
Yes I know, but still, I can reproduce the problem every time on my system. Can you confirm that running "/usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins" as root doesn't improve anything for you?
Comment by Ionut Biru (wonder) - Monday, 07 November 2011, 20:07 GMT
it does, but i don't get it why.
Comment by Ionut Biru (wonder) - Monday, 07 November 2011, 20:23 GMT
looking in .dat i see references without the leading /.

it is a bug in our .install file.

usr/lib/vlc/vlc-cache-gen -f usr/lib/vlc/plugins

Loading...