{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/16602","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/16602/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/16602/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/16602/events","html_url":"https://github.com/flutter/flutter/issues/16602","id":314405180,"node_id":"MDU6SXNzdWUzMTQ0MDUxODA=","number":16602,"title":"Bad state: Future already completed","user":{"login":"bartektartanus","id":3193882,"node_id":"MDQ6VXNlcjMxOTM4ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/3193882?v=4","gravatar_id":"","url":"https://api.github.com/users/bartektartanus","html_url":"https://github.com/bartektartanus","followers_url":"https://api.github.com/users/bartektartanus/followers","following_url":"https://api.github.com/users/bartektartanus/following{/other_user}","gists_url":"https://api.github.com/users/bartektartanus/gists{/gist_id}","starred_url":"https://api.github.com/users/bartektartanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartektartanus/subscriptions","organizations_url":"https://api.github.com/users/bartektartanus/orgs","repos_url":"https://api.github.com/users/bartektartanus/repos","events_url":"https://api.github.com/users/bartektartanus/events{/privacy}","received_events_url":"https://api.github.com/users/bartektartanus/received_events","type":"User","site_admin":false},"labels":[{"id":669403841,"node_id":"MDU6TGFiZWw2Njk0MDM4NDE=","url":"https://api.github.com/repos/flutter/flutter/labels/f:%20routes","name":"f: routes","color":"207de5","default":false},{"id":283479343,"node_id":"MDU6TGFiZWwyODM0NzkzNDM=","url":"https://api.github.com/repos/flutter/flutter/labels/severe:%20crash","name":"severe: crash","color":"900000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-15T10:53:48Z","updated_at":"2018-07-16T11:23:42Z","closed_at":null,"author_association":"NONE","body":"## Steps to Reproduce\r\n\r\nI'm calling:\r\n```\r\n                Navigator.popUntil(context, (r)=>false);\r\n```\r\n\r\nand getting this error:\r\n## Logs\r\n\r\n```\r\nI/flutter ( 4464): ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════\r\nI/flutter ( 4464): The following StateError was thrown while handling a gesture:\r\nI/flutter ( 4464): Bad state: Future already completed\r\nI/flutter ( 4464): When the exception was thrown, this was the stack:\r\nI/flutter ( 4464): #1      Route.didComplete (package:flutter/src/widgets/navigator.dart:185:19)\r\nI/flutter ( 4464): #2      Route.didPop (package:flutter/src/widgets/navigator.dart:173:5)\r\nI/flutter ( 4464): #3      OverlayRoute.didPop (package:flutter/src/widgets/routes.dart:58:36)\r\nI/flutter ( 4464): #4      TransitionRoute.didPop (package:flutter/src/widgets/routes.dart:209:18)\r\nI/flutter ( 4464): #5      _ModalRoute&TransitionRoute&LocalHistoryRoute.didPop (package:flutter/src/widgets/routes.dart:369:18)\r\nI/flutter ( 4464): #6      NavigatorState.pop (package:flutter/src/widgets/navigator.dart:1683:15)\r\nI/flutter ( 4464): #7      NavigatorState.popUntil (package:flutter/src/widgets/navigator.dart:1722:7)\r\nI/flutter ( 4464): #8      Navigator.popUntil (package:flutter/src/widgets/navigator.dart:1101:27)\r\nI/flutter ( 4464): #9      PresentationWidgetState.header.<anonymous closure> (package:conference_app/presentation.dart:214:27)\r\nI/flutter ( 4464): #10     _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:490:14)\r\nI/flutter ( 4464): #11     _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:545:30)\r\nI/flutter ( 4464): #12     GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)\r\nI/flutter ( 4464): #13     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:161:9)\r\nI/flutter ( 4464): #14     TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:123:7)\r\nI/flutter ( 4464): #15     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)\r\nI/flutter ( 4464): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:147:20)\r\nI/flutter ( 4464): #17     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)\r\nI/flutter ( 4464): #18     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)\r\nI/flutter ( 4464): #19     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)\r\nI/flutter ( 4464): #20     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)\r\nI/flutter ( 4464): #21     _invoke1 (dart:ui/hooks.dart:134:13)\r\nI/flutter ( 4464): #22     _dispatchPointerDataPacket (dart:ui/hooks.dart:91:5)\r\nI/flutter ( 4464): (elided one frame from package dart:async)\r\nI/flutter ( 4464): Handler: onTap\r\nI/flutter ( 4464): Recognizer:\r\nI/flutter ( 4464):   TapGestureRecognizer#b584e(debugOwner: GestureDetector, state: ready, won arena, finalPosition:\r\nI/flutter ( 4464):   Offset(20.7, 49.4), sent tap down)\r\nI/flutter ( 4464): ════════════════════════════════════════════════════════════════════════════════════════════════════\r\nI/flutter ( 4464): Another exception was thrown: 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 1846 pos 12: '!_debugLocked': is not true.\r\n```\r\n## Flutter Doctor\r\n```\r\n[✓] Flutter (Channel dev, v0.2.10, on Mac OS X 10.13.4 17E199, locale pl-PL)\r\n    • Flutter version 0.2.10 at ...\r\n    • Framework revision d6d874474b (9 days ago), 2018-04-06 13:23:16 -0700\r\n    • Engine revision d2b69fec75\r\n    • Dart version 2.0.0-dev.46.0.flutter-09e1766e6c\r\n\r\n[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)\r\n    • Android SDK at ...\r\n    • Android NDK at ...\r\n    • Platform android-27, build-tools 27.0.3\r\n    • Java binary at: ...\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)\r\n    • All Android licenses accepted.\r\n\r\n[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)\r\n    • Xcode at ...\r\n    • Xcode 9.3, Build version 9E145\r\n    • ios-deploy 1.9.2\r\n    • CocoaPods version 1.4.0\r\n\r\n[✓] Android Studio (version 3.0)\r\n    • Android Studio at ...\r\n    • Flutter plugin version 23.1.1\r\n    • Dart plugin version 171.4424\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)\r\n\r\n[✓] Android Studio (version 3.1)\r\n    • Android Studio at ...\r\n    • Flutter plugin version 23.2.2\r\n    • Dart plugin version 173.4700\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)\r\n\r\n[✓] Connected devices (2 available)\r\n    • Android SDK built for x86 • emulator-5554                        • android-x86 • Android 6.0 (API 23) (emulator)\r\n    • iPhone X                  • 74D25CBC-32DB-40A9-A12D-A3F61936B347 • ios         • iOS 11.3 (simulator)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/405217017","html_url":"https://github.com/flutter/flutter/issues/16602#issuecomment-405217017","issue_url":"https://api.github.com/repos/flutter/flutter/issues/16602","id":405217017,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTIxNzAxNw==","user":{"login":"zoechi","id":405837,"node_id":"MDQ6VXNlcjQwNTgzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/405837?v=4","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T11:23:42Z","updated_at":"2018-07-16T11:23:42Z","author_association":"CONTRIBUTOR","body":"@SoaresGabriel can you please add the output of `flutter doctor -v`?"}}
{"actor":{"display_login":"zoechi"}}