Skip to content

Crash in PointerEventConverter.expand #114914

@jacobsimionato

Description

@jacobsimionato

Internal bug: b/257770390

We're seeing a crash with frequency up to 300 per day for application Huggsy on Web. It only started recently in October and the first candidate it's seen in was cut at a CL from 28 September (see internal bug for more context).

There is no repro, but given the relatively high frequency and stack trace, perhaps it might be worth investigating?

Error text from AppLog (you can find this in the internal crash reporting system): Error: can't access dead object

Deobfuscated stack trace:
  [Mapped Dart].Offset./(third_party/dart_lang/flutter/flutter_web_sdk/lib/ui/geometry.dart:55)
  [Mapped Dart].PointerEventConverter.expand.<anonymous>(third_party/dart/flutter/lib/src/gestures/converter.dart:253)
  [Mapped Dart].MappedIterator.moveNext(third_party/dart_lang/v2/sdk/lib/internal/iterable.dart:392)
  [Mapped Dart].ListQueue.addAll(third_party/dart_lang/v2/sdk/lib/collection/queue.dart:748)
  [Mapped Dart].GestureBinding._handlePointerDataPacket(third_party/dart/flutter/lib/src/gestures/binding.dart:293)
  [Mapped Dart].Closure.cspForwardCall(third_party/dart_lang/v2/sdk/lib/_internal/js_runtime/lib/js_helper.dart:2111)
  [Mapped Dart]._rootRunUnary(third_party/dart_lang/v2/sdk/lib/async/zone.dart:1414)
  [Mapped Dart]._rootRunUnary[function-entry$5](third_party/dart_lang/v2/sdk/lib/async/zone.dart:1404)
  [Mapped Dart]._CustomZone.runUnary(third_party/dart_lang/v2/sdk/lib/async/zone.dart:1306)
  [Mapped Dart]._CustomZone.runUnaryGuarded(third_party/dart_lang/v2/sdk/lib/async/zone.dart:1216)
  [Mapped Dart].invoke1(third_party/dart_lang/flutter/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart:1177)
  [Mapped Dart].invokeOnPointerDataPacket(third_party/dart_lang/flutter/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart:243)
  [Mapped Dart].PointerBinding._onPointerData(third_party/dart_lang/flutter/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:147)
  [Mapped Dart].Closure.cspForwardCall(third_party/dart_lang/v2/sdk/lib/_internal/js_runtime/lib/js_helper.dart:2111)
  [Mapped Dart]._WheelEventListenerMixin._handleWheelEvent(third_party/dart_lang/flutter/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:371)
  [Mapped Dart]._PointerAdapter.setup.<anonymous>(third_party/dart_lang/flutter/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:671)
  [Mapped Dart]._WheelEventListenerMixin._addWheelEventListener.<anonymous>(third_party/dart_lang/flutter/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:361)
  [Mapped Dart]._Listener.registerNative.<anonymous>(third_party/dart_lang/flutter/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:203)
  [Mapped Dart].Primitives.applyFunction(third_party/dart_lang/v2/sdk/lib/_internal/js_runtime/lib/js_helper.dart:849)
  [Mapped Dart].Function.apply(third_party/dart_lang/v2/sdk/lib/_internal/js_runtime/lib/core_patch.dart:86)
  [Mapped Dart]._callDartFunctionFast(third_party/dart_lang/v2/sdk/lib/_internal/js_runtime/lib/js_patch.dart:542)
  [Mapped Dart]._convertDartFunctionFast(third_party/dart_lang/v2/sdk/lib/_internal/js_runtime/lib/js_patch.dart:520)

Maybe the devicePixelRation is zero, thought that seems inconsistent with the error message:

Offset(datum.scrollDeltaX, datum.scrollDeltaY) / devicePixelRatio;

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: crashStack traces logged to the consolecustomer: huggsy (g3)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