Reputation: 21
When mirroring a device using scrpy, anytime I scroll or pass the mouse cursor through widgets that have hover animations, it throws these exceptions, I've a found an open issue on Flutter github but no one solved the problem.
The github issue: https://github.com/flutter/flutter/issues/160144;
The full log:
════════ Exception caught by gestures library ══════════════════════════════════
The following assertion was thrown while handling a pointer data packet:
'package:flutter/src/rendering/mouse_tracker.dart': Failed assertion: line 224 pos 12: '(event is PointerAddedEvent) == (lastEvent is PointerRemovedEvent)': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.yml
When the exception was thrown, this was the stack:
#2 MouseTracker._shouldMarkStateDirty (package:flutter/src/rendering/mouse_tracker.dart:224:12)
#3 MouseTracker.updateWithEvent (package:flutter/src/rendering/mouse_tracker.dart:318:10)
#4 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:450:20)
#5 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:427:7)
#6 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:390:5)
#7 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:337:7)
#8 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:306:9)
#9 _invoke1 (dart:ui/hooks.dart:328:13)
#10 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:450:7)
#11 _dispatchPointerDataPacket (dart:ui/hooks.dart:262:31)
(elided 2 frames from class _AssertionError)
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by gestures library ══════════════════════════════════
'package:flutter/src/rendering/mouse_tracker.dart': Failed assertion: line 224 pos 12: '(event is PointerAddedEvent) == (lastEvent is PointerRemovedEvent)': is not true.
════════════════════════════════════════════════════════════════════════════════
════════ Exception caught by gestures library ══════════════════════════════════
'package:flutter/src/rendering/mouse_tracker.dart': Failed assertion: line 224 pos 12: '(event is PointerAddedEvent) == (lastEvent is PointerRemovedEvent)': is not true.
════════════════════════════════════════════════════════════════════════════════
I've tried searching through packages that might be throwing the error and open github issues.
Upvotes: 2
Views: 53