SamDel / ChromeCast-Desktop-Audio-Streamer

Stream the sound of your desktop to your Chromecast Audio device
MIT License
416 stars 30 forks source link

Stabilize connections and automatic restarts/recoveries #31

Closed SamDel closed 5 years ago

SamDel commented 5 years ago
GrahamDLL commented 5 years ago

I have started and stopped the app about twenty times and one device failed to start on about three of those starts.

I ran Resource Monitor throughout and I did not see excessive CPU or memory use. I did not see that any values in Resource Monitor were different when a device failed to start.

I cannot see any common factor in the fails. I haven't a clue.

SamDel commented 5 years ago

In 1.9.68 I do a retry when 'load failed'. Maybe that works!?

GrahamDLL commented 5 years ago

Started 15 times and the devices all started on each and every startup ... but they were not in sync ... Logs 029 and 030

log029-030.zip

Windows resizing works well ... thank you.

Restart last used group worked well ... I did not try restart last used devices. Thank you again.

Start when Windows starts kinda worked ... The app starts but gives an exceptions ... Logs 031 and 032 ...

log031-032.zip

Overall a solid B

SamDel commented 5 years ago

I dropped the wrong file 😄, this is the real Setup 1.9.68.zip with the retry fix. Can you try that one as well? (Then I can make that version 2.0.)

I already started with the 2.0 issues in another branch. Odd that all devices started now, I don't think I changed anything there in the 2.0 branch. It looks like I have to wait till the soundcard is up and running that's why you get the exceptions. I only tried it once myself. We can test that one later.

GrahamDLL commented 5 years ago

1.9.68 Attached logs show ...

033 - All devices started but not in sync 034 - All devices started and are in sync 035 - 037 - Not all devices started.

Is it only me that has a problem with automatic start of all devices? It may be that the problem is specific to my setup. I will never use automatic start of all devices so it may be that you don't need to chase this problem if it is only me.

I expect that somebody that wants to automatically start all devices will be able to test this in future if you make any further changes.

log033-037.zip

SamDel commented 5 years ago

It's retrying, but it doesn't fix the connection. I'm going to make a 2.0 release and spent my time on the new features!