Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in xdp_dbus_impl_global_shortcuts_call_bind_shortcuts #1272

Open
nicolasfella opened this issue Jan 29, 2024 · 0 comments
Open

Crash in xdp_dbus_impl_global_shortcuts_call_bind_shortcuts #1272

nicolasfella opened this issue Jan 29, 2024 · 0 comments
Labels
bug portal: global shortcuts Global shortcuts portal

Comments

@nicolasfella
Copy link
Contributor

Operating System

Fedora 39

XDG Desktop Portal version

1.18

XDG Desktop Portal version (Other)

No response

Desktop Environment

KDE

Desktop Environment (Other)

No response

Expected Behavior

Not a crash

Current Behavior

#0  g_log_structured_array (log_level=log_level@entry=G_LOG_LEVEL_ERROR, fields=fields@entry=0x7ff5ee4da0e0, n_fields=4) at ../glib/gmessages.c:556
#1  0x00007ff615368edc in g_log_default_handler
    (log_domain=log_domain@entry=0x7ff6153c70be "GLib", log_level=log_level@entry=6, message=message@entry=0x7ff5e400cb40 "g_variant_new: expected GVariant of type 'a(sa{sv})' but received value has type '(null)'", unused_data=unused_data@entry=0x0) at ../glib/gmessages.c:3284
#2  0x00007ff615369180 in g_logv (log_domain=0x7ff6153c70be "GLib", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7ff5ee4da240)
    at ../glib/gmessages.c:1392
#3  0x00007ff615369463 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at ../glib/gmessages.c:1461
#4  0x00007ff6153ab63f in g_variant_valist_new_nnp (str=str@entry=0x7ff5ee4da428, ptr=0x0) at ../glib/gvariant.c:4912
#5  0x00007ff6153abcba in g_variant_valist_new_leaf (app=0x7ff5ee4da450, str=0x7ff5ee4da428) at ../glib/gvariant.c:5069
#6  0x00007ff6153abb71 in g_variant_valist_new (str=str@entry=0x7ff5ee4da428, app=app@entry=0x7ff5ee4da450) at ../glib/gvariant.c:5303
#7  0x00007ff6153ac140 in g_variant_new_va (format_string=<optimized out>, 
    format_string@entry=0x55812f771ea5 "(oo@a(sa{sv})s@a{sv})", endptr=endptr@entry=0x0, app=app@entry=0x7ff5ee4da450) at ../glib/gvariant.c:5479
#8  0x00007ff6153ac278 in g_variant_new (format_string=format_string@entry=0x55812f771ea5 "(oo@a(sa{sv})s@a{sv})") at ../glib/gvariant.c:5414
#9  0x000055812f743407 in xdp_dbus_impl_global_shortcuts_call_bind_shortcuts
    (cancellable=0x0, callback=0x55812f742eb0 <shortcuts_bound_cb>, user_data=0x7ff5e4005110, arg_options=0x7ff5e400d460, arg_parent_window=0x7ff5fc008cc0 "wayland:8c34497c-be9c-469f-8d4c-91fdb2ab80ea", arg_shortcuts=0x0, arg_session_handle=0x7ff5fc0260e0 "/org/freedesktop/portal/desktop/session/1_516/XdpPortalTest", arg_handle=<optimized out>, proxy=0x55812ff592a0) at src/xdp-impl-dbus.c:15040
#10 handle_bind_shortcuts
    (object=<optimized out>, invocation=0x7ff5fc000ef0, arg_session_handle=0x7ff5fc0260e0 "/org/freedesktop/portal/desktop/session/1_516/XdpPortalTest", arg_shortcuts=<optimized out>, arg_parent_window=0x7ff5fc008cc0 "wayland:8c34497c-be9c-469f-8d4c-91fdb2ab80ea", arg_options=<optimized out>) at ../src/global-shortcuts.c:437
#11 0x000055812f7023b2 in _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_VARIANT_STRING_VARIANT
    (invocation_hint=<optimized out>, marshal_data=0x55812f743130 <handle_bind_shortcuts>, param_values=0x7ff5e40082c0, n_param_values=<optimized out>, return_value=0x7ff5ee4da910, closure=0x55813001c4a0) at src/xdp-dbus.c:1491
#12 xdp_dbus_global_shortcuts_method_marshal_bind_shortcuts
    (closure=0x55813001c4a0, return_value=0x7ff5ee4da910, n_param_values=<optimized out>, param_values=0x7ff5e40082c0, invocation_hint=<optimized out>, marshal_data=0x55812f743130 <handle_bind_shortcuts>) at src/xdp-dbus.c:25699
#13 0x00007ff6150e652a in g_closure_invoke
    (closure=0x55813001c4a0, return_value=0x7ff5ee4da910, n_param_values=6, param_values=0x7ff5e40082c0, invocation_hint=0x7ff5ee4da8f0) at ../gobject/gclosure.c:832
#14 0x00007ff615115688 in signal_emit_unlocked_R.isra.0
    (node=<optimized out>, detail=detail@entry=0, instance=instance@entry=0x55813001db30, emission_return=emission_return@entry=0x7ff5ee4daad0, instance_and_params=instance_and_params@entry=0x7ff5e40082c0) at ../gobject/gsignal.c:4020
#15 0x00007ff615102d3b in signal_emitv_unlocked (return_value=0x7ff5e40082c0, detail=0, signal_id=122, instance_and_params=0x7ff5ee4daa80) at ../gobject/gsignal.c:3304
#16 g_signal_emitv
    (instance_and_params=instance_and_params@entry=0x7ff5e40082c0, signal_id=signal_id@entry=122, detail=detail@entry=0, return_value=return_value@entry=0x7ff5ee4daad0) at ../gobject/gsignal.c:3204
#17 0x000055812f70860b in _xdp_dbus_global_shortcuts_skeleton_handle_method_call
    (connection=<optimized out>, sender=sender@entry=0x55813002e460 ":1.516", object_path=object_path@entry=0x7ff5fc025580 "/org/freedesktop/portal/desktop", interface_name=interface_name@entry=0x7ff5fc001bf0 "org.freedesktop.portal.GlobalShortcuts", method_name=method_name@entry=0x7ff5fc025ca0 "BindShortcuts", parameters=parameters@entry=0x7ff5fc007f90, invocation=0x7ff5fc000ef0, user_data=0x55813001db30) at src/xdp-dbus.c:26879
#18 0x00007ff61525d3b7 in dispatch_in_thread_func (task=0x55813002e090, source_object=<optimized out>, task_data=0x7ff5fc00edd0, cancellable=<optimized out>)
    at ../gio/gdbusinterfaceskeleton.c:545
#19 0x00007ff6151e9774 in g_task_thread_pool_thread (thread_data=0x55813002e090, pool_data=<optimized out>) at ../gio/gtask.c:1593
#20 0x00007ff615398db2 in g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/gthreadpool.c:350
#21 0x00007ff615394523 in g_thread_proxy (data=0x7ff5f8000b90) at ../glib/gthread.c:831
#22 0x00007ff614d56897 in start_thread (arg=<optimized out>) at pthread_create.c:444
#23 0x00007ff614ddd6fc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Steps to Reproduce

  1. Run xdg-portal-test-kde
  2. Click "Configure Shortcuts"

Anything else we should know?

No response

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jan 29, 2024
@GeorgesStavracas GeorgesStavracas moved this from Needs Triage to Triaged in Triage Jan 30, 2024
@GeorgesStavracas GeorgesStavracas added the portal: global shortcuts Global shortcuts portal label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug portal: global shortcuts Global shortcuts portal
Projects
Status: Triaged
Development

No branches or pull requests

2 participants