Bug 664088 - [abrt] projectM-pulseaudio-2.0.1-3.fc13: FTSize::CharSize: Process /usr/bin/projectM-pulseaudio was killed by signal 11 (SIGSEGV)
Summary: [abrt] projectM-pulseaudio-2.0.1-3.fc13: FTSize::CharSize: Process /usr/bin/p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libprojectM
Version: 17
Hardware: x86_64
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Michael Schwendt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:aed0251cca2ade3d07da2204882...
: 704857 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-18 01:14 UTC by Dale Snell
Modified: 2012-06-10 01:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-10 01:31:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (35.77 KB, text/plain)
2010-12-18 01:14 UTC, Dale Snell
no flags Details

Description Dale Snell 2010-12-18 01:14:41 UTC
abrt version: 1.1.14
architecture: x86_64
Attached file: backtrace
cmdline: projectM-pulseaudio
component: projectM-pulseaudio
crash_function: FTSize::CharSize
executable: /usr/bin/projectM-pulseaudio
kernel: 2.6.35.9-64.fc14.x86_64
package: projectM-pulseaudio-2.0.1-3.fc13
rating: 4
reason: Process /usr/bin/projectM-pulseaudio was killed by signal 11 (SIGSEGV)
release: Fedora release 14 (Laughlin)
time: 1292630647
uid: 500

comment
-----
This is *very* easy to reproduce; it happens 100% of the time.

I ran projectM-pulseaudio from the command line, and this is what was returned:

  dir:/usr/share/projectM/config.inp 
  reading ~/.projectM/config.inp 
  [projectM] config file: /home/dales/.projectM/config.inp
  No Textures Loaded from /usr/share/projectM/textures
  Segmentation fault (core dumped)

