christophbeatty / gnome-mplayer

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

Player freezes trying to disable screensaver #660

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable "verbose debug" in Edit>Preferences>Interface
2. Player a video file from the command line prompt.
3. Gnome-player freezes with a message on console "trying to disable 
screensaver".
4. Ctrl-C may interrupt the freezing.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
GNOME MPlayer v1.0.7
Mplayer2
gmtk v1.0.7
GTK 3.6.2
GLIB 2.34.2
Linux xxxx 3.6.9-1-ARCH #1 SMP PREEMPT Tue Dec 4 09:31:43 CET 2012 i686 
GNU/Linux

Please provide any additional information below.
Please refer to the attached file for the logs on the console. "^C" are where 
Ctrl-C were entered to continue.
There is no such a problem playing music with gnome-player, or playing video 
with mplayer directly.

Original issue reported on code.google.com by pinglipi...@gmail.com on 8 Dec 2012 at 5:28

Attachments:

GoogleCodeExporter commented 8 years ago
Did you build the code yourself? If so can you post the config.h file from the 
build? I want to see what options are enabled.

Also are you running DBUS? If not that could be the reason for the hanging.

Original comment by kdeko...@gmail.com on 8 Dec 2012 at 2:28

GoogleCodeExporter commented 8 years ago
Before running gnome-mplayer you can try setting one of these environment 
variables and seeing if that solves it.

GM_DISABLE_ORG_GNOME_SCREENSAVER
GM_DISABLE_ORG_GNOME_SESSIONMANAGER
GM_DISABLE_ORG_FREEDESKTOP_SCREENSAVER
GM_DISABLE_XDG_SCREENSAVER
GM_DISABLE_XSCREENSAVERSUSPEND

Each one of those variables disables one of the screen saver backends

Running with the --reallyverbose option may also tell you which screen saver it 
is hanging on. or setting the following variable before runnig gnome-mplayer 
with give you lots of debug information: G_MESSAGES_DEBUG=GMLIB

Original comment by kdeko...@gmail.com on 8 Dec 2012 at 2:38

GoogleCodeExporter commented 8 years ago
I'm running openbox + dbus + gnome-screensaver. The problem is resolved after 
setting GM_DISABLE_XDG_SCREENSAVER env. I also tried a pure Gnome desktop 
session - everything is fine.

My guess is gnome mplayer is confused with the combination of openbox + 
gnome-screensaver and freezes when trying to disable xdg-screensaver instead.

Dbus is started in .xinitrc:
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session 
openbox-session
and gnome-mplayer is working fine with dbus according to debug messages in the 
attached file. Gnome-screensaver is started in openbox autostart scripts. 

There is always a zombie xdg-screensaver process when gnome-mplayer freezes.

I'm using the built package of Arch Linux. I don't know what building options 
were used.

Original comment by pinglipi...@gmail.com on 9 Dec 2012 at 3:50

GoogleCodeExporter commented 8 years ago
Closing issue as you found a workaround. It appears the xdg-screensaver is 
hanging which causes gnome-mplayer to hang.

Original comment by kdeko...@gmail.com on 10 Dec 2012 at 1:22

GoogleCodeExporter commented 8 years ago
I don't know why, but it seems like xdg-screensaver is started automatically by 
gnome-mplayer which causes the freezing.

Best if workarounds can be added to codes. 

Original comment by pinglipi...@gmail.com on 10 Dec 2012 at 4:22

GoogleCodeExporter commented 8 years ago
What is happening is that gnome-mplayer is trying several methods of disabling 
the screen saver, and they are failing. So it keeps trying them, and 
xdg-screensaver is actually started and then it hangs. So for your setup the 
proper thing to do is to set GM_DISABLE_XDG_SCREENSAVER in your .bashrc and 
that is the fix. 

Are there any error messages that are emitted by xdg-screensaver?

Original comment by kdeko...@gmail.com on 10 Dec 2012 at 1:44

GoogleCodeExporter commented 8 years ago
I couldn't find any error messages from system logs. 

Is there anything I can do to find out why gnome mplayer hangs with 
xdg-screensaver?  Hope this may help find out a solution.

Original comment by pinglipi...@gmail.com on 13 Dec 2012 at 7:28

GoogleCodeExporter commented 8 years ago
Can you post the output from gnome-mplayer? I may see something in that log.

Original comment by kdeko...@gmail.com on 13 Dec 2012 at 1:21

GoogleCodeExporter commented 8 years ago
Yes I have attached the debug logs of gnome-mplayer in the 1st post.

Original comment by pinglipi...@gmail.com on 13 Dec 2012 at 2:19

GoogleCodeExporter commented 8 years ago
I was hoping to see a log with the debug messages. Run gnome-mplayer with the 
--reallyverbose option

Original comment by kdeko...@gmail.com on 13 Dec 2012 at 2:25

GoogleCodeExporter commented 8 years ago
Forgot to mention: both UI of gnome-mplayer freezes and there is no video 
display. However no problem with audio.

I tried to play another mkv file with --reallyverbose option and attached the 
output. It still stopped working but with an error message box: cannot open 
.mplayer/config file.

The debug messages in the 1st post were produced with "Verbose Debug Enabled" 
in the Preferences screen.

Hope these help.

Original comment by pinglipi...@gmail.com on 13 Dec 2012 at 2:57

Attachments:

GoogleCodeExporter commented 8 years ago
That didn't have the message I was looking for, how about the output of 
gnome-mplayer when G_MESSAGES_DEBUG is set

Also does xdg_screensaver hang on the command line?

Original comment by kdeko...@gmail.com on 13 Dec 2012 at 3:06