{"action":"opened","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/17112","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/17112/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/17112/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/17112/events","html_url":"https://github.com/flutter/flutter/issues/17112","id":318863953,"number":17112,"title":"Flutter firebase messaging example app gets a crash report when run in a sequence","user":{"login":"JohnAherne","id":18733214,"avatar_url":"https://avatars1.githubusercontent.com/u/18733214?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnAherne","html_url":"https://github.com/JohnAherne","followers_url":"https://api.github.com/users/JohnAherne/followers","following_url":"https://api.github.com/users/JohnAherne/following{/other_user}","gists_url":"https://api.github.com/users/JohnAherne/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnAherne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnAherne/subscriptions","organizations_url":"https://api.github.com/users/JohnAherne/orgs","repos_url":"https://api.github.com/users/JohnAherne/repos","events_url":"https://api.github.com/users/JohnAherne/events{/privacy}","received_events_url":"https://api.github.com/users/JohnAherne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T11:48:32Z","updated_at":"2018-04-30T11:48:32Z","closed_at":null,"author_association":"NONE","body":"## Steps to Reproduce\r\n\r\nStart the app with flutter run -v\r\n\r\nPut app in backgound\r\nSend a message - notification and data message\r\nThe message appears but not in the correct position. See screen image  \"background_app_send_message.PNG\"\r\n Back to main screen\r\nStay in foreground\r\nSend a message - notification and data\r\nSelect show from popup.\r\nApp crashes. See screen shot:\r\n\"fire_error_when_open.PNG\"\r\n![background_app_send_message](https://user-images.githubusercontent.com/18733214/39425689-7e2addc4-4c74-11e8-8d3a-409b10aa4b7d.PNG)\r\n![fire_error_when_foregound](https://user-images.githubusercontent.com/18733214/39425691-7e4b0d56-4c74-11e8-8982-7cf4c00b2373.PNG)\r\n\r\n\r\n## Logs\r\n\r\nstart app\r\nput into background\r\nsend message in background\r\nshow message is fine but layout not quite right\r\nback to main screen\r\nleave in foreground\r\nsend message\r\nget popup \r\nhit show get error screen\r\n\r\n[  +42 ms] Compiling dart to kernel with 414 updated files\r\n[ +476 ms] I/flutter (19510): Push Messaging token: emCSa6FmEN4:APA91bGl2VdOigd4W4vgyAioS_Yg8U2jnSvYjHw6l3kxH6Hzkl8nIeDAiOV7JpfU2yIAnUaHjADGZYAiZ42o0veqMdf_ccl4RFc1wO2GsPRbcI0Eaes4WNzfCcbw_3QiKK16_PNpunJ_\r\n[ +885 ms] Updating files\r\n[ +622 ms] DevFS: Sync finished\r\n[        ] Synced 1.1MB.\r\n[   +3 ms] _flutter.listViews: {}\r\n[   +4 ms] Connected to _flutterView/0x9c2acce0.\r\n[        ] ??  To hot reload your app on the fly, press \"r\". To restart the app entirely, press \"R\".\r\n[        ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:8113/\r\n[        ] For a more detailed help message, press \"h\". To quit, press \"q\".\r\n[+2754 ms] D/EGL_emulation(19510): eglMakeCurrent: 0x9a28b900: ver 3 0 (tinfo 0x9c2963a0)\r\n[+12463 ms] I/FlutterActivityDelegate(19510): onResume setting current activity to this\r\n[  +48 ms] I/flutter (19510): onResume: {google.sent_time: 1525085754634, click_action: FLUTTER_NOTIFICATION_CLICK, status: 280418, collapse_key: com.example.fcmtest1, id: 12345, from: 915347252314, google.message_id: 0:1525085754638812%fe1fa160fe1fa160, google.ttl: 2419200}\r\n[   +3 ms] D/EGL_emulation(19510): eglCreateContext: 0x9a28c800: maj 3 min 0 rcv 3\r\n[  +94 ms] D/EGL_emulation(19510): eglMakeCurrent: 0x9a28c800: ver 3 0 (tinfo 0x9a2f16e0)\r\n[   +1 ms] E/eglCodecCommon(19510): glUtilsParamSize: unknow param 0x00008cdf\r\n[        ] E/eglCodecCommon(19510): glUtilsParamSize: unknow param 0x00008824\r\n[   +3 ms] D/EGL_emulation(19510): eglMakeCurrent: 0x9a28c800: ver 3 0 (tinfo 0x8777e850)\r\n[ +184 ms] D/EGL_emulation(19510): eglMakeCurrent: 0x9a28b900: ver 3 0 (tinfo 0x9c2963a0)\r\n[+18147 ms] I/flutter (19510): onMessage: {status: 280418, id: 12345, click_action: FLUTTER_NOTIFICATION_CLICK}\r\n[+2265 ms] E/flutter (19510): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:\r\n[   +1 ms] E/flutter (19510): 'package:flutter/src/widgets/routes.dart': Failed assertion: line 177 pos 12: '!_transitionCompleter.isCompleted': Cannot install a MaterialPageRoute<Null> after disposing it.\r\n[        ] E/flutter (19510): #0      _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:37:39)\r\n[        ] E/flutter (19510): #1      _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:33:5)\r\n[        ] E/flutter (19510): #2      TransitionRoute.install (package:flutter/src/widgets/routes.dart)\r\n[        ] E/flutter (19510): #3      ModalRoute.install (package:flutter/src/widgets/routes.dart:740:11)\r\n[        ] E/flutter (19510): #4      NavigatorState.push (package:flutter/src/widgets/navigator.dart:1444:11)\r\n[        ] E/flutter (19510): #5      Navigator.push (package:flutter/src/widgets/navigator.dart:817:34)\r\n[        ] E/flutter (19510): #6      _PushMessagingExampleState._navigateToItemDetail (file:///C:/flutter_tests/fcm_test1/lib/main.dart:133:17)\r\n[        ] E/flutter (19510): #7      _PushMessagingExampleState._showItemDialog.<anonymous closure> (file:///C:/flutter_tests/fcm_test1/lib/main.dart:123:9)\r\n[        ] E/flutter (19510): #8      _RootZone.runUnary (dart:async/zone.dart:1381:54)\r\n[        ] E/flutter (19510): #9      _FutureListener.handleValue (dart:async/future_impl.dart:129:18)\r\n[        ] E/flutter (19510): #10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:633:45)\r\n[        ] E/flutter (19510): #11     Future._propagateToListeners (dart:async/future_impl.dart:662:32)\r\n[        ] E/flutter (19510): #12     Future._completeWithValue (dart:async/future_impl.dart:477:5)\r\n[        ] E/flutter (19510): #13     Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:507:7)\r\n[        ] E/flutter (19510): #14     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)\r\n[        ] E/flutter (19510): #15     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)\r\n[  +22 ms] I/flutter (19510): --¦ EXCEPTION CAUGHT BY WIDGETS LIBRARY ¦-----------------------------------------------------------\r\n[   +2 ms] I/flutter (19510): The following assertion was thrown building Navigator-[GlobalObjectKey<NavigatorState>\r\n[        ] I/flutter (19510): _WidgetsAppState#19b4d](dirty, state: NavigatorState#13fc1(tickers: tracking 2 tickers)):\r\n[        ] I/flutter (19510): 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 1846 pos 12: '!_debugLocked':\r\n[        ] I/flutter (19510): is not true.\r\n[   +2 ms] I/flutter (19510):\r\n[   +1 ms] I/flutter (19510): Either the assertion indicates an error in the framework itself, or we should provide substantially\r\n[        ] I/flutter (19510): more information in this error message to help you determine and fix the underlying cause.\r\n[        ] I/flutter (19510): In either case, please report this assertion by filing a bug on GitHub:\r\n[        ] I/flutter (19510):   https://github.com/flutter/flutter/issues/new\r\n[        ] I/flutter (19510):\r\n[        ] I/flutter (19510): When the exception was thrown, this was the stack:\r\n[  +28 ms] I/flutter (19510): #2      NavigatorState.build (package:flutter/src/widgets/navigator.dart)\r\n[   +1 ms] I/flutter (19510): #3      StatefulElement.build (package:flutter/src/widgets/framework.dart:3713:27)\r\n[        ] I/flutter (19510): #4      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3625:15)\r\n[        ] I/flutter (19510): #5      Element.rebuild (package:flutter/src/widgets/framework.dart:3478:5)\r\n[        ] I/flutter (19510): #6      BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2225:33)\r\n[        ] I/flutter (19510): #7      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:621:20)\r\n[        ] I/flutter (19510): #8      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)\r\n[        ] I/flutter (19510): #9      _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)\r\n[        ] I/flutter (19510): #10     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)\r\n[        ] I/flutter (19510): #11     _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)\r\n[        ] I/flutter (19510): #12     _invoke (dart:ui/hooks.dart:120:13)\r\n[        ] I/flutter (19510): #13     _drawFrame (dart:ui/hooks.dart:109:3)\r\n[        ] I/flutter (19510): (elided 2 frames from class _AssertionError)\r\n[        ] I/flutter (19510): ----------------------------------------------------------------------------------------------------\r\n\r\n## Flutter Doctor\r\n:\\flutter_tests>flutter doctor -v\r\n[v] Flutter (Channel beta, v0.2.8, on Microsoft Windows [Version 10.0.16299.371], locale en-GB)\r\n    • Flutter version 0.2.8 at c:\\flutter_dev\\flutter\r\n    • Framework revision b397406561 (4 weeks ago), 2018-04-02 13:53:20 -0700\r\n    • Engine revision c903c217a1\r\n    • Dart version 2.0.0-dev.43.0.flutter-52afcba357\r\n\r\n[v] Android toolchain - develop for Android devices (Android SDK 27.0.3)\r\n    • Android SDK at C:\\Users\\john2\\AppData\\Local\\Android\\sdk\r\n    • Android NDK location not configured (optional; useful for native profiling support)\r\n    • Platform android-27, build-tools 27.0.3\r\n    • Java binary at: C:\\Program Files\\Android\\Android Studio\\jre\\bin\\java\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)\r\n    • All Android licenses accepted.\r\n\r\n[v] Android Studio (version 3.1)\r\n    • Android Studio at C:\\Program Files\\Android\\Android Studio\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)\r\n\r\n[v] VS Code, 64-bit edition (version 1.22.2)\r\n    • VS Code at C:\\Program Files\\Microsoft VS Code\r\n    • Dart Code extension version 2.12.0\r\n\r\n[v] Connected devices (1 available)\r\n    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)\r\n\r\n• No issues found!\r\n.\r\n##Flutter Analyze\r\nAnalyzing C:\\flutter_tests\\fcm_test1...\r\n  error - The constructor returns type 'dynamic' that isn't of expected type 'Widget' at test\\widget_test.dart:15:29 - strong_mode_invalid_cast_new_expr\r\n  error - Undefined class 'MyApp' at test\\widget_test.dart:15:33 - undefined_class\r\n  hint - Unused import: 'package:fcm_test1/main.dart' at test\\widget_test.dart:10:8 - unused_import\r\n3 issues found\r\n"}}
{"actor":{"display_login":"JohnAherne"}}