At first, I thought it was looking for textures and failing, since /usr/share/projectM/textures does not exist (I checked).  However, there is no .../textures directory in the source tarball, either, which led me to think it was something else.  So I ran 'strace -e trace=file projectM-pulseaudio 2> tmp/projm-trace' and examined the trace file.  The last few lines seem key:

  open("/usr/share/projectM/textures", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  open("/usr/share/projectM/fonts/Vera.ttf", O_RDONLY) = -1 ENOENT (No such file or directory)
  open("/usr/share/projectM/fonts/VeraMono.ttf", O_RDONLY) = -1 ENOENT (No such file or directory)
  open("/usr/share/projectM/fonts/Vera.ttf", O_RDONLY) = -1 ENOENT (No such file or directory)
  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
  +++ killed by SIGSEGV (core dumped) +++

The last two lines in projectM's config file are

  Title Font = /usr/share/fonts/bitstream-vera/Vera.ttf
  Menu Font = /usr/share/fonts/bitstream-vera/VeraMono.ttf

So I guessed that projectM is ignoring its config file, in favor of hard-coded font paths.  To test this, I created the directory /usr/share/projectM/fonts, and put symbolic links to /usr/share/fonts/bitstream-vera/Vera.ttf and .../VeraMono.ttf.

Bingo.  ProjectM opens its window and makes pretty pictures happen.  Nor does Audacious crash.  So we have a work-around.

How to reproduce
-----
1a.  Select Applications => Sound & Video => projectM-pulseaudio
2a.  Nothing appears to happen.
  ==or==
1b.  While running the Audacious music player, select File => Preferences => Plugins => Visualization, and enable projectM.
2.  Audacious crashes and disappears.

Comment 1 Dale Snell 2010-12-18 01:14:43 UTC
Created attachment 469478 [details]
File: backtrace

Comment 2 Dale Snell 2010-12-18 01:25:37 UTC
This bug seems to be the same as the one mentioned upstream, here:
<http://sourceforge.net/projects/projectm/forums/forum/358774/topic/3920892>

Comment 3 Brendan Jones 2010-12-18 10:03:33 UTC
I suspect this relates to your video driver (from the backtrace looks proprietary so we can't help you with much there - if so follow it up upstream)





-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 4 Jameson 2010-12-25 22:12:06 UTC
What do you have in /usr/share/projectM/config.inp?

Comment 5 Dale Snell 2010-12-26 02:18:58 UTC
(In reply to comment #4)
> What do you have in /usr/share/projectM/config.inp?

Here's the contents of /usr/share/projectM/config.inp:

# config.inp
# Configuration File for projectM

Texture Size = 1024			# Size of internal rendering texture
Mesh X  = 32            	# Width of PerPixel Equation mesh
Mesh Y  = 24          		# Height of PerPixel Equation mesh
FPS  = 35          		# Frames Per Second 
Fullscreen  = false		
Window Width  = 512  	       	# startup window width
Window Height = 512            	# startup window height

Smooth Transition Duration = 5  # in seconds
Preset Duration = 30 	     	# in seconds
Easter Egg Parameter = 1

Hard Cut Sensitivity = 10       # Lower to make hard cuts more frequent
Aspect Correction = true	# Custom Shape Aspect Correction

Preset Path = /usr/share/projectM/presets # preset location
Title Font = /usr/share/fonts/bitstream-vera/Vera.ttf
Menu Font = /usr/share/fonts/bitstream-vera/VeraMono.ttf
 

For completeness, here's the contents of ~/.projectM/config.inp:

Aspect Correction = 1
Easter Egg Parameter = 1
FPS = 35
Fullscreen = false
Hard Cut Sensitivity = 25
Menu Font = /usr/share/fonts/bitstream-vera/VeraMono.ttf
Mesh X = 32
Mesh Y = 24
Preset Duration = 30
Preset Path = /usr/share/projectM/presets
Shuffle Enabled = 1
Smooth Preset Duration = 5
Smooth Transition Duration = 5
Soft Cut Ratings Enabled = 1
Texture Size = 1024
Title Font = /usr/share/fonts/bitstream-vera/Vera.ttf
Window Height = 1024
Window Width = 1024
onts/bitstream-vera/Vera.ttf
Window Height = 1024
Window Width = 1024
Aspect Correction = true	    # Custom Shape Aspect Correction

Comment 6 Dale Snell 2010-12-26 02:27:53 UTC
Oh, something I noticed, but forgot to mention earlier (many apologies for that!):  When I got projectM working, and opened the Preferences window, the Title Font and Menu Font entries pointed to the local fonts.  I.e., .../projectM/fonts/Vera.ttf and .../projectM/fonts/VeraMono.ttf.  Which of course weren't there.  This still leads me to think that there's something going wonky when it tries to read its config file.

Anyway, if you need any other info from me, let me know.

Comment 7 abrt-bot 2012-03-20 18:24:50 UTC
Backtrace analysis of bugs across components suggests the actual bug is in component libprojectM or ftgl instead of component projectM-pulseaudio, reassigning to libprojectM.

Bugs which were found to be similar to this bug: 
  libprojectM: bug #698381
  projectM-jack: bug #704857
  projectM-pulseaudio: bug #592734, bug #698404

This comment is automatically generated.

Comment 8 abrt-bot 2012-03-20 18:25:00 UTC
*** Bug 704857 has been marked as a duplicate of this bug. ***

Comment 9 Michael Schwendt 2012-06-01 10:56:46 UTC
Since this has come up on fedora list today:

 * Old comments in this ticket and duplicates no longer apply. The configured-font-does-not-exist issue has been fixed in May 2011.

 * /usr/bin/projectM-pulseaudio and /usr/bin/projectM-jack from their packages work fine by default.

Current test-case is with VLC from a 3rd party repository:

  - yum -y install vlc
  - load a music file
  - enable projectM visualization
  - immediate segfault

[...]

As I've fixed the older fonts problem in 2011, I've also committed a patch in Rawhide git and will release an update for this, too.

Comment 10 Fedora Update System 2012-06-01 11:09:47 UTC
libprojectM-2.0.1-15.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/libprojectM-2.0.1-15.fc17

Comment 11 Fedora Update System 2012-06-02 03:57:16 UTC
Package libprojectM-2.0.1-15.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libprojectM-2.0.1-15.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-8775/libprojectM-2.0.1-15.fc17
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2012-06-10 01:31:37 UTC
libprojectM-2.0.1-15.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.