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
Playing Netflix "crashes" #959
Comments
I wonder if this has to do with the new heartbeat support I added... Will have to investigate a bit myself, thanks for reporting! |
Generated html log for issue description is here. |
I cannot seem to reproduce this myself. Still on tvOS 14.4 thoug, so maybe it's related to something in the beta builds. Can you still reproduce this? Even after restarting the device? Also, does it happen while just being in the Netflix app or only when playing something? |
Hi. |
This happens to all apps. I got the issue on AplleTV+ / Netflix & Amazon Prime. All apps stop after a short time and it quits to the home menu. Also on 14.5 beta 2 |
This must be an issue in tvOS 14.5 then. Question is if it's a bug or an intended change from Apple though. |
That's a good question. :) But older integration is working fine with 14.5. |
How can I downgrade to an older version to test it ? |
I added heartbeat support in the latest release which is likely the reason why this happen. I guess the method I used to implement heartbeats changed in tvOS 14.5. |
Hi @postlund, not trying to push hard here but there is an ETA to review and correct the issue affecting the beta tvOS version 14.5? |
@jpatriarca I want to wait at least until the next beta to see if the behavior is still there before making any changes. I'm not sure what message to use otherwise as an alternative to implement heartbeats. |
I updated HA to the latest version and had no issues with tvOS 14.4. This only started happening once I upgraded to tvOS 14.5b2. Apps only crash once they start playing video, navigating menus, etc does not cause them to crash. I don’t know if heartbeat is involved or if it’s something to do with retrieving the details about what content is playing. |
I'm experiencing the same, all video content crashing after several seconds. Apple is working on video related stuff: https://tweakers.net/nieuws/178172/apple-tv-krijgt-ondersteuning-voor-zowel-23-komma-976-als-24-komma-000fps.html Most probably it's related to this implementation. |
Just to share: I executed the below several times until I got the question to reset or reboot. I then just rebooted without reset and then everything worked fine again for tvos 14.5b2: The only thing I had to do was repair the Apple remote: |
Also have this issue on tvOS 14.5b2. The apps work fine until you start playing video and then it crashes after just a couple seconds. Reproduced it on ESPN+, HBO Max, Starz, Netflix, etc. Interestingly, I was able to stream a two minute trailer on Disney+ app from start to finish with no crashes. I also used the Plex tvOS app to watch something off my personal Plex server and it didn't crash after several minutes. That makes me wonder if it might be something DRM related? |
Tried the solution I just provided @SeanPM5? |
Not at home right now but will try your solution when I get back. Sounds promising! |
I still feel that I'm 99% certain that it's related to heartbeats. A simple way to confirm is to use
If someone could try, it would be great. You have to install pyatv first and that doesn't have to be on the same computer as Home Assistant. |
Seems like tvOS 14.5 beta has some issues with current heartbeat implementation, so switch to another measage for heartbeats. Fixes #959.
If someone can confirm what I wrote above, please try with #975 as well and let me know if that solves the problem. |
I'll try it once I get home. |
Generated html log for issue description is here. |
Any success to report? 😛 |
My two cents. I'd close the issue as it's only appearing on a beta release... |
What if it makes it into the release candidate? Too early to close IMHO. |
I agree that it is beta and perhaps this won't be a problem when the final release is out. But I still feel that it's a good idea to follow up. I would actually prefer my suggested solution as I find it "more clean". It also works for both current release and beta, so it's win-win. |
debug: https://pastebin.com/dl/sFfBkHME There's Starting heartbeat loop -> heartbeat 0 -> heartbeat 1 -> play but right after start it crashes and no heartbeat 2 It there's anything else I could try just let me know |
What should I do, to try this? Thanks. |
allright , beta 3 seems to work again! |
Great! Not surprised it was an error in tvOS. I'm gonna merge my change in #975 as well since I find that to be a better solution. |
Seems like tvOS 14.5 beta has some issues with current heartbeat implementation, so switch to another measage for heartbeats. Fixes #959.
I recently updated to stable 14.5, and I’m having the same issues. Maybe it wasn’t just the beta version? |
@ramondunker Hmm, that doesn't sound good. Do you have time to see if you can reproduce with latest pyatv alone (using |
Hey, sure. I will try it in a couple of hours 👍 |
Of course! What you want to test is basically to run |
Thanks for your explanation, will let you know :) |
Great! Let me now if you have any questions 👍 No experience, no. Didn't know it existed 😅 Does it have any useful use cases yet? |
You can jailbreak the latest version of tvOS on Apple TV 4K. But it worked once and now I'm getting some weird green screen and crash after connecting the USB. About pyatv: how do I install the master version of the package? |
Interesting! Sorry, can't really help you there 😕 You have instructions here ( |
Latest release: Master: It quits the player with both versions, release and master. |
It looks like the master log contains the same keepalive message as latest release, so I don't think it worked correctly. Try uninstalling all versions of pyatv and then install master again, might be that you have both versions installed and the released version got precedence. Should be enough to run |
Yeah, the version in git is the same as the released version. Should add dev0 or something to it, but haven't come around to to that. Should be fine nonetheless. |
Ah okay, this still gives the same output. It kills the player on the Apple TV |
If you check the debug log, do you see |
It actually works now. I guess I still had the wrong version installed. When will this be pushed to the next release? :D |
Yeah, probably the reason 😊 I will try to make a release today and open a PR for version bump in Home Assistant soon after that. |
I will bump the beta component was the PR has been merged, to ensure I get code review comments included. |
New release is out, 0.7.7, and a PR is opened here. Lets see how it goes. |
PR merged into dev and will be available in a future release (I will try to remember to post here when it's out). Beta component has been updated with this change, available via HACS soon. |
Thank you. Looking forward to it :)
|
@ramondunker That seems to be another problem. Please open a new issue and include debug logs. Preferably you just use |
After a full fresh installation of Home Assistant its all fixed. Really weird... Thanks for your help 👍 |
Describe the bug
After update to the latest HACS version or the latest HA integration version, while using Netflix on AppleTV, Netflix exists to AppleTV main menu after few seconds. After restore to previous version everything is working as expected.
To Reproduce
Expected behavior
System Setup (please complete the following information):
Additional context
HA - 192.168.20.58
AppleTV - 192.168.20.109
The text was updated successfully, but these errors were encountered: