-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.customer: dream (g3)customer: mulligan (g3)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Milestone
Description
Internal: b/143427192
On our released version of App, we were notified with an exception as the title show, the detail track infos are as follow:
NoSuchMethodError: The getter 'lastPosition' was called on null.
6 Receiver: null
7 Tried calling: lastPosition===>#0 PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:246)
8 #1 _SyncIterator.moveNext (dart:core/runtime/libcore_patch.dart:151)
9 #2 ListQueue.addAll (dart:collection/queue.dart:715)
10 #3 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:46)
11 #4 _rootRunUnary (dart:async/zone.dart:1136)
12 #5 _CustomZone.runUnary (dart:async/zone.dart:1029)
13 #6 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931)
14 #7 _invoke1 (dart:ui/hooks.dart:144)
15 #8 _dispatchPointerDataPacket (dart:ui/hooks.dart:99)
That's the full exception stack, from where I cannot get any info where my code got wrong because it's all about the framework layer, and I'm not very familiar with this layer.I did not found anything invoke the function _dispatchPointerDataPacket in hooks.dart from my code.
This exception appeared only once by now.
Can we avoid this by checking if it's null before invoking lastPosition in converter.dart ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.customer: dream (g3)customer: mulligan (g3)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.