Skip to content

Fix SIGSEGV when XMODIFIERS environment is missing #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

acrylic-style
Copy link

@acrylic-style acrylic-style commented Jun 26, 2025

I was investigating getting SIGSEGV when loading the Minecraft with Prism Launcher and X11, and I found that XMODIFIERS environment variable is missing, causing the XIM to support only basic input styles.
This PR fixes that and adds debug logs to help users/developers investigate the issue in case of a crash (related or not related to this).
Also, this PR fixes the issue where IME dialog is at wrong position. (I'm unsure if it works well on other users)
I will remove debug logs if those are not needed.

EDIT: I tested this code with caramelChat mod with compiled binary. I'm using Debian (Trixie) and GNOME with X11.

Also, added debug logs to help users investigate the issue in case of a crash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashing in Ubuntu 24.04.1 with GNOME+X11
1 participant