hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
305 stars 48 forks source link

broken on aarch64: free(): invalid pointer #71

Closed nik012003 closed 1 year ago

nik012003 commented 1 year ago

xdg-desktop-portal fails to show anything on the screen on aarch64 (fedora asahi remix). It crashes with this backtrace:

2023/07/23 13:17:17 [ERROR] - xdpw: Could not find render node
2023/07/23 13:17:17 [ERROR] - xdpw: Could not find render node
free(): invalid pointer
[1]    160893 IOT instruction (core dumped)  ./xdg-desktop-portal-hyprland
#0  0x0000fffff7a8d908 in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x0000fffff7a44980 [PAC] in raise () from /lib64/libc.so.6
#2  0x0000fffff7a30284 [PAC] in abort () from /lib64/libc.so.6
#3  0x0000fffff7a8056c [PAC] in __libc_message () from /
lib64/libc.so.6
#4  0x0000fffff7a9888c [PAC] in malloc_printerr () from /lib64/libc.so.6
#5  0x0000fffff7a9a8d8 [PAC] in _int_free () from /lib64/libc.so.6
#6  0x0000fffff7a9d654 [PAC] in free () from /lib64/libc.so.6
#7  0x000000000041e374 [PAC] in spa_pod_dynamic_builder_clean (builder=0xffffffffd418) at /usr/include/spa-0.2/spa/pod/dynamic.h:54
#8  0x000000000041f648 in pwr_handle_stream_param_changed (data=0x52e640, id=0x4, param=0x48f748) at ../src/screencast/pipewire_screencast.c:334
#9  0x0000fffff7da03f0 in impl_port_set_param () from /lib64/libpipewire-0.3.so.0
#10 0x0000fffff7d9bcac [PAC] in pw_impl_port_set_param () from /lib64/libpipewire-0.3.so.0
#11 0x0000fffff72c56e8 [PAC] in client_node_port_set_param () from /usr/lib64/pipewire-0.3/libpipewire-module-client-node.so
#12 0x0000fffff72d43bc [PAC] in client_node_demarshal_port_set_param.lto_priv () from /usr/lib64/pipewire-0.3/libpipewire-module-client-node.so
#13 0x0000fffff7332504 [PAC] in process_remote () from /usr/lib64/pipewire-0.3/libpipewire-module-protocol-native.so
#14 0x0000fffff7332c34 [PAC] in on_remote_data () from /usr/lib64/pipewire-0.3/libpipewire-module-protocol-native.so
#15 0x0000fffff74c4634 [PAC] in loop_iterate () from /usr/lib64/spa-0.2/support/libspa-support.so
#16 0x00000000004112bc [PAC] in main (argc=0x1, argv=0xffffffffebb8) at ../src/core/main.c:243

It's worth noting that xdg-desktop-portal-wlr works fine. (and "xdpw: Could not find render node" appears on -wlr too, so that's not the problem)