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 79231 - Nautilus is hanging when you play the Mp3 files from the nautilus window .
Nautilus is hanging when you play the Mp3 files from the nautilus window .
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] Views: Music View
0.x.x [obsolete]
Other Linux
: High critical
: 1.1.x
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 81381 83946 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-04-19 14:37 UTC by Sekhar Reddy Pulukunta
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
I used gdb to attach to the hung nautilus-music-view. Here is the trace... (10.27 KB, text/plain)
2002-05-02 05:43 UTC, Dennis Cranston
  Details
Fixes this and several other problems (5.50 KB, patch)
2002-05-28 18:25 UTC, Damon Chaplin
none Details | Review

Description Sekhar Reddy Pulukunta 2002-04-19 14:37:00 UTC
Build : Gnome 2.0 APril 15th 


1) start nautilus.
2)Ensure that music files(".mp3" extension) are present in the current 
directory .
3)select view->view as music.
4)Click on music file from ths list and click on the play button in the 
playlist buttons.

5) while playing music file nautilus hangs .

This is always reproducable in linux and solaris.
Comment 1 Johan Olby 2002-04-20 17:50:38 UTC
reproduced: after the song has played to the end the next action hangs
nautilus.
Comment 2 Damon Chaplin 2002-04-23 20:33:57 UTC
If someone can get a stack trace of where it is hanging that would be
useful.
Comment 3 Luis Villa 2002-05-01 07:50:34 UTC
Not punting, I don't think; something as big/'special' a feature/toy
as this shouldn't hang the entire app.
Comment 4 Dennis Cranston 2002-05-02 05:17:00 UTC
Not only does this hang nautilus, but it prevents me from launching
other gnome applications.  I have to do a 'CTRL-ALT-F1' and execute a
'killall nautilus-music-view' before I can start any gnome applications.
Comment 5 Dennis Cranston 2002-05-02 05:43:41 UTC
Created attachment 8115 [details]
I used gdb to attach to the hung nautilus-music-view.  Here is the trace...
Comment 6 Damon Chaplin 2002-05-10 19:33:02 UTC
cc'ing Frederic as he may be able to spot the problem.

It looks like Nautilus has a timeout callback that updates the display,
and this is failing after a song has finished playing.


Frederic, if you could look at esdout_playing () at esd-audio.c:231
(in nautilus/components/music), that would be helpful.
It is hanging in the esd_send_auth() call (called by esd_open_sound()).
Any idea why that would happen?
Comment 7 Frederic Crozat 2002-05-14 15:00:28 UTC
Confirming on my system.. But I don't have a clue on this problem : I
don't know yet very well esound internal logic.. Adding Elliot as he
probably knows it better
Comment 8 Elliot Lee 2002-05-14 15:29:01 UTC
nautilus really needs to open its esd connection earlier on...

Call gnome_sound_init() at startup, and then use
gnome_sound_connection for your esound connection...
Comment 9 Damon Chaplin 2002-05-14 17:52:49 UTC
*** Bug 81381 has been marked as a duplicate of this bug. ***
Comment 10 Luis Villa 2002-05-22 22:47:56 UTC
cc'ing damon.
Comment 11 Damon Chaplin 2002-05-28 18:25:55 UTC
Created attachment 8792 [details] [review]
Fixes this and several other problems
Comment 12 Damon Chaplin 2002-05-28 18:34:09 UTC
Basically someone seems to have been confused about what the
esdout_playing() function was supposed to do. It was trying to connect
to esd once per second, which was unnecessary and silly.

So I split it into 2 functions, esdout_can_play() which checks that we
can connect to esd, and esdout_playing() which checks if we are
currently playing a track. That seems to fix the hang.

The patch also fixes a crash when you control-click on a track,
and updates the track labels properly when you click on the prev/next
track buttons.

And it fixes the timer thing used in the prev track button so it moves
to the previous track if you're in the first 3 seconds of the current
track. It was using 300 when it should be 3000.
Comment 13 Alexander Larsson 2002-05-30 04:32:35 UTC
patch looks good. please commit.
Comment 14 Santiago Otero 2002-05-30 18:16:55 UTC
This is also a esound bug. The problem was that esound server was
expecting more data than available at the end of the audio stream.
Because of this esound was blocking reading socket. I've sent a patch
to Frederic Crozat.
Comment 15 Damon Chaplin 2002-05-30 19:37:07 UTC
Ah, thanks for finding that.

I've committed the nautilus patches, so I'll close this bug.
Comment 16 Frederic Crozat 2002-06-03 09:50:43 UTC
*** Bug 83946 has been marked as a duplicate of this bug. ***
Comment 17 Damon Chaplin 2002-06-19 21:16:36 UTC
*** Bug 73459 has been marked as a duplicate of this bug. ***
Comment 18 Mamatha 2002-10-11 10:57:33 UTC
Tested on Solaris 9 - Sun beta 2 build 11 package, source taken from 
gnome-2-0 branch on Tue Oct 1 13:26:01 BST 2002.
I coudn't simulate this bug. It can be closed.