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 701438 - GLib-ERROR **: Creating pipes for GWakeup: Too many open files
GLib-ERROR **: Creating pipes for GWakeup: Too many open files
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2013-06-01 18:00 UTC by Mike J
Modified: 2020-03-17 09:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Banshee debug log (32.71 KB, text/plain)
2013-06-01 18:00 UTC, Mike J
Details
Log of running 'banshee --debug', then waiting about 2 minutes. (12.49 KB, text/plain)
2013-06-10 10:50 UTC, Will Thompson
Details
dpkg.log for changes since Banshee last worked. (205.76 KB, text/plain)
2013-06-10 10:51 UTC, Will Thompson
Details
debug log crashes during samba scan (8.46 KB, text/plain)
2014-03-26 20:21 UTC, kafkaesque1978
Details

Description Mike J 2013-06-01 18:00:01 UTC
Created attachment 245833 [details]
Banshee debug log

Banshee returns this error, and a few others after crash, during debug. I have a debug text file for review. Would really like to know what I can do to fix this, as Banshee is the only Media player that  at this points recognizes my media files on a local server!
Comment 1 Allison Karlitskaya (desrt) 2013-06-01 18:27:43 UTC
These many many earlier messages:

(Banshee:2364): GLib-CRITICAL **: g_main_context_push_thread_default: assertion `acquired_context' failed

(Banshee:2364): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed

(Banshee:2364): GLib-CRITICAL **: g_main_context_push_thread_default: assertion `acquired_context' failed

(Banshee:2364): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed


indicate that banshee is probably leaking GMainContext instances (which would indeed cause GWakeup to exhaust the number of available fds).

Moving this over to be a banshee bug until there is evidence to the contrary.
Comment 2 Will Thompson 2013-06-10 10:50:07 UTC
Created attachment 246392 [details]
Log of running 'banshee --debug', then waiting about 2 minutes.

I've just started seeing this too. I don't even have to play any music: I just launch Banshee, and 2 minutes later it crashes. My debug log shows a lot of "attempting to add an interface … after class_init" messages, but none of those assertion failures.

/var/log/dpkg.log shows that I upgraded from 2.4.1 to 2.6.1 a few days ago:

2013-06-06 09:06:34 upgrade banshee-dbg:amd64 2.4.1-3+b1 2.6.1-2

But I am sure that Banshee worked on Friday 7th. Yesterday I upgraded a whole lot of other things, so I suspect one of them may have triggered this. I will also attach the relevant section of my dpkg.log for Sunday.
Comment 3 Will Thompson 2013-06-10 10:51:15 UTC
Created attachment 246393 [details]
dpkg.log for changes since Banshee last worked.
Comment 4 Christopher Halse Rogers 2014-01-24 02:34:15 UTC
I see the same error, although not after 2 minutes; mine was after days of use, and with trunk rather than 2.6.

However, my log contains endless spew of
"""
(Banshee:14370): GLib-CRITICAL **: Source ID 84734 was not found when attempting to remove it
"""
with differing Source ID.

I'm not sure if this is the same as yours, but it looks like GLib# might be doing something that glib isn't happy with.
Comment 5 Christopher Halse Rogers 2014-01-24 02:38:56 UTC
Oh, interesting. This seems to be triggered by my Nexus 4 going insane and flying into a mount/unmount loop many times a second.

Disabling the DAP plugins seems to avoid the problem.

The GLib-CRITICAL remains, but is apparently not related to this.
Comment 6 Andrés G. Aragoneses (IRC: knocte) 2014-01-24 02:41:39 UTC
Mike, Will, can you guys confirm what Chris says? Does the bug disappear if you disable the DAP plugins?
Comment 7 kafkaesque1978 2014-03-26 20:21:47 UTC
Created attachment 273021 [details]
debug log crashes during samba scan

I'm getting this when I scan my samba media shares. Banshee crashes and I can't complete the scanning process. Debug log provided.
Comment 8 Andrés G. Aragoneses (IRC: knocte) 2014-03-26 20:24:54 UTC
(In reply to comment #7)
> Created an attachment (id=273021) [details]
> debug log crashes during samba scan
> 
> I'm getting this when I scan my samba media shares. Banshee crashes and I can't
> complete the scanning process. Debug log provided.

I don't see any GWakeup mentions in that log?
Comment 9 kafkaesque1978 2014-03-26 22:29:55 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Created an attachment (id=273021) [details] [details]
> > debug log crashes during samba scan
> > 
> > I'm getting this when I scan my samba media shares. Banshee crashes and I can't
> > complete the scanning process. Debug log provided.
> 
> I don't see any GWakeup mentions in that log?

You're right. This is the information from the terminal. I assumed it would be duplicated in the log.

xxx@1810TZ:~$ banshee --debug > ~/banshee_debug

(Banshee:30171): GLib-CRITICAL **: g_main_context_push_thread_default: assertion `acquired_context' failed

(Banshee:30171): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed

(Banshee:30171): GLib-CRITICAL **: g_main_context_push_thread_default: assertion `acquired_context' failed

(Banshee:30171): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed

(Banshee:30171): GLib-CRITICAL **: g_main_context_push_thread_default: assertion `acquired_context' failed

(Banshee:30171): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed

(Banshee:30171): GLib-ERROR **: Creating pipes for GWakeup: Too many open files

Trace/breakpoint trap
Comment 10 André Klapper 2020-03-17 09:52:52 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.