Repository navigation
[Linux] Failed assertion: line 322 pos 18: 'event is! PointerRemovedEvent': is not true. #99761
Copy link
Copy link
Closed
Labels
r: invalidIssue is closed as not validIssue is closed as not valid
Description
Hi,
I am consistantly getting an error with the two flutter apps I've tried to run under Linux (Debian, to be precise).
Here is the output of flutter run:
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
Syncing files to device Linux... 164ms
Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
💪 Running with sound null safety 💪
An Observatory debugger and profiler on Linux is available at: http://127.0.0.1:37749/nFrqOJh0LEQ=/
The Flutter DevTools debugger and profiler on Linux is available at: http://127.0.0.1:9100?uri=http://127.0.0.1:37749/nFrqOJh0LEQ=/
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: 'package:flutter/src/rendering/mouse_tracker.dart': Failed assertion: line 322 pos 18: 'event is! PointerRemovedEvent': is not true.
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
#2 MouseTracker.updateWithEvent.<anonymous closure>.<anonymous closure> (package:flutter/src/rendering/mouse_tracker.dart:322:18)
#3 MouseTracker._deviceUpdatePhase (package:flutter/src/rendering/mouse_tracker.dart:211:9)
#4 MouseTracker.updateWithEvent.<anonymous closure> (package:flutter/src/rendering/mouse_tracker.dart:317:7)
#5 MouseTracker._monitorMouseConnection (package:flutter/src/rendering/mouse_tracker.dart:195:9)
#6 MouseTracker.updateWithEvent (package:flutter/src/rendering/mouse_tracker.dart:316:5)
#7 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:318:20)
#8 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:380:7)
#9 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:344:5)
#10 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:302:7)
#11 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:285:7)
#12 _rootRunUnary (dart:async/zone.dart:1442:13)
#13 _CustomZone.runUnary (dart:async/zone.dart:1335:19)
#14 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244:7)
#15 _invoke1 (dart:ui/hooks.dart:170:10)
#16 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:331:7)
#17 _dispatchPointerDataPacket (dart:ui/hooks.dart:94:31)
Application finished.
And here is flutter doctor -v:
[✓] Flutter (Channel master, 2.11.0-0.0.pre.820, on Ubuntu 21.10 5.13.0-21-generic, locale en_GB.UTF-8)
• Flutter version 2.11.0-0.0.pre.820 at /home/chris/flutter
• Upstream repository https://github.com/flutter/flutter
• Framework revision 33ab8ebad7 (3 hours ago), 2022-03-08 07:10:23 -0500
• Engine revision 5c760759fe
• Dart version 2.17.0 (build 2.17.0-182.0.dev)
• DevTools version 2.11.1
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 13.0.0-2
• cmake version 3.18.4
• ninja version 1.10.1
• pkg-config version 0.29.2
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] VS Code (version 1.65.0)
• VS Code at /usr/share/code
• Flutter extension version 3.27.0
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu 21.10 5.13.0-21-generic
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 3 categories.
This was also happening when I was on the beta channel.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
r: invalidIssue is closed as not validIssue is closed as not valid
Activity
[-][Linux] Failed assertion with seemingly any app[/-][+][Linux] Failed assertion: line 322 pos 18: 'event is! PointerRemovedEvent': is not true.[/+]maheshj01 commentedon Mar 9, 2022
Hi @chrisnorman7, Thanks for filing the issue. Could you please share a minimal reproducible code sample or the reproducible steps to investigate thie issue further?
There have been a few reports of this issue but those were closed due to insufficient info e.g #76325
chrisnorman7 commentedon Mar 9, 2022
maheshj01 commentedon Mar 9, 2022
Thanks for the update @chrisnorman7, I tried on the latest master channel, I was not able to reproduce the issue. Do you see this error frequently (on each build) or is it intermittent ?
logs
flutter doctor -v (Linux)
chrisnorman7 commentedon Mar 9, 2022
maheshj01 commentedon Mar 10, 2022
Sure, If you encounter this issue again and have more info for us, feel free to comment on this issue or file a new issue.
chrisnorman7 commentedon Mar 15, 2022
maheshj01 commentedon Mar 15, 2022
@chrisnorman7 Your logs looks partially similar to #84241
chrisnorman7 commentedon Mar 15, 2022
I agree. Seems that it affects Mac OS too.
github-actions commentedon Mar 29, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.