rbatten / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
GNU General Public License v2.0
0 stars 0 forks source link

gnome-mplayer occasionally hangs playing file with numerous spaces/hyphens/brackets. #618

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Attempt to play a file with the filename "Some file with a - heap of spaces 
[1080p].mp4"
2. Perhaps one in 5 instances result in no video playing. 

What version of the product are you using? On what operating system?
1.0.6, Mint LMDE ( sid? )

Looking at straces and reallyverbose output, it looks like a race condition of 
some kind. When the problem occurs, the output looks like: 

playing - 
file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4
is playlist 0
file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4 
is not a device name
Streaming media 
'file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4' 
= 0
Looking for cover art at /tmp/cover.jpg
Looking for cover art at /tmp/Folder.jpg
file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4 
is not a device name
Streaming media 
'file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4' 
= 0
setting up mplayer
metadata->uri = 
file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4

When it functions normally, it looks like this: 

playing - 
file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4
is playlist 0
file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4 
is not a device name
Streaming media 
'file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4' 
= 0
Looking for cover art at /tmp/cover.jpg
Looking for cover art at /tmp/Folder.jpg
file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4 
is not a device name
Streaming media 
'file:///tmp/Some%20file%20with%20a%20-%20heap%20of%20spaces%20%5B1080p%5D.mp4' 
= 0
setting up mplayer
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-Ossg8e/pkcs11: No 
such file or directory
mplayer -vo xv -vf-pre yadif,softskip,scale -vf-add screenshot -ao alsa 
-channels 2 -af-add export=/tmp/mplayer-af_exportgfqjcr:512 -quiet -slave 
-noidle -noconsolecontrols -nostop-xscreensaver -identify -volume 100 -softvol 
-msglevel all=5 -osdlevel 0 -delay 0.000000 -subdelay 0.000000 -subpos 0 
-sub-fuzziness 0 -wid 0x5400028 -brightness 0 -contrast 0 -hue 0 -saturation 0 
-alang English,eng,en -slang English,eng,en -nomsgcolor -nomsgmodule 
-nokeepaspect -ass -embeddedfonts -ass-font-scale 1.00 -ass-color ffffff00 
/tmp/Some file with a - heap of spaces [1080p].mp4

Also, when the problem occurs, one of the threads remains running in the 
background. It looks like the following doing a strace:

31510 pts/0    S      0:00 gnome-mplayer --reallyverbose Some file with a - 
heap of spaces [1080p].mp4

[quadfour@natalie tmp $ ] strace -p 31510
Process 31510 attached - interrupt to quit
futex(0x7f9e5f511520, FUTEX_WAIT_PRIVATE, 2, NULL

Original issue reported on code.google.com by quadfou...@gmail.com on 29 May 2012 at 9:47

GoogleCodeExporter commented 8 years ago
I should mention, I cannot reproduce the problem on a file without spaces.

Original comment by quadfou...@gmail.com on 29 May 2012 at 9:47

GoogleCodeExporter commented 8 years ago
Interesting pattern you found there, I have been trying to solve this issue for 
a bit but haven't been able to solve it, it still exists in SVN. I'll use this 
information to look for issues.

Original comment by kdeko...@gmail.com on 30 May 2012 at 2:43

GoogleCodeExporter commented 8 years ago
I did encounter this and solved it. As an example I am trying to play song 
named "Panneer Pushpangal - Kodai - TamilWire.com.mp3". Please observe that 
this file has spaces and - in its name. To play the song issue the command  

gnome-mplayer "Panneer Pushpangal - Kodai - TamilWire.com.mp3"

or something like this using command substituition

gnome-mplayer "`ls *Kodai*`"

Original comment by LnxV...@gmail.com on 26 Feb 2013 at 4:17