Alvinger / MMM-ResRobot

ResRobot module for Magic Mirror 2 - Display public transport departures
14 stars 15 forks source link

List of departures slowly fades, then stuck in "fetching..." #21

Open uwefladrich opened 1 year ago

uwefladrich commented 1 year ago

Hi,

Thanks for a great MM plugin, it is greatly appreciated!

I have this issue where the the list of departures works for a while (couple of hours or a day) and then it fades and shortens as departure times pass. No new departures are fetched and finally it is stuck in "fetching departures". After restarting/reloading MM everything works fine again, until it eventually does not.

I think it is the same behavior as described here.

Any idea why this could be?

Alvinger commented 1 year ago

@uwefladrich Hi, I have also experienced this more often lately. I'm a bit worried that it might be a memory leak somewhere. I'm thinking of introducing a "hard refresh" maybe once a day or some kind of timeout (if last update is too far in the past, do a complete refresh) to make sure that it doesn't happen.

klalle commented 1 month ago

my PR might solved this!? The client side code got stuck in an eternal loop calling self.updateDepartures(); without delay.