GNOME Bugzilla – Bug 783091
Builder crashes with ide_langserv_client_call_cb: assertion failed: (G_IS_TASK (task))
Last modified: 2018-01-11 10:31:16 UTC
Created attachment 352573 [details] console output The Gnome-Builder crashes randomly when working on a Rust project. The last output lines read 15:15:53.0368 ide-langserv-client[ 3]: WARNING: Failed to initialize language server: Error writing to file descriptor: Broken pipe ** ide-langserv-client:ERROR:langserv/ide-langserv-client.c:1039:ide_langserv_client_call_cb: assertion failed: (G_IS_TASK (task))
Created attachment 352582 [details] G_MESSAGES_DEBUG=all flatpak run org.gnome.Builder stdout
Created attachment 352583 [details] G_MESSAGES_DEBUG=all flatpak run org.gnome.Builder stderr
I think the main problem here is how we are handling panic of our input/output streams (which happens if rls crashes, especially during startup). Lots of things can cause rls to crash. Especially missing or miss-configured LD_LIBRARY_PATH to rust libraries, improper sysroot, etc. What I think we need to focus on in a fix is changing our internal input/output stream handling code to deal with closing the GIOStream, and not the individual child streams (which seems to get us into some weird ref-count ordering issue).
:) https://imgur.com/CbDozzi
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/241.