{"action":"opened","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/362","labels_url":"https://api.github.com/repos/flutter/flutter/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/362/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/362/events","html_url":"https://github.com/flutter/flutter/issues/362","id":116817893,"number":362,"title":"Managing State Tutorial Crashes Galaxy s6","user":{"login":"MicroSpecWes","id":5385266,"avatar_url":"https://avatars.githubusercontent.com/u/5385266?v=3","gravatar_id":"","url":"https://api.github.com/users/MicroSpecWes","html_url":"https://github.com/MicroSpecWes","followers_url":"https://api.github.com/users/MicroSpecWes/followers","following_url":"https://api.github.com/users/MicroSpecWes/following{/other_user}","gists_url":"https://api.github.com/users/MicroSpecWes/gists{/gist_id}","starred_url":"https://api.github.com/users/MicroSpecWes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicroSpecWes/subscriptions","organizations_url":"https://api.github.com/users/MicroSpecWes/orgs","repos_url":"https://api.github.com/users/MicroSpecWes/repos","events_url":"https://api.github.com/users/MicroSpecWes/events{/privacy}","received_events_url":"https://api.github.com/users/MicroSpecWes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-13T17:59:52Z","updated_at":"2015-11-13T17:59:52Z","closed_at":null,"body":"I tried running the Managing State Tutorial on my Galaxy S6 Edge and I can use the app for a few seconds and then it will either show a black screen or a red screen.  It will crash whether I use the button to increment the counter or not, but it will increment.\r\n\r\nHere is the code I am running:\r\n\r\n```\r\nimport 'package:flutter/material.dart';\r\n\r\nvoid main() {\r\n  runApp(\r\n    new MaterialApp(\r\n      title: 'Flutter Leads',\r\n      routes: {\r\n        '/': (RouteArguments args) => new Counter()\r\n      }\r\n    )\r\n  );\r\n}\r\n\r\nclass Counter extends StatefulComponent {\r\n  _CounterState createState() => new _CounterState();\r\n}\r\n\r\nclass _CounterState extends State<Counter> {\r\n  int _count = 0;\r\n\r\n  void _increment() {\r\n    setState(() { ++_count; });\r\n  }\r\n\r\n  Widget build(BuildContext context) {\r\n    return new Row([\r\n      new RaisedButton(\r\n        onPressed: _increment,\r\n        child: new Text('Increment')\r\n      ),\r\n      new Text('Count: $_count')\r\n    ]);\r\n  }\r\n}\r\n\r\n```\r\n\r\nThis is the error I got:\r\n```\r\nandroid: I/sky     : Exception caught while building Navigator-[GlobalObjectKey _MaterialAppState(43269391)]\r\nandroid: I/sky     : Bad state: No element\r\nandroid: I/sky     : Stack trace:\r\nandroid: I/sky     : #0      List.first (dart:core-patch/growable_array.dart:206)\r\nandroid: I/sky     : #1      NavigatorState.build (packages/flutter/src/widgets/navigator.dart:119)\r\nandroid: I/sky     : #2      ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1050)\r\nandroid: I/sky     : #3      BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:991)\r\nandroid: I/sky     : #4      StatefulComponentElement.update (packages/flutter/src/widgets/framework.dart:1149)\r\nandroid: I/sky     : #5      Element.updateChild (packages/flutter/src/widgets/framework.dart:637)\r\nandroid: I/sky     : #6      ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1062)\r\nandroid: I/sky     : #7      BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:991)\r\nandroid: I/sky     : #8      StatelessComponentElement.update (packages/flutter/src/widgets/framework.dart:1095)\r\nandroid: I/sky     : #9      Element.updateChild (packages/flutter/src/widgets/framework.dart:637)\r\nandroid: I/sky     : #10     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1062)\r\nandroid: I/sky     : #11     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:991)\r\nandroid: I/sky     : #12     ProxyElement.update (packages/flutter/src/widgets/framework.dart:1186)\r\nandroid: I/sky     : #13     Element.updateChild (packages/flutter/src/widgets/framework.dart:637)\r\nandroid: I/sky     : #14     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1062)\r\nandroid: I/sky     : #15     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:991)\r\nandroid: I/sky     : #16     ProxyElement.update (packages/flutter/src/widgets/framework.dart:1186)\r\nandroid: I/sky     : #17     Element.updateChild (packages/flutter/src/widgets/framework.dart:637)\r\nandroid: I/sky     : #18     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1062)\r\nandroid: I/sky     : #19     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:991)\r\nandroid: I/sky     : #20     ProxyElement.update (packages/flutter/src/widgets/framework.dart:1186)\r\nandroid: I/sky     : #21     Element.updateChild (packages/flutter/src/widgets/framework.dart:637)\r\nandroid: I/sky     : #22     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1062)\r\nandroid: I/sky     : #23     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:991)\r\nandroid: I/sky     : #24     ProxyElement.update (packages/flutter/src/widgets/framework.dart:1186)\r\nandroid: I/sky     : #25     Element.updateChild (packages/flutter/src/widgets/framework.dart:637)\r\nandroid: I/sky     : #26     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1062)\r\nandroid: I/sky     : #27     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:991)\r\nandroid: I/sky     : #28     WidgetFlutterBinding.buildDirtyElements.<anonymous closure> (packages/flutter/src/widgets/binding.dart:55)\r\nandroid: I/sky     : #29     BuildableElement.lockState (packages/flutter/src/widgets/framework.dart:924)\r\nandroid: I/sky     : #30     WidgetFlutterBinding.buildDirtyElements (packages/flutter/src/widgets/binding.dart:50)\r\nandroid: I/sky     : #31     WidgetFlutterBinding.beginFrame (packages/flutter/src/widgets/binding.dart:26)\r\nandroid: I/sky     : #32     FlutterBinding._handlePersistentFrameCallback (packages/flutter/src/rendering/binding.dart:176)\r\nandroid: I/sky     : #33     Scheduler.invokeCallback (packages/flutter/src/animation/scheduler.dart:81)\r\nandroid: I/sky     : #34     Scheduler.beginFrame (packages/flutter/src/animation/scheduler.dart:67)\r\nandroid: I/sky     : #35     _beginFrame (file:///src/flutter/engine/src/out/android_Release/gen/sky/bindings/Customhooks.dart:30)\r\n```"}}