-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: crashStack traces logged to the consoleStack traces logged to the consoleframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Description
When running framework tests, dispatchObjectEvent handles bad listeners from flutter/test/foundation/memory_allocations_test.dart throws ArgumentError exception.
Steps to reproduce
- Execute
flutter test test/foundation/memory_allocations_test.dartunderpackages/flutter
Logs
Running "flutter pub get" in flutter... 252ms
Resolving dependencies...
collection 1.16.0 (1.17.0 available)
js 0.6.4 (0.6.5 available)
stack_trace 1.10.0 (1.11.0 available)
Got dependencies!
00:03 +1: dispatchObjectEvent handles bad listeners
══╡ EXCEPTION CAUGHT BY FOUNDATION LIBRARY ╞════════════════════════════════════════════════════════
The following ArgumentError was thrown MemoryAllocations while dispatching notifications for String:
Invalid argument(s)
When the exception was thrown, this was the stack:
#0 main.<anonymous closure>.badListener1 (file:///Users/tahatesser/Code/flutter/packages/flutter/test/foundation/memory_allocations_test.dart:44:7)
#1 MemoryAllocations.dispatchObjectEvent (package:flutter/src/foundation/memory_allocations.dart:238:23)
#2 main.<anonymous closure> (file:///Users/tahatesser/Code/flutter/packages/flutter/test/foundation/memory_allocations_test.dart:59:8)
#3 testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:171:29)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
The String sending notification was:
object
════════════════════════════════════════════════════════════════════════════════════════════════════
══╡ EXCEPTION CAUGHT BY FOUNDATION LIBRARY ╞════════════════════════════════════════════════════════
The following ArgumentError was thrown MemoryAllocations while dispatching notifications for String:
Invalid argument(s)
When the exception was thrown, this was the stack:
#0 main.<anonymous closure>.badListener2 (file:///Users/tahatesser/Code/flutter/packages/flutter/test/foundation/memory_allocations_test.dart:49:7)
#1 MemoryAllocations.dispatchObjectEvent (package:flutter/src/foundation/memory_allocations.dart:238:23)
#2 main.<anonymous closure> (file:///Users/tahatesser/Code/flutter/packages/flutter/test/foundation/memory_allocations_test.dart:59:8)
#3 testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:171:29)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
The String sending notification was:
object
════════════════════════════════════════════════════════════════════════════════════════════════════
00:03 +7: All tests passed!
tahatesser@Tahas-MacBook-Pro flutter % Related #111615
Metadata
Metadata
Assignees
Labels
a: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: crashStack traces logged to the consoleStack traces logged to the consoleframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version