ed-scout icon indicating copy to clipboard operation
ed-scout copied to clipboard

ED Scout stays blank, but remote connection works

Open EoD opened this issue 5 years ago • 6 comments

When I am starting EDscout by ./EDScout.exe, the screen pops up and is empty: image

But when I am opening the remote connection in a browser tab in parallel, it looks good: http://localhost:5000/

Is it possible that the auto-launched chrome window is not using its own profile, like a guest profile? Maybe some of my browser extensions are interfering with the main window.

EoD avatar Nov 20 '20 03:11 EoD

Now that is interesting. EDScout uses this module to launch the chrome instance: https://pypi.org/project/flaskwebgui/

The line in question is here: https://github.com/ClimenteA/flaskwebgui/blob/34a1e2d47eef6f9283f7f440db8b106315f0ee4c/src/flaskwebgui.py#L201

[self.browser_path, "--new-window", '--app={}'.format(self.localhost)]

i.e.

chrome.exe --new-window --app=http://127.0.0.1:5000

Some questions for you;

  1. When you plot a route after opening it in that state, does it recover?
  2. If you right-click on the stalled GUI and hit Inspect then go to the Console tab, do you see any error messages?
  3. What do the logs in C:\Users\<You>\AppData\Local\EDScout\Logs look like?

joncage avatar Nov 20 '20 23:11 joncage

Could be related to #105

joncage avatar Nov 20 '20 23:11 joncage

chrome.exe --new-window --app=http://127.0.0.1:5000

That is probably the issue here. My "normal" Chrome does not allow many external scripts, especially none from 127.0.0.1. It would be preferable if you could launch chrome.exe --guest --new-window --app=http://127.0.0.1:5000 instead. When I am doing this locally, it seems to work out of the box.

When you plot a route after opening it in that state, does it recover?

I was not able to make it show any kind of data

If you right-click on the stalled GUI and hit Inspect then go to the Console tab, do you see any error messages?

Nothing in particular, but plenty of messages regarding ad-blocking

What do the logs in C:\Users<You>\AppData\Local\EDScout\Logs look like?

I am not seeing any errors

EoD avatar Nov 26 '20 03:11 EoD

Gotcha. I'll give that a try and make a proposal to the maintainer of flaskwebgui. I've submitted quite a few alterations in the development of EDScout 😉

Might get you to try a beta to check this fix solves it for you if you're okay with that?

joncage avatar Nov 26 '20 07:11 joncage

Might get you to try a beta to check this fix solves it for you if you're okay with that?

sure!

EoD avatar Dec 10 '20 00:12 EoD

I am having the same issue. It seems to work, then I logout for the night, but leave edscout running, come back and it will not update, despite closing and opening it. Replotting route doesn't help either.

Overcon avatar Dec 18 '20 11:12 Overcon