[Bug 420546] Re: gnome-mplayer crashed with SIGSEGV in g_async_queue_length()

Kevin DeKorte kdekorte at gmail.com
Wed Sep 2 17:53:59 UTC 2009


I believe the reporter of this issue has the environment variable

export G_DEBUG=fatal_warnings

set. However, what is happening is that gnome-mplayer is shutting down
and trying to gracefully shutdown the threadpool for retrieving
metadata. But gtk is not handling a empty/flushed pool correctly and
issuing the error.

I put in a workaround to not call this function when running under the
control of gecko-mediaplayer

Index: src/gui.c
===================================================================
--- src/gui.c	(revision 1526)
+++ src/gui.c	(working copy)
@@ -1374,16 +1374,21 @@
     }
 
     mplayer_shutdown();
-    g_thread_pool_stop_unused_threads();
-    while (gtk_events_pending() || thread != NULL
-           || g_thread_pool_unprocessed(retrieve_metadata_pool)) {
-        gtk_main_iteration();
-    }
-    g_thread_pool_free(retrieve_metadata_pool, TRUE, TRUE);
 
-    if (control_id != 0)
+	if (control_id == 0) {
+		g_thread_pool_stop_unused_threads();
+		while (gtk_events_pending() || thread != NULL
+		       || g_thread_pool_unprocessed(retrieve_metadata_pool)) {
+		    gtk_main_iteration();
+		}
+		g_thread_pool_free(retrieve_metadata_pool, TRUE, TRUE);
+	} else {
+		while (gtk_events_pending() || thread != NULL) {
+		    gtk_main_iteration();
+		}
         dbus_cancel();
-
+	}
+	
     dbus_unhook();

-- 
gnome-mplayer crashed with SIGSEGV in g_async_queue_length()
https://bugs.launchpad.net/bugs/420546
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list