adriantr09 / gecko-mediaplayer

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

gnome-mplayer stops showing video #118

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run gnome-mplayer http://192.168.0.100/sh.mp4

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

In several seconds gnome-mplayer (sometimes) shows black frame instead of 
video. Mplayer itself works fine (I tried 10 times).

What version of the product are you using? On what operating system?
1.0.0. Debian Squeeze, Intel video chip and standard driver (Intel Corporation 
Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)). Right before 
blask frame appears I see a warning about GTK_IS_WIDGET (widget) in xterm:

$ gnome-mplayer http://192.168.0.100/sh.mp4

(gnome-mplayer:30461): GLib-CRITICAL **: g_ascii_strncasecmp: assertion `s1 != 
NULL' failed

(gnome-mplayer:30461): Gtk-CRITICAL **: gtk_widget_set_size_request: assertion 
`GTK_IS_WIDGET (widget)' failed

(gnome-mplayer:30461): Gtk-CRITICAL **: gtk_widget_hide: assertion 
`GTK_IS_WIDGET (widget)' failed

(gnome-mplayer:30461): Gtk-CRITICAL **: gtk_widget_hide: assertion 
`GTK_IS_WIDGET (widget)' failed

 <black frame>

File is here: http://depositfiles.com/files/deymx21sh

Original issue reported on code.google.com by ksquirrel.iv@gmail.com on 15 Dec 2010 at 2:30

GoogleCodeExporter commented 8 years ago
this is a gnome-mplayer bug, and so should be in the gnome-mplayer bug 
tracker...

but try this patch..

Index: src/gui.c
===================================================================
--- src/gui.c   (revision 1803)
+++ src/gui.c   (working copy)
@@ -7258,6 +7258,9 @@
     controls_box = gtk_vbox_new(FALSE, 0);
     fixed = gtk_fixed_new();
     drawing_area = gtk_socket_new();
+#ifdef GTK2_18_ENABLED
+   gtk_widget_set_has_window(GTK_WIDGET(drawing_area), TRUE);
+#endif
     g_signal_connect(drawing_area, "realize", G_CALLBACK(drawing_area_realized), NULL);

     cover_art = gtk_image_new();

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 3:03

GoogleCodeExporter commented 8 years ago
It seems to help a little bit, but sometimes (less than usual) it still shows 
black screen, and "Gtk-CRITICAL **: gtk_widget_set_size_request: assertion 
`GTK_IS_WIDGET (widget)' failed" in xterm

Original comment by ksquirrel.iv@gmail.com on 15 Dec 2010 at 9:44

GoogleCodeExporter commented 8 years ago
Hum, I did a large amount of similar testing on my own machines here, and was 
never able to duplicate the problem before or after the patch, I though this 
patch might help some and it appears it did, but the error is still odd. 

You could try debugging it by opening a terminal

setting

export G_DEBUG=fatal_warnings

and then running gnome-mplayer under gdb

when it crashes, type 'bt' and post the output.

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 9:49

GoogleCodeExporter commented 8 years ago
It doesn't crash, I can see player controls and progress bar is running. But a 
black screen instead of video.

Original comment by ksquirrel.iv@gmail.com on 15 Dec 2010 at 9:54

GoogleCodeExporter commented 8 years ago
When the G_DEBUG is set, it will crash on the Gtk-CRITICAL error, that is what 
that flag does.

Does resizing the window make the video appear?

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 9:58

GoogleCodeExporter commented 8 years ago
I'll try that.

No, If I resize this window, I can see only assertions I mentioned above (one 
assert per one resize event I think). The video frame remains black.

Original comment by ksquirrel.iv@gmail.com on 15 Dec 2010 at 10:02

GoogleCodeExporter commented 8 years ago
Got another assert during testing -

** CRITICAL **: dbus_g_proxy_disconnect_signal: assertion 
`!DBUS_G_PROXY_DESTROYED (proxy)' failed
aborting...

Original comment by ksquirrel.iv@gmail.com on 15 Dec 2010 at 10:14

GoogleCodeExporter commented 8 years ago
Seen that error on occasion, it seems to be harmless and is no way related to a 
blank screen.

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 10:21

GoogleCodeExporter commented 8 years ago
What version of GTK are you using?

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 10:21

GoogleCodeExporter commented 8 years ago
Might want to try SVN r1809 and see if that is any better. Next time you get 
the Gtk-CRITICAL **: gtk_widget_set_size_request: assertion `GTK_IS_WIDGET 
(widget)' failed"

Error please post the full gnome-mplayer -v output, I want to see that flags 
that are being passed to mplayer.

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 10:28

GoogleCodeExporter commented 8 years ago
log

Original comment by ksquirrel.iv@gmail.com on 15 Dec 2010 at 10:47

Attachments:

GoogleCodeExporter commented 8 years ago
Is that a log from the r1809 version? Also are you building inside of a build 
services, or vm or anything else? 

Also you have not answered what version of GTK you are using?

It also appears you have problems with your sound devices or the configuration 
of them.

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 10:55

GoogleCodeExporter commented 8 years ago
it's previous revision, 1808.

>>Also are you building inside of a build services

I am building on a separate build server with the same distro as host system

>>Also you have not answered what version of GTK you are using?

2.20.1 from Debian: http://packages.debian.org/squeeze/libgtk2.0-0

>>It also appears you have problems with your sound devices or the 
configuration of them.

It seems that gnome-mplayer sometimes doesn't kill mplayer slave, so I have 
several unused mplayer processes running.

Original comment by ksquirrel.iv@gmail.com on 15 Dec 2010 at 11:46

GoogleCodeExporter commented 8 years ago
I had a case a couple of weeks ago where the build server created a 
gnome-mplayer binary that crashed alot. So you might want to look into 
compiling directly from source. 

The output looks pretty similar to what you are getting

http://code.google.com/p/gnome-mplayer/issues/detail?id=419&can=1&q=build

If mplayer doesn't kill the slave, you need to upgrade mplayer. I'm using 
mplayer  SVN-r32678, your rc3 is quite old according the mplayer website

Original comment by kdeko...@gmail.com on 15 Dec 2010 at 11:55

GoogleCodeExporter commented 8 years ago
>>So you might want to look into compiling directly from source. 

It's my own build server with standard Debian installed, I built gnome-mplayer 
and gecko-mediaplayer on it from source

Original comment by ksquirrel.iv@gmail.com on 16 Dec 2010 at 12:39

GoogleCodeExporter commented 8 years ago
In the current SVN code the mplayer backend and window handling code has been 
completely reworked. Testing the video here seems to work pretty well. Let me 
know if it works for you.

Original comment by kdeko...@gmail.com on 31 May 2011 at 2:50