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

Crash when I press and release 2 buttons at the same time on touchscreen #15636

Open
AngryCarrot789 opened this issue May 7, 2024 · 2 comments
Labels

Comments

@AngryCarrot789
Copy link

Describe the bug

When I press 2 buttons at once and release, there's a likely chance it crashes my application

To Reproduce

Press 2 buttons with 2 fingers, then release both quickly

Expected behavior

It should handle the "pointer releases" successfully

Avalonia version

11.0.10

OS

Linux

Additional context

Here's the stack trace of the crash:

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at Avalonia.Input.Gestures.PointerReleased(RoutedEventArgs ev)
   at Avalonia.Reactive.LightweightObservableBase`1.PublishNext(T value)
   at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e)
   at Avalonia.Input.TouchDevice.ProcessRawEvent(RawInputEventArgs ev)
   at Avalonia.Input.InputManager.ProcessInput(RawInputEventArgs e)
   at Avalonia.ManualRawEventGrouperDispatchQueue.DispatchNext()
   at Avalonia.Controls.Platform.ManagedDispatcherImpl.RunLoop(CancellationToken token)
   at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
   at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
   at Avalonia.Controls.DesktopApplicationExtensions.Run(Application app, CancellationToken token)
   at LinuxFramebufferPlatformExtensions.StartLinuxDirect(AppBuilder builder, String[] args, IOutputBackend outputBackend, IInputBackend inputBackend)
   at BlueberryBenchSupply.Program.Main(String[] args)
@timunie
Copy link
Contributor

timunie commented May 7, 2024

can we test 11.1 beta?

@maxkatz6
Copy link
Member

maxkatz6 commented May 7, 2024

Yes, a very similar problem was fixed in 11.1 beta2

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

No branches or pull requests

3 participants