Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 474938

Summary: media-video/vlc[projectm] crashes if choose projectm audio visualization
Product: Gentoo Linux Reporter: Ilya Gordeev <mirraz1>
Component: Current packagesAssignee: Tom Wijsman (TomWij) (RETIRED) <tomwij>
Status: RESOLVED FIXED    
Severity: normal CC: media-video, richard
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.archlinux.org/task/31242
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: vlc-projectm-fonts-path.patch
Backtrace & Emerge Info

Description Ilya Gordeev 2013-06-27 05:48:59 UTC
vlc chashes if choose projectm audio visualization with message:
Could not open font file: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf

Reproducible: Always
Comment 1 Ilya Gordeev 2013-06-27 05:53:40 UTC
Created attachment 352054 [details, diff]
vlc-projectm-fonts-path.patch

Propose fix stilled from Arch
Comment 2 Ilya Gordeev 2013-06-27 05:56:15 UTC
See also https://bugs.archlinux.org/task/31242
Comment 3 Ilya Gordeev 2013-06-27 17:15:52 UTC
Just found that it can be fixed via vlc config file .config/vlc/vlcrc:

[projectm]
projectm-title-font=/usr/share/fonts/dejavu/DejaVuSans.ttf
projectm-menu-font=/usr/share/fonts/dejavu/DejaVuSansMono.ttf
Comment 4 Ondrej Grover 2013-08-11 18:09:24 UTC
I can confirm that the workaround by Ilya Gordeev in .config/vlc/vlcrc works very well

It appears that this is a bug in vlc rather than in libprojectm, because libprojectm has the file /usr/share/projectM/config.inp which lists the correct paths.

the command

equery f vlc | xargs grep projectm-title-font 2>/dev/null

with output

Binary file /usr/lib64/vlc/plugins/plugins.dat matches
Binary file /usr/lib64/vlc/plugins/visualization/libprojectm_plugin.so matches

suggests that the bad fontpaths are compiled in, so the patch is most likely the only way to go

this is with stable media-video/vlc-2.0.5 and media-libs/libprojectm-2.1.0-r1
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-26 08:25:28 UTC
This will be part of the version bumps that happen today (older vlc versions get this patched, newer vlc versions get this configured through the configure flags; in both cases based on whether the USE flag is enabled or disabled).
Comment 6 richard 2016-09-10 16:14:35 UTC
Created attachment 445408 [details]
Backtrace & Emerge Info