-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Multitouch input crashes Avalonia app on Raspberry Pi 4B / Linux (arm-x64) #14249
Comments
Should be fixed in the master: https://github.com/AvaloniaUI/Avalonia/pull/14140/files |
Thank you for your advice. No, it is not fixed in nightly builds, I have tried: 11.0.999 |
Looks like we see the same problem. @lubomirtrubac does any workaround found? |
We are also experiencing the same problem, latest version of Avalonia. |
@maxkatz6 The problem is in Gestures.PointerReleased. In some cases value |
@lsoft @pkstrsk Hello, unfortunately no - I did not even try to find a solution, because I had to implement other parts of the app first. |
* refs #14249 Avoid NullReferenceException in Gestures.PointerReleased * refs #14249 Track current gesture state with single readonly struct * Update from review * Moved the last click location from the GestureState record to a separate field. (#14249) --------- Co-authored-by: Заболотнев Юрий <zabolotnev@promit-ek.ru>
Fixed by #15117 |
* refs #14249 Avoid NullReferenceException in Gestures.PointerReleased * refs #14249 Track current gesture state with single readonly struct * Update from review * Moved the last click location from the GestureState record to a separate field. (#14249) --------- Co-authored-by: Заболотнев Юрий <zabolotnev@promit-ek.ru>
Describe the bug
Application with some dummy button (no event wired), hold with two fingers for a couple of seconds, sometimes needs more than one try. Application crashes to console with unhandled System.NullReferenceException. Tried on Raspbian x64 Lite using DRM and Raspbian x64 with full desktop - behavior is the same.
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.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e)
at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e)
at Avalonia.Input.TouchDevice.ProcessRawEvent(RawInputEventArgs ev)
at Avalonia.RawEventGrouper.Dispatch(RawInputEventArgs ev)
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 LinuxFramebufferPlatformExtensions.StartLinuxDirect(AppBuilder builder, String[] args, IOutputBackend outputBackend, IInputBackend inputBackend)
at ARTRA.Dochadzka.Terminal.Desktop.Program.Main(String[] args)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Application should stay open
Environment
The text was updated successfully, but these errors were encountered: