Skip to content
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

flaskwebgui error #54

Closed
Rhaedas opened this issue Aug 28, 2020 · 9 comments
Closed

flaskwebgui error #54

Rhaedas opened this issue Aug 28, 2020 · 9 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@Rhaedas
Copy link

Rhaedas commented Aug 28, 2020

Tried 1.3 to take a look, got hung on waiting for a plot in the GUI. Loaded the log, it's not finding something.

EDScout-2020-08-28-16-25-18.log

I just replaced 1.2.5 (which was working) with this exe.

@joncage
Copy link
Owner

joncage commented Aug 28, 2020

Looks like the chrome web browser isn't being detected on your system. Weird when it worked on earlier versions. I'll generate a debug build.later. maybe I screwed something up...

@joncage
Copy link
Owner

joncage commented Aug 28, 2020

If the GUI appears but nothing happens when you plot a route, it's possible something is falling over in the GUI. You could try double checking whether...

  • if you connect a browser.to 127.0.0.1:5000 does developer more show up any issues?
  • If you check the directory with notepad etc does that cause it to spring into life? Maybe I broke the bit that was prompting updates to the journals from being passed on...

@Rhaedas
Copy link
Author

Rhaedas commented Aug 28, 2020

Definitely weird. Messing with the directory didn't affect anything, so I backtracked to previous versions that worked, and now had similar issues (no flaskwebgui error in the log, but not loading like before). Then they finally started working. I finally tried 1.3, clicked on the journal file like before, and it loaded the route. Still has the error in the log.

EDScout-2020-08-28-23-17-41.log

That 1.2.5 and 1.2.4 were working and now aren't suggests something changed here, although I haven't done anything different.

Going to do more comparisons between versions, see if I can narrow down what's going on. Chrome update maybe? Shouldn't break things like that.

Update:
Didn't 1.2.5 show at least the current position at all times, pulling from the latest journal, even if the game wasn't loaded, or at least once the game loads? Maybe that's my imagination. It does work now once I plot a route, so maybe going to 1.3 then back did something that's cleared up.

I do notice that after trying a few times with no success and then when it works, it would read all the routes in until it got to the latest one. I think this was mentioned in another issues thread, not sure if a bug or just part of getting updated after breaking, but wouldn't it do this a lot if say someone had a long journal entry and then decided to load up EDScout? Can you read backwards to grab only the first one found, which should be the current? Don't want to make you rewrite everything, just an observation.

So back to 1.3, it does seem it's doing a similar thing as before with not seeing the journal updates by itself.

@joncage
Copy link
Owner

joncage commented Aug 29, 2020

Lots to pick apart there. Sounds like something odd is going on behind the scences.

I do notice that after trying a few times with no success and then when it works, it would read all the routes in until it got to the latest one.

If something was preventing it from loading routes, I'd expect it to just load the last one (although it might load that route multiple times if it was scanning through a lot of navroute journal entries.

#33 should deal with a cleaner / more sensible startup. If there are multiple nav route calls, the latest scout should spot that it's reloading an unchanges navroute file and avoid re-plotting if nothing changed (i.e. start and end are identical).

This log message shows at one point it was ~30s out for some reason:

2020-08-28T23:20:53.352Z - EDScoutCore-EDScout - INFO - Reporting: {"timestamp": "2020-08-28T23:20:33Z", "event": "Cargo", "Vessel": "Ship", "Count": 0, "Inventory": [], "type": "JournalEntry"}

Note the timestamp diferences. The first is the scout and the second is the game.

I think the chrome messages were a red-herring. Next release should turn them off.

@joncage
Copy link
Owner

joncage commented Aug 29, 2020

Re-running with EdScout.exe -log_level 10 might give us a bit more to go on (enables debug logging).

@joncage
Copy link
Owner

joncage commented Aug 29, 2020

I managed to get my system in a similar sounding state. only way i recovered it was to close chrome then close all the hidden chrome instances from task manager. Need to find a way to identify these background chrome processes so they can be culled safely.

@Rhaedas
Copy link
Author

Rhaedas commented Aug 30, 2020

I believe you can close this, as 1.4 works perfect for me.

@joncage
Copy link
Owner

joncage commented Aug 30, 2020

Still, I had a cunning idea when I woke up this morning. We know the PID when we launch chrome I believe so we could write that value to a file each time we launch one. That way we can recall current chrome launches and kill those off too. Simple and should be effective.

@joncage joncage added bug Something isn't working enhancement New feature or request labels Aug 31, 2020
@joncage
Copy link
Owner

joncage commented Aug 31, 2020

Will handle this in #71

@joncage joncage closed this as completed Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants