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

SegFault in XournalppCursor::setCursor() (with Asus stylus on Wayland) #5679

Open
adamant-pwn opened this issue May 10, 2024 · 2 comments
Open

Comments

@adamant-pwn
Copy link

Operating System

Linux

(Linux only) Distribution

Arch Linux

(Linux only) Desktop Environment

Hyprland WM

(Linux Only) Display Server

Wayland

Installation Method

xournalpp-git from AUR

Xournal++ Version

1.2.3+dev (6d75e1b)

libgtk Version

3.24.41

Bug Description

Xournalpp has recently started crashing randomly and generating bug reports. This behavior occurs both on xournalpp package from extra, and on xournalpp-git from AUR. Error log file is as follows: errorlog.20240510-220955.log.

Expected Behaviour

Normal work without crashes.

Steps to Reproduce

Crashes seem to occur at random, but one of reliable methods of reproducing them is as follows:

  1. Start xournalpp.
  2. Touch the xournalpp screenpad with ASUSTek Active Stylus SA203H.
  3. Move cursor out of xournalpp window (on Hyprland, this also typically changes focus).

Additional Context

No response

@bhennion
Copy link
Contributor

Thanks for the report. Can you pinpoint what changed? I assume some upgrade, but I doubt it came from a change on our end (this part of code has not been modified in a very long time).

Since your crash has to do with cursors, could you post a screenshot of your cursor settings (Settings Dialog -> View -> Cursors)?

Also, can you confirm on other occasions that the backtrace in the crashlog is always the same (more or less)? Do you always have

[bt]: (6) /usr/bin/xournalpp(_ZN15XournalppCursor12updateCursorEv+0x47) [0x56c365c98597]

@bhennion bhennion changed the title Crashes with Asus stylus on Wayland SegFault in XournalppCursor::setCursor() (with Asus stylus on Wayland) May 11, 2024
@adamant-pwn
Copy link
Author

adamant-pwn commented May 14, 2024

It's somewhat difficult for me to pinpoint, since I use Arch and a lot of packages are updated at once. I suppose one of the bigger updates recently was an update from GCC 13 to GCC 14, not sure if it could have had any effect. Could as well be an update in Hyprland or Wayland.

Yes, other crashes also seem to have that line that you mentioned. For the screenshot, you mean this one?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants