Skip to content

Fix touch crash after X client disconnect#629

Open
Xnick417x wants to merge 1 commit into
WinNative-Emu:mainfrom
Xnick417x:crash
Open

Fix touch crash after X client disconnect#629
Xnick417x wants to merge 1 commit into
WinNative-Emu:mainfrom
Xnick417x:crash

Conversation

@Xnick417x

Copy link
Copy Markdown
Collaborator

A client's XInput2 raw-event selections were never removed on disconnect, so pointer injection kept writing raw motion to its released output stream and hit a null buffer NPE on the main thread. Remove the client's XI2 selections in freeResources, release the output buffer under the stream write lock so an in-flight event write can never race the free, and discard writes on a released stream.

A client's XInput2 raw-event selections were never removed on disconnect,
so pointer injection kept writing raw motion to its released output stream
and hit a null buffer NPE on the main thread. Remove the client's XI2
selections in freeResources, release the output buffer under the stream
write lock so an in-flight event write can never race the free, and
discard writes on a released stream.
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.

1 participant