Skip to content

'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true #36350

@kecson

Description

@kecson
@override
  Widget build(BuildContext context) {
    return Container(
      width: 200,
      height: 100,
    );
}
  1. then 2 fingers simultaneously click the Container

Logs

I/HiTouch_PressGestureDetector(30551): ACTION_POINTER_DOWN.
I/flutter (30551): ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (30551): The following assertion was thrown while dispatching a pointer event:
I/flutter (30551): 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons ==
I/flutter (30551): kPrimaryButton': is not true.
I/flutter (30551): 
I/flutter (30551): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (30551): more information in this error message to help you determine and fix the underlying cause.
I/flutter (30551): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (30551):   https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (30551): 
I/flutter (30551): When the exception was thrown, this was the stack:
I/flutter (30551): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
I/flutter (30551): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
I/flutter (30551): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
I/flutter (30551): #5      _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20)
I/flutter (30551): #6      _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
I/flutter (30551): #7      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
I/flutter (30551): #8      _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
I/flutter (30551): #9      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
I/flutter (30551): #13     _invoke1 (dart:ui/hooks.dart:250:10)
I/flutter (30551): #14     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)
I/flutter (30551): (elided 5 frames from class _AssertionError and package dart:async)
I/flutter (30551): 
I/flutter (30551): Event:
I/flutter (30551):   PointerUpEvent#e1106(position: Offset(106.9, 368.5), timeStamp: 283:24:16.081000, pointer: 4,
I/flutter (30551):   kind: touch, device: 1, down: false, pressure: 0.2, pressureMin: 0.0)
I/flutter (30551): Target:
I/flutter (30551):   <WidgetsFlutterBinding>
I/flutter (30551): ════════════════════════════════════════════════════════════════════════════════════════════════════
V/AudioManager(30551): playSoundEffect   effectType: 0
V/AudioManager(30551): querySoundEffectsEnabled...
I/ViewRootImpl(30551): jank_removeInvalidNode all the node in jank list is out of time
I/flutter (30551): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: gesturesflutter/packages/flutter/gestures repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions