Avalonia crashes on RPI4 with bullseye when XDG_RUNTIME_DIR is set

This issue has been created since 2022-02-26.

Describe the bug
All my avalonia programs crash in a desktop terminal. If I launch them from SSH with display :0 they just work.
I narrowed down the difference to XDG_RUNTIME_DIR. If that variable is not set, the app starts correctly, otherwise all I get is a core dump

To Reproduce
Steps to reproduce the behavior:

  1. Open a built-in terminal.
  2. Verify that XDG_RUNTIME_DIR is configured
  3. Launch any avalonia app
  4. app generates a core dump
More Details About Repo
Owner Name AvaloniaUI
Repo Name Avalonia
Full Name AvaloniaUI/Avalonia
Language C#
Created Date 2013-12-05
Updated Date 2022-09-30
Star Count 15365
Watcher Count 446
Fork Count 1346
Issue Count 1258

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
[Idea] Discord Rich Presence Support 4 2022-08-15 2022-09-06
Feature Request: Diesel Engine 0 2022-08-14 2022-09-20
LearnPress version 4.0.3 require learnpress-paid-membership-pro version 4.0.0-beta-0 or higher 2 2021-05-17 2022-09-28
Need an option to generate documentation for all the endpoints, without adding `tags: ['api']` to each of them 3 2022-05-09 2022-09-09
A button towards the forum 12 2022-06-14 2022-09-26
Don't run the specified command as session leader? 1 2021-07-15 2022-07-29
Process hangs on M1 Mac 3 2021-12-13 2022-09-04
Usage with custom input components that depend on browser APIs 3 2021-11-09 2022-09-04
Documentation doesn't seem correct 0 2021-10-03 2022-09-21
LDT and LIS (possible) domain mismatch 0 2021-07-28 2022-09-06
Test failure in fct_dbt__model_executions 2 2021-08-02 2022-09-19
访问首页报“无效的token”错误 1 2021-07-22 2021-12-31
Support JSONB column type and query operators 4 2020-06-02 2022-09-21
House Information addon (Calendar) 2 2021-12-15 2022-08-21
Recommended Install Script 3 2021-03-29 2022-09-01
Unhandled IllegalArgumentException 0 2021-06-18 2022-09-18
problem 1.4.1 0 2021-09-08 2022-01-10
struct std::pair has no member named ‘DriverMode’ 1 2021-09-05 2022-09-26
Manually run migrations 1 2021-04-27 2022-08-11
Function definition missing - GetUtcStartOfWeekInTimeZone 2 2021-01-25 2022-09-20
Formatting was rejected because formatted text produced different diagnostics Debug.Assert 0 2021-11-13 2022-09-19
Load remote test cases 1 2021-04-13 2022-08-27
Environment variables are not loaded 2 2021-12-17 2022-09-03
Item views are overlapped when modal is coming 2 2022-07-15 2022-09-20
[Bug]: highlight_copy not working 4 2022-06-08 2022-09-24
Unable to package sentry-sdk with bentoML serve 1 2022-04-25 2022-08-31
Panic when value is missing 4 2022-01-04 2022-09-02
Verification performance drop with typeclasses 0 2022-06-07 2022-09-10
_italic_ doesn't show correctly 2 2022-06-13 2022-09-19
Alibi sample explainer in crashloop 4 2021-09-01 2022-09-14
[Platform] [Infineon] Door lock schedules save/restore fix along with asset update 0 2022-09-20 2022-09-16
question: does localstack support all services (e.g. rds) on a container running on windows? 9 2022-04-14 2022-09-16
M2M relational data not showing in side bar drawer 4 2022-08-27 2022-09-06
Improve debugging experience 0 2022-03-07 2022-09-22
java_binary doesn't work with runfiles 1 2022-08-10 2022-09-16
Refund not working 4 2021-09-24 2022-01-16
pseudo element doesn't update styles on Safari in development 3 2021-10-10 2022-09-21
Support for Windows 11 2 2021-11-22 2022-09-26
[BUG][PYTHON] Generated files have simple syntax errors from unescaped quotes 0 2022-09-07 2022-09-12
Bump node-fetch from 2.3.0 to 2.6.1 2 2020-09-11 2022-07-05
Use proper go logging instead of fmt.Printf everywhere 1 2022-02-22 2022-09-03
Failed write to /etc/passwd 4 2021-11-10 2022-09-27
Translate 'whatsnew/3.8.po' 0 2021-08-09 2022-09-18
Title & program icon are unaligned when using Microsoft.UI.Windowing.AppWindow 2 2022-05-03 2022-09-22
2.0.1 fails to find yaml-cpp 2 2021-08-05 2022-09-17
Code analysis fixes aren't available if > 2 check is associated with the fix 0 2022-08-19 2022-09-16
🕷️ add copy button to code section 🕷️ 2 2021-02-10 2022-09-08
多选日期设置selectedDateTimeList会报错 5 2019-11-03 2022-08-14
Headless option 0 2021-08-04 2021-12-28
`MulterError: File too large` not thrown when `fileSize` is floating point 0 2022-08-24 2022-09-22