Skip to content

flutter: Observatory server failed to start after 11 tries #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thavlik opened this issue Aug 23, 2019 · 2 comments · Fixed by go-flutter-desktop/hover#12
Closed

flutter: Observatory server failed to start after 11 tries #239

thavlik opened this issue Aug 23, 2019 · 2 comments · Fixed by go-flutter-desktop/hover#12

Comments

@thavlik
Copy link

thavlik commented Aug 23, 2019

All of the examples fail to run with hot reload on Windows 10, x64:

PS C:\Users\tlhavlik\Repositories\go-flutter-examples\draggable_borderless> hover run
hover: Using engine from cache
go: finding github.com/go-gl/glfw latest
go: finding gopkg.in/check.v1 latest
hover: build finished, starting app...
flutter: Observatory server failed to start after 1 tries
go-flutter: no handler found for channel flutter/isolate
flutter: Observatory server failed to start after 2 tries
flutter: Observatory server failed to start after 3 tries
flutter: Observatory server failed to start after 4 tries
flutter: Observatory server failed to start after 5 tries
flutter: Observatory server failed to start after 6 tries
flutter: Observatory server failed to start after 7 tries
flutter: Observatory server failed to start after 8 tries
flutter: Observatory server failed to start after 9 tries
flutter: Observatory server failed to start after 10 tries
flutter: Observatory server failed to start after 11 tries
flutter: Could not start Observatory HTTP server:
SocketException: Failed to create server socket (OS Error: An attempt was made to access a socket in a way forbidden by its access permissions.
, errno = 10013), address = 127.0.0.1, port = 50300
#0      _NativeSocket.bind (dart:io-patch/socket_patch.dart:605:7)
<asynchronous suspension>
#1      _RawServerSocket.bind (dart:io-patch/socket_patch.dart:1220:26)
#2      _ServerSocket.bind (dart:io-patch/socket_patch.dart:1480:29)
#3      ServerSocket.bind (dart:io-patch/socket_patch.dart:1471:26)
#4      _HttpServer.bind (dart:_http/http_impl.dart:2578:25)
#5      HttpServer.bind (dart:_http:227:19)
#6      Server.startup.poll (dart:vmservice_io/server.dart:390:36)
<asynchronous suspension>
#7      Server.startup (dart:vmservice_io/server.dart:402:23)
<asynchronous suspension>
#8      main (dart:vmservice_io:257:12)

Cool project, by the way. Go is the clear choice for embedding. Kinda surprised google didn't push it.

@pchampio
Copy link
Member

OS Error: An attempt was made to access a socket in a way forbidden by its access permissions.

Info: https://stackoverflow.com/questions/2778840/socket-error-errno-10013-an-attempt-was-made-to-access-a-socket-in-a-way-forb

Use the command on terminal: netstat -na|findstr 50300 to check if that port (50300) flutter is trying to bind to, is already in used by another service or process.

@pchampio
Copy link
Member

pchampio commented Aug 23, 2019

This should be fixed once go-flutter-desktop/hover#12 is merged.

adding a new flag: hover run --observatory-port 12121 to change the Observatory server's port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants