{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/245","labels_url":"https://api.github.com/repos/flutter/flutter/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/245/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/245/events","html_url":"https://github.com/flutter/flutter/issues/245","id":115976201,"number":245,"title":"Error starting app on flutter 0.0.15","user":{"login":"FlutterIssues","id":15744020,"avatar_url":"https://avatars.githubusercontent.com/u/15744020?v=3","gravatar_id":"","url":"https://api.github.com/users/FlutterIssues","html_url":"https://github.com/FlutterIssues","followers_url":"https://api.github.com/users/FlutterIssues/followers","following_url":"https://api.github.com/users/FlutterIssues/following{/other_user}","gists_url":"https://api.github.com/users/FlutterIssues/gists{/gist_id}","starred_url":"https://api.github.com/users/FlutterIssues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlutterIssues/subscriptions","organizations_url":"https://api.github.com/users/FlutterIssues/orgs","repos_url":"https://api.github.com/users/FlutterIssues/repos","events_url":"https://api.github.com/users/FlutterIssues/events{/privacy}","received_events_url":"https://api.github.com/users/FlutterIssues/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flutter/flutter/labels/affects:%20mojo","name":"affects: mojo","color":"f7c6c7"},{"url":"https://api.github.com/repos/flutter/flutter/labels/affects:%20services","name":"affects: services","color":"5319e7"},{"url":"https://api.github.com/repos/flutter/flutter/labels/bug%20(regression)","name":"bug (regression)","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T21:55:45Z","updated_at":"2015-11-09T21:56:27Z","closed_at":null,"body":"<a href=\"https://github.com/afandria\"><img src=\"https://avatars.githubusercontent.com/u/2432033?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [afandria](https://github.com/afandria)**\n_Monday Nov 02, 2015 at 21:22 GMT_\n_Originally opened as https://github.com/flutter/engine/issues/1901_\n\n----\n\nI've made it up to 0.0.14, but I'm getting a shell/embedder problem on 0.0.15.\r\n\r\nI'm using the latest Mojo local installation, but the dart package for mojo is 0.3.0 instead of its latest, 0.3.1. I can't seem to get it to go to 0.3.1, even with `pub upgrade`, but mojo 0.3.0 works with flutter 0.0.14.\r\n\r\nI linted my code with `dartanalyzer`, and there are no problems. (From 0.0.14 to 0.0.15, embedder was changed to shell, in accordance with this https://github.com/flutter/engine/commit/92b9815ff0a80ef45c0388c20460c6c198f9e12c change)\r\n\r\nWhen I launch my app, I get a red screen and this error:\r\n\r\n```\r\n------------------------------------------------------------------------\r\nException caught while building Title(\"Croupier\")\r\n'packages/mojo/src/application_connection.dart': Failed assertion: line 87: '!proxy.impl.isBound &&\r\n        (remoteServiceProvider != null) &&\r\n        remoteServiceProvider.impl.isBound' is not true.\r\nStack trace:\r\n#0      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:27)\r\n#1      ApplicationConnection.requestService (packages/mojo/src/application_connection.dart:87)\r\n#2      _Shell._connectToService (packages/flutter/src/services/shell.dart:59)\r\n#3      _Shell.connectToService (packages/flutter/src/services/shell.dart:74)\r\n#4      _initActivityProxy (packages/flutter/src/services/activity.dart:25)\r\n#5      _activityProxy (packages/flutter/src/services/activity.dart:29)\r\n#6      _activityProxy (packages/flutter/src/services/activity.dart:29)\r\n#7      updateTaskDescription (packages/flutter/src/services/activity.dart:65)\r\n#8      Title.build (packages/flutter/src/material/title.dart:17)\r\n#9      ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1046)\r\n#10     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:987)\r\n#11     ComponentElement._firstBuild (packages/flutter/src/widgets/framework.dart:1033)\r\n#12     ComponentElement.mount (packages/flutter/src/widgets/framework.dart:1028)\r\n#13     Element._inflateWidget (packages/flutter/src/widgets/framework.dart:765)\r\n#14     Element.updateChild (packages/flutter/src/widgets/framework.dart:644)\r\n#15     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1058)\r\n#16     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:987)\r\n#17     ComponentElement._firstBuild (packages/flutter/src/widgets/framework.dart:1033)\r\n#18     ComponentElement.mount (packages/flutter/src/widgets/framework.dart:1028)\r\n#19     Element._inflateWidget (packages/flutter/src/widgets/framework.dart:765)\r\n#20     Element.updateChild (packages/flutter/src/widgets/framework.dart:644)\r\n#21     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1058)\r\n#22     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:987)\r\n#23     ComponentElement._firstBuild (packages/flutter/src/widgets/framework.dart:1033)\r\n#24     ComponentElement.mount (packages/flutter/src/widgets/framework.dart:1028)\r\n#25     Element._inflateWidget (packages/flutter/src/widgets/framework.dart:765)\r\n#26     Element.updateChild (packages/flutter/src/widgets/framework.dart:644)\r\n#27     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1058)\r\n#28     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:987)\r\n#29     ComponentElement._firstBuild (packages/flutter/src/widgets/framework.dart:1033)\r\n#30     ComponentElement.mount (packages/flutter/src/widgets/framework.dart:1028)\r\n#31     Element._inflateWidget (packages/flutter/src/widgets/framework.dart:765)\r\n#32     Element.updateChild (packages/flutter/src/widgets/framework.dart:644)\r\n#33     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1058)\r\n#34     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:987)\r\n#35     ComponentElement._firstBuild (packages/flutter/src/widgets/framework.dart:1033)\r\n#36     ComponentElement.mount (packages/flutter/src/widgets/framework.dart:1028)\r\n#37     Element._inflateWidget (packages/flutter/src/widgets/framework.dart:765)\r\n#38     Element.updateChild (packages/flutter/src/widgets/framework.dart:644)\r\n#39     ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1058)\r\n#40     BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:987)\r\n#41     ComponentElement._firstBuild (packages/flutter/src/widgets/framework.dart:1033)\r\n#42     StatefulComponentElement._firstBuild (packages/flutter/src/widgets/framework.dart:1127)\r\n#43     ComponentElement.mount (packages/flutter/src/widgets/framework.dart:1028)\r\n#44     Element._inflateWidget (packages/flutter/src/widgets/framework.dart:765)\r\n#45     Element.updateChild (packages/flutter/src/widgets/framework.dart:644)\r\n#46     RenderObjectToWidgetElement.mount (packages/flutter/src/widgets/binding.dart:148)\r\n#47     RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (packages/flutter/src/widgets/binding.dart:116)\r\n#48     BuildableElement.lockState (packages/flutter/src/widgets/framework.dart:920)\r\n#49     RenderObjectToWidgetAdapter.attachToRenderTree (packages/flutter/src/widgets/binding.dart:113)\r\n#50     WidgetFlutterBinding._runApp (packages/flutter/src/widgets/binding.dart:76)\r\n#51     runApp (packages/flutter/src/widgets/binding.dart:82)\r\n#52     main (lib/main.dart:36)\r\n\r\n------------------------------------------------------------------------\r\n```\r\n\r\nThis is likely related to the aforementioned https://github.com/flutter/engine/commit/92b9815ff0a80ef45c0388c20460c6c198f9e12c change. I added a few print statements, and it looks like `remoteServiceProvider` is null. This happens when the mojo `ApplicationConnection` isn't given a remoteServiceProvider.\r\n\r\nLooking at `services/shell.dart`, this happens only if `servicesHandle.isValid` is not true. (https://github.com/flutter/engine/blob/master/sky/packages/sky/lib/src/services/shell.dart#L32)\r\n\r\nIs there something I can do to make the services handle valid? I am running with pub run sky_tools run_mojo`\n"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/155211272","html_url":"https://github.com/flutter/flutter/issues/245#issuecomment-155211272","issue_url":"https://api.github.com/repos/flutter/flutter/issues/245","id":155211272,"user":{"login":"FlutterIssues","id":15744020,"avatar_url":"https://avatars.githubusercontent.com/u/15744020?v=3","gravatar_id":"","url":"https://api.github.com/users/FlutterIssues","html_url":"https://github.com/FlutterIssues","followers_url":"https://api.github.com/users/FlutterIssues/followers","following_url":"https://api.github.com/users/FlutterIssues/following{/other_user}","gists_url":"https://api.github.com/users/FlutterIssues/gists{/gist_id}","starred_url":"https://api.github.com/users/FlutterIssues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlutterIssues/subscriptions","organizations_url":"https://api.github.com/users/FlutterIssues/orgs","repos_url":"https://api.github.com/users/FlutterIssues/repos","events_url":"https://api.github.com/users/FlutterIssues/events{/privacy}","received_events_url":"https://api.github.com/users/FlutterIssues/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T21:56:27Z","updated_at":"2015-11-09T21:56:27Z","body":"<a href=\"https://github.com/krisgiesing\"><img src=\"https://avatars.githubusercontent.com/u/13855787?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [krisgiesing](https://github.com/krisgiesing)**\n_Wednesday Nov 04, 2015 at 23:30 GMT_\n\n----\n\nYeah. I looked into this a little bit but I don't know enough about how Mojo connections are managed to see the right way to do this.\n"}}