After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 528793 - Unable to play audio/microsoft-wav attachment
Unable to play audio/microsoft-wav attachment
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.22.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2008-04-18 18:49 UTC by Reece Hart
Modified: 2008-04-22 01:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
installed and uninstalled gstreamer pkgs (4.59 KB, application/octet-stream)
2008-04-20 00:16 UTC, Reece Hart
Details
sample wav file (138.10 KB, audio/microsoft-wav)
2008-04-20 02:43 UTC, Reece Hart
Details

Description Reece Hart 2008-04-18 18:49:17 UTC
Please describe the problem:
I frequently receive .wav files as mime attachments. Evolution recognizes them as audio/microsoft-wav, but doesn't offer to play them. Thunderbird plays them from within the MUA and Nautilus plays them when saved manually. I had this problem with both Ubuntu Gutsy and Hardy (alpha6 and beta).

This bug was originally submitted as https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/157281 . Screenshots, failed corrections, and other info are available there.

What's been tried:
* I've attempted to modify my .mailcap and .gnome/application-info/user.applications, but that didn't work.
* I can reproduce the problem with a new user (i.e., untainted by my environment, gnome config, or evo config) and a new evo mail connection.
* Pedro Villavicencio reported that this worked fine for him (see LaunchPad page).

Since 1) my sound works, 2) thunderbird and nautilus play the file, 3) it's reproducible with a new user and new evo mail account, 4) it's occurred on two fresh Ubuntu installs, 5) it works okay for another ubuntu user, I'm left to wonder whether the problem results from a conflict with an installed package and that I just happened to select the same conflict twice.

Even if this is a configuration error or results from a conflicting package, there's a minor user experience misfeature in that evolution and nautilus don't handle the attachment/saved file in the same way.

Thanks,
Reece

ProblemType: Bug
Architecture: i386
Date: Thu Oct 25 16:42:24 2007
DistroRelease: Ubuntu 7.10  (N.B. also 08.04 beta)
ExecutablePath: /usr/bin/evolution
NonfreeKernelModules: fglrx (N.B. and without)
Package: evolution 2.12.0-0ubuntu5
PackageArchitecture: i386
ProcCmdline: evolution --sm-config-prefix /evolution-LDthPL/ --sm-client-id 117f000101000119255132700000066480005 --screen 0
ProcCwd: /local/home/rkh
ProcEnviron:
 PATH=/home/rkh/opt/i686-linux-2.6/bin:/home/rkh/opt/i686-linux-2.6/sbin:/home/rkh/opt/bin:/home/rkh/opt/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: evolution
Uname: Linux snafu 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Matthew Barnes 2008-04-18 19:57:34 UTC
There's a plugin called "Audio Inline" that will let you do this, unless Ubuntu left it out of their package.  Go to Edit -> Plugins and make sure it's enabled.
Comment 2 Reece Hart 2008-04-18 21:38:19 UTC
I didn't know about this, but it's already installed and checked. Just to be sure, I unchecked it, quit, started evo, rechecked it, did --force-shutdown, and restarted.

Some more information.
1) gnome-audio is not installed. Synaptic says that it conflicts with ubuntu-desktop (a meta package) and ubuntu-sounds. I have no idea whether the audio plugin would depend on that implicitly.
2) Evo attachment handling works for inline HTML and images and offers appropriate application options in the menu. With audio/microsoft-wav, the menu offers only save as but the icon shows musical notes and therefore implies a basic recognition of type.
3) Ubuntu uses pulseaudio. I don't know what this might mean for audio plugin.

Do you have any suggestions about how I can debug the attachment processing and audio inline processing. I imagine that the plugins "offer" to handle particular mimetypes. If that's correct, could it be that another plugin is confounding audio plugin? I disabled everything but the audio plugin, but that didn't help.

