Maven/Gradle project crashes GNOME-Builder
Reproduction:
- Clone maven project (E.g. https://github.com/jcwasmx86/i2m) or gradle project (E.g. https://github.com/JCWasmx86/Conquer)
- Attempt to open it
Log:
12:57:02.2589 ide-pipeline[ 327]: DEBUG: initializing build pipeline with device IdeLocalDevice
12:57:02.2603 gbp-flatpak-pipeline-addin[ 327]: MESSAGE: Not using flatpak manifest, refusing to add flatpak build pipeline stages
12:57:02.2603 ide-pipeline[ 327]: DEBUG: GbpFlatpakPipelineAddin loaded in 0.000027 seconds
12:57:02.2603 ide-pipeline[ 327]: DEBUG: GbpCMakePipelineAddin loaded in 0.000005 seconds
12:57:02.2604 ide-pipeline[ 327]: DEBUG: IdeBuildconfigPipelineAddin loaded in 0.000002 seconds
12:57:02.2604 ide-pipeline[ 327]: DEBUG: GbpNpmPipelineAddin loaded in 0.000002 seconds
12:57:02.2604 ide-pipeline[ 327]: DEBUG: GbpGradlePipelineAddin loaded in 0.000002 seconds
12:57:02.2604 ide-pipeline[ 327]: DEBUG: GbpPhpizePipelineAddin loaded in 0.000002 seconds
12:57:02.2604 ide-pipeline[ 327]: DEBUG: IdeNotificationAddin loaded in 0.000004 seconds
12:57:02.2604 ide-pipeline[ 327]: DEBUG: GbpBuildstreamPipelineAddin loaded in 0.000002 seconds
12:57:02.2608 ide-pipeline[ 327]: DEBUG: GbpGitPipelineAddin loaded in 0.000306 seconds
12:57:02.2608 ide-pipeline[ 327]: DEBUG: GbpMesonPipelineAddin loaded in 0.000005 seconds
12:57:02.2608 ide-pipeline[ 327]: DEBUG: GbpMonoPipelineAddin loaded in 0.000021 seconds
12:57:02.2609 ide-pipeline[ 327]: DEBUG: GbpWafPipelineAddin loaded in 0.000003 seconds
12:57:02.2609 ide-pipeline[ 327]: DEBUG: RustAnalyzerPipelineAddin loaded in 0.000002 seconds
12:57:02.2609 ide-pipeline[ 327]: DEBUG: GbpCargoPipelineAddin loaded in 0.000002 seconds
12:57:02.2609 ide-pipeline[ 327]: DEBUG: GbpMakePipelineAddin loaded in 0.000001 seconds
12:57:02.2609 ide-pipeline[ 327]: DEBUG: GbpValacPipelineAddin loaded in 0.000007 seconds
12:57:02.2609 ide-pipeline[ 327]: DEBUG: IdeAutotoolsPipelineAddin loaded in 0.000003 seconds
12:57:02.2609 ide-pipeline[ 327]: DEBUG: GbpGccPipelineAddin loaded in 0.000007 seconds
[Detaching after fork from child process 422]
12:57:02.2736 ide-pipeline[ 327]: DEBUG: GbpMavenPipelineAddin loaded in 0.012664 seconds
[Thread 0x7fff97d71640 (LWP 362) exited]
12:57:02.3708 GLib[ 327]: CRITICAL: g_shell_parse_argv: assertion 'command_line != NULL' failed
12:57:02.3709 ide-task[ 327]: CRITICAL: IdeTask [../src/plugins/maven/gbp-maven-run-command-provider.c:168] finalized before completing
12:57:02.3711 ide-run-commands[ 327]: DEBUG: Failed to list run commands from GbpMakeRunCommandProvider: Not a make build system
12:57:02.3711 ide-run-commands[ 327]: DEBUG: Failed to list run commands from GbpCargoRunCommandProvider: Not a cargo build system
12:57:02.3711 ide-run-commands[ 327]: DEBUG: Failed to list run commands from GbpWafRunCommandProvider: Not a waf build system
12:57:02.3711 ide-run-commands[ 327]: DEBUG: Failed to list run commands from GbpMesonRunCommandProvider: Cannot list run commands without a meson-based pipeline
12:57:02.3711 ide-run-commands[ 327]: DEBUG: Failed to list run commands from GbpGradleRunCommandProvider: Not a gradle build system
12:57:02.3711 ide-run-commands[ 327]: DEBUG: Failed to list run commands from GbpNpmRunCommandProvider: Not a npm build system
12:57:02.3711 ide-run-commands[ 327]: DEBUG: Failed to list run commands from GbpFlatpakRunCommandProvider: Project is not configured with flatpak, cannot list commands
**
gbp-maven-run-command-provider:ERROR:../src/plugins/maven/gbp-maven-run-command-provider.c:55:find_test_files_cb: assertion failed: (IDE_IS_TASK (task))
Bail out! gbp-maven-run-command-provider:ERROR:../src/plugins/maven/gbp-maven-run-command-provider.c:55:find_test_files_cb: assertion failed: (IDE_IS_TASK (task))
Thread 1 "gnome-builder" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007ffff248a1f3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007ffff243800e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007ffff24217fc in __GI_abort () at abort.c:79
#4 0x00007ffff7a65e28 in g_assertion_message (domain=<optimized out>, file=0x555555952958 "../src/plugins/maven/gbp-maven-run-command-provider.c", line=<optimized out>, func=<optimized out>, message=<optimized out>)
at ../glib/gtestutils.c:3256
#5 0x00007ffff7ac9a37 in g_assertion_message_expr
(domain=domain@entry=0x555555952990 "gbp-maven-run-command-provider", file=file@entry=0x555555952958 "../src/plugins/maven/gbp-maven-run-command-provider.c", line=line@entry=55, func=func@entry=0x555555952a60 <__func__.0> "find_test_files_cb", expr=expr@entry=0x5555558e2443 "IDE_IS_TASK (task)") at ../glib/gtestutils.c:3282
#6 0x0000555555814ac6 in find_test_files_cb (object=object@entry=0x555558611e80 [GLocalFile], result=0x555559a8d970, user_data=user_data@entry=0x5555588dfa60) at ../src/plugins/maven/gbp-maven-run-command-provider.c:55
#7 0x000055555572572a in ide_task_return_cb (user_data=0x555558593680) at ../src/libide/threading/ide-task.c:1004
#8 0x00007ffff7a9e5a1 in g_main_dispatch (context=<optimized out>) at ../glib/gmain.c:3442
#9 g_main_context_dispatch (context=<optimized out>) at ../glib/gmain.c:4160
#10 0x00007ffff7a9eaf8 in g_main_context_iterate (context=context@entry=0x5555563bc210, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4236
#11 0x00007ffff7a9eb93 in g_main_context_iteration (context=context@entry=0x5555563bc210, may_block=may_block@entry=1) at ../glib/gmain.c:4301
#12 0x00007ffff7ce0acd in g_application_run (application=0x5555563be480 [IdeApplication], argc=argc@entry=1, argv=argv@entry=0x7fffffffdee8) at ../gio/gapplication.c:2571
#13 0x00005555555fb80f in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:307
Full backtrace:
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
tid = <optimized out>
ret = 0
pd = <optimized out>
old_mask = {__val = {0, 140737488344848, 140737349426424, 140737259738528, 93825065128960, 163, 140737259738528, 140737259721760, 140737488344864, 140737258143459, 93825065128960, 140737259738760, 93825065128960, 140737259738760, 140737488345136, 140737348534905}}
ret = <optimized out>
#1 0x00007ffff248a1f3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007ffff243800e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
ret = <optimized out>
#3 0x00007ffff24217fc in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x555558d5adc0, sa_sigaction = 0x555558d5adc0}, sa_mask = {__val = {176, 140737488345296, 140737348660531, 140737488345168, 0, 8589924480, 93825063840896, 140737488345224, 93823560581120, 140737348911441, 140736146178048, 93825063840896, 0, 0, 9031824117271806464, 140737488345408}}, sa_flags = 1503259776, sa_restorer = 0x555555952990}
sigs = {__val = {32, 2048, 1024, 1, 93824996419928, 140737488345312, 140737488345072, 93825050979776, 140737488345136, 93825050979776, 93825006794752, 176, 93825063840896, 176, 140737488345136, 140737348645223}}
#4 0x00007ffff7a65e28 in g_assertion_message (domain=<optimized out>, file=0x555555952958 "../src/plugins/maven/gbp-maven-run-command-provider.c", line=<optimized out>, func=<optimized out>, message=<optimized out>)
at ../glib/gtestutils.c:3256
lstr = "55\000\377\377\177\000\000\000\302ʗ.|W}PըYUU\000\000C$\216UUU\000"
s = 0x55555999ec80 "\300\355\231YUU"
#5 0x00007ffff7ac9a37 in g_assertion_message_expr
(domain=domain@entry=0x555555952990 "gbp-maven-run-command-provider", file=file@entry=0x555555952958 "../src/plugins/maven/gbp-maven-run-command-provider.c", line=line@entry=55, func=func@entry=0x555555952a60 <__func__.0> "find_test_files_cb", expr=expr@entry=0x5555558e2443 "IDE_IS_TASK (task)") at ../glib/gtestutils.c:3282
s = 0x555559a7d890 "assertion failed: (IDE_IS_TASK (task))"
#6 0x0000555555814ac6 in find_test_files_cb (object=object@entry=0x555558611e80 [GLocalFile], result=0x555559a8d970, user_data=user_data@entry=0x5555588dfa60) at ../src/plugins/maven/gbp-maven-run-command-provider.c:55
basedir = 0x555558611e80
task = 0x5555588dfa60
files = 0x0
error = 0x0
store = <optimized out>
srcdir = <optimized out>
__func__ = "find_test_files_cb"
#7 0x000055555572572a in ide_task_return_cb (user_data=0x555558593680) at ../src/libide/threading/ide-task.c:1004
self = 0x555559a8d970
result = 0x0
result_copy = 0x0
cancellable = 0x0
source_object = 0x555558611e80
chained = 0x0
callback = 0x5555558145f0 <find_test_files_cb>
callback_data = 0x5555588dfa60
__func__ = "ide_task_return_cb"
#8 0x00007ffff7a9e5a1 in g_main_dispatch (context=<optimized out>) at ../glib/gmain.c:3442
dispatch = 0x7ffff7a9a340 <g_idle_dispatch>
prev_source = 0x0
begin_time_nsec = 83490059089833
was_in_call = 0
user_data = 0x555558593680
callback = 0x555555725400 <ide_task_return_cb>
cb_funcs = 0x7ffff7b812c0 <g_source_callback_funcs>
cb_data = 0x55555711c060
--Type <RET> for more, q to quit, c to continue without paging--
need_destroy = <optimized out>
source = 0x5555599aef50
current = 0x555556345980
i = 8
__func__ = "g_main_dispatch"
#9 g_main_context_dispatch (context=<optimized out>) at ../glib/gmain.c:4160
#10 0x00007ffff7a9eaf8 in g_main_context_iterate (context=context@entry=0x5555563bc210, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4236
max_priority = 121
timeout = 0
some_ready = 1
nfds = 7
allocated_nfds = <optimized out>
fds = <optimized out>
begin_time_nsec = 83490059020599
#11 0x00007ffff7a9eb93 in g_main_context_iteration (context=context@entry=0x5555563bc210, may_block=may_block@entry=1) at ../glib/gmain.c:4301
retval = <optimized out>
#12 0x00007ffff7ce0acd in g_application_run (application=0x5555563be480 [IdeApplication], argc=argc@entry=1, argv=argv@entry=0x7fffffffdee8) at ../gio/gapplication.c:2571
arguments = 0x55555665d8d0
status = 0
context = 0x5555563bc210
acquired_context = <optimized out>
__func__ = "g_application_run"
#13 0x00005555555fb80f in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:307
messages_debug = 0x0
app = 0x5555563be480 [IdeApplication]
desktop = <optimized out>
standalone = 0
ret = <optimized out>
For the gradle project it is exact the same backtrace, except with s/maven/gradle/
(gnome-builder:425): Gtk-CRITICAL **: 12:59:31.722: Unable to connect to the accessibility bus at 'unix:path=/run/user/1000/at-spi/bus': Could not connect: No such file or directory
12:59:38.4096 ide-task[ 425]: CRITICAL: IdeTask [../src/plugins/gradle/gbp-gradle-run-command-provider.c:154] finalized before completing
**
gbp-gradle-run-command-provider:ERROR:../src/plugins/gradle/gbp-gradle-run-command-provider.c:55:find_test_files_cb: assertion failed: (IDE_IS_TASK (task))
Bail out! gbp-gradle-run-command-provider:ERROR:../src/plugins/gradle/gbp-gradle-run-command-provider.c:55:find_test_files_cb: assertion failed: (IDE_IS_TASK (task))
Aborted (core dumped)