Skip to content

[Linux] Failed assertion: line 322 pos 18: 'event is! PointerRemovedEvent': is not true. #99761

@chrisnorman7

Description

@chrisnorman7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions