Builder crashes when opening a new file
Sometimes, when opening a new file, builder just silently crashes (closes). These crashes are somewhat reproducible, in the sense that if I reopen the app and try to open the offending file, Builder goes down again. This happens for a while, and then stops. Usually, the crashes happen with certain files, or when switching between files using the project tree. (One file that seems to be crash happy is here. It's a fairly big JS file with a couple of gettext warnings. eslint is enabled in the project but has no diagnostics).
The logs don't appear to show anything useful or related, even with G_MESSAGES_DEBUG=all.
Here is the backtrace of the main thread, where the crash occurs:
#0 0x00007ffff32d1965 in raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:50
set =
{__val = {0, 0, 0, 140737348524807, 93825052969104, 93825034961312, 140737488343792, 140737349687296, 93825007731648, 140737349658346, 140737488343344, 93825052969104, 93825052969104, 140737349616204, 2684420098, 11482615445535448064}}
pid = <optimized out>
tid = <optimized out>
#4 0x00007ffff7bd0113 in <emit signal ??? on instance 0x5555563b0700 [GDBusConnection]> (instance=<optimized out>, signal_id=<optimized out>, detail=detail@entry=0)
at ../gobject/gsignal.c:3554
var_args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffffffd660, reg_save_area = 0x7fffffffd5a0}}
#1 0x00007ffff7bb0862 in g_closure_invoke (closure=0x555556414320, return_value=0x0, n_param_values=3, param_values=0x7fffffffd3a0, invocation_hint=0x7fffffffd320)
at ../gobject/gclosure.c:810
marshal = 0x7ffff7baed70 <g_type_class_meta_marshal>
marshal_data = 0x88
in_marshal = 0
real_closure = 0x555556414300
__func__ = "g_closure_invoke"
#2 0x00007ffff7bc3ff6 in signal_emit_unlocked_R
(node=node@entry=0x55555641c3c0, detail=detail@entry=0, instance=instance@entry=0x5555563b0700, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fffffffd3a0) at ../gobject/gsignal.c:3780
accumulator = 0x0
emission =
{next = 0x0, instance = 0x5555563b0700, ihint = {signal_id = 4, detail = 0, run_type = G_SIGNAL_RUN_LAST}, state = EMISSION_RUN, chain_type = 0x55555641c240 [GDBusConnection]}
class_closure = 0x555556414320
hlist = <optimized out>
handler_list = <optimized out>
return_accu = 0x0
accu =
{g_type = 0x0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
signal_id = 4
max_sequential_handler_number = 23584
return_value_altered = 1
#3 0x00007ffff7bcfbde in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7fffffffd580)
at ../gobject/gsignal.c:3498
instance_and_params = 0x7fffffffd3a0
signal_return_type = <optimized out>
param_values = 0x7fffffffd3b8
node = <optimized out>
i = <optimized out>
n_params = <optimized out>
__func__ = "g_signal_emit_valist"
--Type <RET> for more, q to quit, c to continue without paging--
#5 0x00007ffff7d0a2a6 in emit_closed_in_idle (user_data=0x555559278f20) at ../gio/gdbusconnection.c:1380
result = 21845
#6 0x00007ffff7ac4b3e in g_main_dispatch (context=0x555556406160) at ../glib/gmain.c:3272
dispatch = 0x7ffff7ac0e60 <g_idle_dispatch>
prev_source = 0x0
was_in_call = 0
user_data = 0x555559278f20
callback = 0x7ffff7d0a250 <emit_closed_in_idle>
cb_funcs = 0x7ffff7b9a280 <g_source_callback_funcs>
cb_data = 0x555558e8e7e0
need_destroy = <optimized out>
source = 0x555557de7080
current = 0x5555563a6d70
i = 0
__func__ = "g_main_dispatch"
#7 0x00007ffff7ac4b3e in g_main_context_dispatch (context=context@entry=0x555556406160) at ../glib/gmain.c:3937
#8 0x00007ffff7ac4ef0 in g_main_context_iterate (context=context@entry=0x555556406160, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
at ../glib/gmain.c:4010
max_priority = 0
timeout = 0
some_ready = 1
nfds = <optimized out>
allocated_nfds = <optimized out>
fds = 0x555557f3fc20
#9 0x00007ffff7ac4f93 in g_main_context_iteration (context=context@entry=0x555556406160, may_block=may_block@entry=1) at ../glib/gmain.c:4071
retval = <optimized out>
#10 0x00007ffff7ce3a95 in g_application_run (application=0x555556442120 [IdeApplication], argc=<optimized out>, argv=<optimized out>) at ../gio/gapplication.c:2559
arguments = 0x55555647d670
status = 0
context = 0x555556406160
acquired_context = 1
__func__ = "g_application_run"
#11 0x00005555555f2e78 in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:287
plugin = 0x0
type = 0x0
dbus_address = 0x0
app = 0x555556442120 [IdeApplication]
desktop = <optimized out>
standalone = 0
ret = <optimized out>
This is inside flatpak, with today's nightly build.