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 81221 - [Solaris] Unable to preview sound files and play music in music view
[Solaris] Unable to preview sound files and play music in music view
Status: VERIFIED NOTABUG
Product: nautilus
Classification: Core
Component: [obsolete] Sound
0.x.x [obsolete]
Other Solaris
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 48203 62068 66358 (view as bug list)
Depends on:
Blocks: 79136
 
 
Reported: 2002-05-09 09:24 UTC by Anand
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.0


Attachments
core file number 1 from esd dump (343.22 KB, text/plain)
2002-07-02 15:35 UTC, Shane O'Connor
Details

Description Anand 2002-05-09 09:24:12 UTC
Running latest gnome 2.0 on Solaris 8.

Unable to preview sound files in the icon view.

Also, not able to play music files in the music view. 

This is basically because the 'play' and the 'mpg123' command aren't 
supported on Solaris.
Comment 1 Luis Villa 2002-05-15 21:26:53 UTC
*** Bug 66358 has been marked as a duplicate of this bug. ***
Comment 2 Luis Villa 2002-05-15 21:47:26 UTC
Damon: what's the status here? I was under the impression that we'd
wired music view to just launch the solaris music player on solaris?

Also, is sound preview hardwired to mpg123 or can that be changed?
Comment 3 Luis Villa 2002-05-17 01:14:39 UTC
*** Bug 62068 has been marked as a duplicate of this bug. ***
Comment 4 Damon Chaplin 2002-05-20 20:27:10 UTC
I'm afraid I have no idea.

Jody, do you know what is supposed to happen on Solaris for:

 1) Previewing sound files in the icon view
 2) Viewing sound files in the music view

Comment 5 Luis Villa 2002-05-23 19:01:04 UTC
*** Bug 48203 has been marked as a duplicate of this bug. ***
Comment 6 Luis Villa 2002-05-23 19:01:38 UTC
If fixing this bug is required, we should test preview of .wavs (among
other things.)
Comment 7 Dave Bordoley [Not Reading Bug Mail] 2002-05-23 19:04:53 UTC
Just to play devils advocate, is it really worth do a short term fix
for this when gstreamer patches for nautilus are already floating
around and will probably be applied sometime post 2.0....
Comment 8 Damon Chaplin 2002-05-23 20:47:37 UTC
Jody said that the normal sound-playing code will be used on Solaris.

Nautilus has built-in code in the music view to play sound via the
esound daemon, probably cut & pasted from somewhere, maybe mpg123.

It also has code in libnautilus-private/nautilus-audio-player.c to
preview sound files. This is only run for mp3 files in the icon view.
(Grep for nautilus_audio_player_play() in src/file-manager/fm-icon-view.c)

I think it is probably too late to add gstreamer for Solaris, so we
probably still need to fix this.


One thing I spotted is that .wav files are recognised as audio/x-riff
rather than audio/x-wav, which is a bit confusing. (Maybe the order
in the .keys file messes this up, as x-wav files may be very similar
to x-riff.)

audio/x-wav files defaults to running grecord, xmms or freeamp.
audio/x-riff files default to running xmms.

We could add the Solaris sound player to the default applications,
so it will be used if nothing else is found.

I can't get the previewer or the player to work yet either.


Comment 9 Luis Villa 2002-05-26 16:51:55 UTC
Dave: Sun wants this in their 2.0 build, so Ximian will be fixing it,
whether it goes in to main tree or not. 

Damon: I think maybe adding the solaris sound tool to the mime types
may be sufficient- Sun has been a little unclear on this issues in the
past, but it should do /something/. :)
Comment 10 Damon Chaplin 2002-05-28 17:49:31 UTC
I think I was wrong about the previewer. It does indeed run mpg123,
ogg123, or play. The new threaded code to preview sound files seems to
be ifdeffed out.
Comment 11 Damon Chaplin 2002-06-04 20:47:55 UTC
Anand: does esd play sounds OK for you? i.e. if you turn on sound events
do you get the normal beeps and things in GNOME 2?

esd doesn't work on my Solaris 8 box. I've added bug 84172 about this.
Comment 12 Anand 2002-06-05 08:32:17 UTC
Damon: No. I'm not getting any sound for gnome events. 