-Reece
Comment 3 Matthew Barnes 2008-04-18 21:51:03 UTC
That's the only audio-related plugin I'm aware of.  GStreamer 0.10 is the only requirement for it.  Maybe check if you have that installed.  It might be a "recommended" package (in dpkg terms) that didn't get installed by default.
Comment 4 André Klapper 2008-04-19 11:11:31 UTC
please make sure that "edit -> plugins -> Audio inline plugin" is enabled and report back.
Comment 5 André Klapper 2008-04-19 11:12:22 UTC
(uargh. re-read, andre. sorry for the noise, ignore my last comment.)
Comment 6 Reece Hart 2008-04-19 19:48:53 UTC
I just reconfirmed that I observe the same behavior with a brand new user (i.e., freshly useradd'd) and a new evo account created with the wizard. I verified that audio inline plugin is checked. This is as close to from scratch as I can get without a new distro install (and I've seen this on fresh installs of Gutsy and Hardy).

Would it help for me to forward a sample to any of you? Thanks for your time.
Comment 7 Matthew Barnes 2008-04-19 21:00:52 UTC
None of that will make a difference if you don't have GStreamer installed.

Try this from a command line and post the results:

   pkg-config --modversion gstreamer-0.10
Comment 8 Reece Hart 2008-04-20 00:16:00 UTC
Created attachment 109566 [details]
installed and uninstalled gstreamer pkgs
Comment 9 Reece Hart 2008-04-20 00:16:41 UTC
Initially, no:
snafu$ pkg-config --modversion gstreamer-0.10
Package gstreamer-0.10 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gstreamer-0.10.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gstreamer-0.10' found

Okay, after some poking around, I found that it's in libgstreamer0.10-dev:

snafu$ sudo apt-get -qq install libgstreamer0.10-dev
Selecting previously deselected package libgstreamer0.10-dev.
(Reading database ... 319486 files and directories currently installed.)
Unpacking libgstreamer0.10-dev (from .../libgstreamer0.10-dev_0.10.18-4ubuntu1_i386.deb) ...
Setting up libgstreamer0.10-dev (0.10.18-4ubuntu1) ...

snafu$ pkg-config --modversion gstreamer-0.10
0.10.18


However, I *still* get no option to play audio. Do I need to do something to get the audio inline plugin to reconfigure?  I deselected AIP, quit, did --force-shutdown, then reselected AIP in a sort of naive and ham-fisted attempt to try to get AIP to rediscover gstreamer.

I've now installed essentially all of the gstreamer related packages, including dbg packages, hoping that I might have been missing an available codec or somesuch. No luck.  I've attached the list of installed and uninstalled gstreamer packages.
Comment 10 Reece Hart 2008-04-20 00:55:40 UTC
Here's a minor breakthrough. I sent a mp3 to myself (dunno why I didn't do that earlier) and it worked great: I got a popup menu with reasonable app offerings and the AIP play/pause/stop buttons from AIP. 

So, the problem seems to be specific to audio/microsoft-wav. I note that the attachment description for mp3 is human readable whereas for a wav it's the mimetype. That makes me think that the real problem here is that audio/microsoft-wav isn't recognized. Where's that set?

This still begs the question: Why do Thunderbird and nautilus work when evo/AIP doesn't?

Thanks,
Reece
Comment 11 Matthew Barnes 2008-04-20 02:11:11 UTC
Can you attach a sample audio/microsoft-wav file?
Comment 12 Reece Hart 2008-04-20 02:43:17 UTC
Created attachment 109568 [details]
sample wav file

Evo doesn't play any wav files, but does play other audio. This is an example voice mail that wouldn't play in evo either via the audio inline plugin or through an appropriate option in the attachment menu (the only option is save as). When saved, the file plays fine in nautilus merely by hovering over the file. When the same message is viewed in Thunderbird, the file type is correctly identified and double clicking plays the message (in helix-player).
Comment 13 Reece Hart 2008-04-21 20:50:54 UTC
Success.

audio inline plugin hardcodes mimetypes in org-gnome-audio-inline.eplug ( 
/usr/lib/evolution/2.22/plugins/org-gnome-audio-inline.eplug on Hardy).  I merely added a type for audio/microsoft-wav:

<item mime_type="audio/microsoft-wav" format="org_gnome_audio_inline_format" flags="inline_disposition"/>

I had just assumed that this was going to be hard... I should have dug into this long ago.

-Reece
Comment 14 Matthew Barnes 2008-04-22 01:04:08 UTC
Nice one!  Committed the fix to Evolution revision 35398.