Comment 3 for bug 1876744

Revision history for this message
Paul Wise (Debian) (pabs) wrote : Re: [Bug 1876744] [NEW] g_thread_new() fails with "creating thread 'gps thread': Error creating thread: Resource temporarily unavailable".

Can you try increasing thread-max?

Your thread list doesn't look particularly long, hmm.

Looking at the GLib threads documentation it seems that you do need to
g_thread_unref if you aren't using g_thread_join indeed.

https://developer.gnome.org/glib/stable/glib-Threads.html#g-thread-new
https://developer.gnome.org/glib/stable/glib-Threads.html#g-thread-unref
https://codesearch.debian.net/search?q=g_thread_unref.*g_thread_new&literal=0

We have a number of calls to g_thread_new, so all of them will have to
get g_thread_unref added. If you would like to contribute a patch that
does that, that would be great, otherwise I can try to schedule some
time to work on it.

--
bye,
pabs

https://wiki.debian.org/PaulWise