-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: error messageError messages from the Flutter frameworkError messages from the Flutter frameworka: productionIssues experienced in live production appsIssues experienced in live production appsc: crashStack traces logged to the consoleStack traces logged to the consolef: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/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
Steps to Reproduce
This is an automated anonymous crash report.
Breadcrumbs:
{
"timestamp": 1647315980.868,
"type": "navigation",
"category": "ui.lifecycle",
"level": "info",
"data": {
"screen": "FlutterActivity",
"state": "started"
}
},
{
"timestamp": 1647315980.882,
"type": "session",
"category": "app.lifecycle",
"level": "info",
"data": {
"state": "start"
}
},
{
"timestamp": 1647315980.885,
"type": "navigation",
"category": "app.lifecycle",
"level": "info",
"data": {
"state": "foreground"
}
},
{
"timestamp": 1647315980.892,
"type": "navigation",
"category": "ui.lifecycle",
"level": "info",
"data": {
"screen": "FlutterActivity",
"state": "resumed"
}
},
{
"timestamp": 1647315980.895,
"type": "navigation",
"category": "ui.lifecycle",
"level": "info",
"data": {
"screen": "FlutterActivity",
"state": "paused"
}
},
{
"timestamp": 1647315980.912,
"type": "navigation",
"category": "ui.lifecycle",
"level": "info",
"data": {
"screen": "FlutterActivity",
"state": "stopped"
}
},
{
"timestamp": 1647315980.919,
"type": "navigation",
"category": "ui.lifecycle",
"level": "info",
"data": {
"screen": "FlutterActivity",
"state": "saveInstanceState"
}
},
{
"timestamp": 1647315981.596,
"type": "navigation",
"category": "app.lifecycle",
"level": "info",
"data": {
"state": "background"
}
},
{
"timestamp": 1647318133.644,
"type": "session",
"category": "app.lifecycle",
"level": "info",
"data": {
"state": "end"
}
},
{
"timestamp": 1647321636.405,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STOPPED"
}
},
{
"timestamp": 1647321636.606,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_ON",
"extras": {
"why": "1"
}
}
},
{
"timestamp": 1647321642.396,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STARTED"
}
},
{
"timestamp": 1647321642.833,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_OFF",
"extras": {
"reason": "2",
"why": "3"
}
}
},
{
"timestamp": 1647323101.389,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STOPPED"
}
},
{
"timestamp": 1647323101.642,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_ON",
"extras": {
"why": "2"
}
}
},
{
"timestamp": 1647323114.821,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "ACTION_POWER_DISCONNECTED",
"extras": {
"seq": "4835"
}
}
},
{
"timestamp": 1647323419.549,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STARTED"
}
},
{
"timestamp": 1647323419.918,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_OFF",
"extras": {
"reason": "2",
"why": "3"
}
}
},
{
"timestamp": 1647323701.565,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STOPPED"
}
},
{
"timestamp": 1647323701.946,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_ON",
"extras": {
"why": "2"
}
}
},
{
"timestamp": 1647323713.459,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STARTED"
}
},
{
"timestamp": 1647323713.819,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_OFF",
"extras": {
"reason": "2",
"why": "3"
}
}
},
{
"timestamp": 1647324001.498,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STOPPED"
}
},
{
"timestamp": 1647324001.809,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_ON",
"extras": {
"why": "2"
}
}
},
{
"timestamp": 1647324015.513,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STARTED"
}
},
{
"timestamp": 1647324015.894,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_OFF",
"extras": {
"reason": "2",
"why": "3"
}
}
},
{
"timestamp": 1647324158.627,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STOPPED"
}
},
{
"timestamp": 1647324158.868,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_ON",
"extras": {
"why": "2"
}
}
},
{
"timestamp": 1647324164.803,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STARTED"
}
},
{
"timestamp": 1647324165.194,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_OFF",
"extras": {
"reason": "2",
"why": "3"
}
}
},
{
"timestamp": 1647324601.643,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STOPPED"
}
},
{
"timestamp": 1647324602.929,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_ON",
"extras": {
"why": "2"
}
}
},
{
"timestamp": 1647324613.094,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STARTED"
}
},
{
"timestamp": 1647324613.48,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_OFF",
"extras": {
"reason": "2",
"why": "3"
}
}
},
{
"timestamp": 1647324797.686,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "DREAMING_STOPPED"
}
},
{
"timestamp": 1647324797.885,
"type": "system",
"category": "device.event",
"level": "info",
"data": {
"action": "SCREEN_ON",
"extras": {
"why": "103"
}
}
},
{
"timestamp": 1647324799.081,
"type": "navigation",
"category": "ui.lifecycle",
"level": "info",
"data": {
"screen": "FlutterActivity",
"state": "started"
}
},
{
"timestamp": 1647324799.091,
"type": "session",
"category": "app.lifecycle",
"level": "info",
"data": {
"state": "start"
}
},
{
"timestamp": 1647324799.091,
"type": "navigation",
"category": "app.lifecycle",
"level": "info",
"data": {
"state": "foreground"
}
},
{
"timestamp": 1647324799.095,
"type": "navigation",
"category": "ui.lifecycle",
"level": "info",
"data": {
"screen": "FlutterActivity",
"state": "resumed"
}
}
Expected results:
No exception is thrown.
Actual results:
_CastError: type 'Future<dynamic>' is not a subtype of type 'Future<Object>' in type cast
File "router.dart", line 666, in _RouterState._verifyRouteInformationParserStillCurrent.<fn>
File "zone.dart", line 1436, in _rootRunUnary
Code sample
No app code is involved. Check `_RouterState` in this repo.Logs
N/A
No issues found!
App was built on CI, some time ago, so I could not execute shell commands. However, here is the relevant part of the log which is available:
Flutter 2.8.1 • channel unknown • unknown source
Framework • revision 77d935af4d (3 months ago) • 2021-12-16 08:37:33 -0800
Engine • revision 890a5fca2e
Tools • Dart 2.15.1
It looks like there is an issue with code here: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/router.dart#L666
static final Future<dynamic> _never = Completer<dynamic>().future; // won't ever complete
_AsyncPassthrough<T> _verifyRouteInformationParserStillCurrent(Object? transaction, Router<T> originalWidget) {
return (T data) {
//...
return _never as Future<T>;
};
}
dynamic is not an Object
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: error messageError messages from the Flutter frameworkError messages from the Flutter frameworka: productionIssues experienced in live production appsIssues experienced in live production appsc: crashStack traces logged to the consoleStack traces logged to the consolef: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.frameworkflutter/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