One thing to note, i'm able to preview sound files in the nautilus 
window when in the icons view, for wav files *only*. 
Comment 13 Damon Chaplin 2002-06-05 20:11:22 UTC
In that case it sounds like the music view problem is an esound bug
rather than a nautilus bug.


Dave is going to look at the preview in the icon view.
Comment 14 Brian Nitz 2002-06-14 14:37:32 UTC
Sound preview now works in recent pre-beta builds.  The name change
from grecorder and gnome-sound-recorder broke the mime association. 
This was logged as a separate bug:

http://bugzilla.gnome.org/show_bug.cgi?id=85000
Comment 15 Luis Villa 2002-06-20 17:15:37 UTC
Marking this a duplicate, then. 

*** This bug has been marked as a duplicate of 85000 ***
Comment 16 Shane O'Connor 2002-07-02 15:31:58 UTC
I'm going to re-open this bug because I don't think it is the same as
Brian's bug (#85000).

The issue here is that nautilus will not play mp3's (when view as
music mode). 

It appears that esd is core dumping.

To recreate
==========
In Nautilus navigate to a dir containing mp3's
Set Nautilus to "View as music" mode
Ensure esd is running

"ps -aef | grep esd
 gn_tst1 11088	   1  0 16:14:11 ?	  0:00 /bin/sh -c esd -terminate
-nobeeps -as 2 -spawnfd 20
 gn_tst1 11089 11088  0 16:14:11 ?	  0:00 esd -terminate -nobeeps -as
2 -spawnfd 20"

Play mp3 by clicking play button in nautilus window => mp3 starts to
play but stops as esd core dumps

Below is a trace from 2 core files produced after esd dumped (will try
attaching core files also)

Pstack from Core1
---------------
"pstack core
core 'core' of 11089:	esd -terminate -nobeeps -as 2 -spawnfd 20
 000199e0 wait_for_clients_and_data (4, 1000, 0, ffffffc0, 227d8,
194c0) + d0
 000191f4 main	   (7, ffbeeffc, ffbef01c, 3c000, 0, 0) + 1684
 00016ae0 _start   (0, 0, 0, 0, 0, 0) + 108"


Pstack from Core2
--------------
"core 'core' of 11126:	esd -terminate -nobeeps -as 2 -spawnfd 13
 0001d564 read_player (4d7e8, 0, 0, ffffffff, fffffff8, 44d58) + 17c
 0001c9a0 mix_players (4bf80, 1000, 0, ffffffc0, 227d8, 194c0) + 60
 00019278 main	   (7, ffbef184, ffbef1a4, 3c000, 0, 0) + 1708
 00016ae0 _start   (0, 0, 0, 0, 0, 0) + 108"

NOTE: When I truss'd esd Nautilus played the mp3 (no sound) and esd
did not core (weird)...:)

Comment 17 Shane O'Connor 2002-07-02 15:35:04 UTC
Created attachment 9595 [details]
core file number 1 from esd dump
Comment 18 Shane O'Connor 2002-07-02 15:54:59 UTC
adding cc


couldn't attach core files - keeps timing out. if anyone is looking
for them email me and i will send them...
Comment 19 Anand 2002-07-15 15:51:28 UTC
A fresh stack trace from the 10th July sources. Esd still dumps core 
for me and nautilus isn't playing mp3's

=>[1] free_player(0x19bd78, 0x14723ac, 0x6dffc, 0x1, 0x21174, 
0xff11c3d0), at 0x1cd64
  [2] erase_player(0x19bd78, 0x0, 0x0, 0xffffffff, 0xfffffff8, 
0x44d58), at 0x1cee0
  [3] mix_players(0x4bf80, 0x1000, 0x0, 0xffffffc0, 0x20b84, 0x194c0), 
at 0x1ca40
  [4] main(0x7, 0xffbef344, 0xffbef364, 0x3c000, 0x0, 0x0), at 0x19278
Comment 20 Luis Villa 2002-07-16 19:01:39 UTC
Nautilus will not play mp3s on nautilus until mpg123 is shipped, which
is not going to happen. If esd is coring, then please file a bug
against ESD. If the problem is not one of those two things, then
please reopen this bug :) 
Comment 21 Shane O'Connor 2002-07-26 09:41:23 UTC
closing