Comments (32)
I'm still investigating but initially I believe the issue is that StarScream lib we use for websocket interaction creates one URLSession per request, which in a retry loop goes over iOS limits. I believe this wasn't happening in some updates ago because we were still supporting iOS 12 at that time and this limit was not applied.
I created a PR to starscream daltoniam/Starscream#1011
from ios.
@bgoncal let me know if there is anything you need to assist in debugging this.
from ios.
This looks related, I'll investigate next week
from ios.
Im preparing a testflight build with a possible fix , when you see 2024.612 in testflight you can test it
from ios.
Heads up that this fix is not on our main branch yet, so if you see new builds coming in testflight, they may revert this fix
from ios.
Im doing some clean up around shortcuts, widgets and intents in general, I'll let you know when you can test it again
from ios.
When you open the app, does the sensors get updated correctly? I mean, when it is in foreground all works?
Do you have "local push" enabled?
from ios.
It does not update when the app is in the foreground.
I do not have local push enabled, or an internal URL configured.
from ios.
Did you observe a pattern for when does it stop reporting? In background I know for sure the sensor updates wont be live without local push enabled but foreground should be working properly.
from ios.
Unfortunately there doesn't seem to be a pattern to it, I have no way to reproduce. Is there anything useful I can capture the next time it happens?
from ios.
Your logs. You can export going in Debugging > export
from ios.
Can you check the latest testflight beta? It may have fixed this
from ios.
I'll update to the latest beta and continue to monitor! 🤞🏻
from ios.
Still happening unfortunately, this is what I see when the shortcut fails;
from ios.
Home Assistant_2024-03-21_181706.txt
Home Assistant_2024-03-21_192239.txt
Home Assistant_2024-03-21_200921.txt
Home Assistant_2024-03-21_191428.txt
from ios.
POSIXErrorCode(rawValue: 28): No space left on device) Is thrown constantly by the app when the WS connection breaks
was something changed in the test flight version related to URLsessions or any kind of networking introspection libraries?
from ios.
RC still has the issue. I’ll also note that when this happens and you open the app after it has been in the background it doesn’t connect to HA at all. It fails and HA logs the following:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:461
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: March 24, 2024 at 6:32:56 PM (6 occurrences)
Last logged: 7:21:09 AM
[281473247231552] from 192.168.1.68 (Home Assistant/2024.3 (io.robbie.HomeAssistant; build:2024.603; iOS 17.4.1)): Disconnected: Did not receive auth message within 10 seconds
[281472302263104] from fe80::1460:ed53:6ed7:34ed (Home Assistant/2024.3 (io.robbie.HomeAssistant; build:2024.603; iOS 17.4.1)): Disconnected: Did not receive auth message within 10 seconds
[281472222859200] from 192.168.1.68 (Home Assistant/2024.3 (io.robbie.HomeAssistant; build:2024.603; iOS 17.4.1)): Disconnected: Did not receive auth message within 10 seconds
[281471861314368] from fe80::1460:ed53:6ed7:34ed (Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2024.3 (io.robbie.HomeAssistant; build:2024.608; iOS 17.4.1) Mobile/HomeAssistant, like Safari): Disconnected: Did not receive auth message within 10 seconds
[281471753716160] from fe80::1460:ed53:6ed7:34ed (Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Home Assistant/2024.3 (io.robbie.HomeAssistant; build:2024.608; iOS 17.4.1) Mobile/HomeAssistant, like Safari): Disconnected: Did not receive auth message within 10 seconds
hard closing the app and reopening it resolves the issue. I have been running test flight versions since they started getting published again and this just started with this cycle of work: after CarPlay release version so maybe 2 or 3 test flight pushes back.
from ios.
I just thought of something else. The timing could possibly coincide with the release of iOS 17.4
from ios.
Can you consistently reproduce the issue in some way? Like rebooting HA with the App open for example. I would like to have the same issue happening on my device to investigate it better, for now I couldn't reproduce
from ios.
Having a Shortcut automation which fires on power connect and disconnect to "Update Sensors" in the background is the way this manifests most often for me.
from ios.
Can you consistently reproduce the issue in some way? Like rebooting HA with the App open for example. I would like to have the same issue happening on my device to investigate it better, for now I couldn't reproduce
Just leaving the app alone in the background for like 30 mins is all it takes for me
from ios.
@dmulcahey Im checking your logs, when they happened were you somewhere http://192.168.1.78:8123 was accessible? (your home probably) or were you using external URL?
from ios.
I work from home and am generally here. I just opened the app from the background again. Last open was around the time of my last reply and it happened again. I’ll get new logs for you in a few. Can you give me somewhere to send an iCloud link so I can get you the full bundle from the app?
from ios.
Are you in discord? You can ping me there @bgoncal2
from ios.
Im preparing a testflight build with a possible fix , when you see 2024.612 in testflight you can test it
Just saw this update and installed it. Will report back
from ios.
Im preparing a testflight build with a possible fix , when you see 2024.612 in testflight you can test it
Initial testing looks good. Let’s see how it does overnight
from ios.
Everything is still working. What was the issue?
from ios.
@lwis can you also check if this works for you?
from ios.
Updated this morning, so maybe too early to tell, but I've not run into any issues yet.
from ios.
Feel free to reopen this issue if needed, I'm closing this issue for now and planning the next release to include the fix
from ios.
Bad news; it happened again this morning. I'm unable to run the shortcut directly at all. The app is fully functional. Closing the app allows the shortcut to run again.
I grabbed logs before closing the app.
2024.624
from ios.
This is still happening, please let me know if there's any way I can help!
from ios.
Related Issues (20)
- MacOS application asks for enabling location services on every start HOT 6
- cannot adjust numeric value due to decimal separator config HOT 2
- App's user agent doesn't comply with Google's Use Secure Browsers policy HOT 1
- Webview refreshes every time app is switched to HOT 1
- Incorrect location reported
- macOS app "What's new?" section awkwardness in preferences
- Home Assistant logo missing from About screen (all platforms)
- Timeout in app and in browser interface HOT 3
- HomeAssistant CarPlay Companion not showing devices/entities HOT 2
- synced actions not updating HOT 4
- Fixed background does not work HOT 3
- Status bar color follows wrong color variable HOT 5
- Trailing whitespace in iOS Action Names are randomly added and uneditable
- Companion app extremely slow on Iphone HOT 3
- Cycling is never reported as an Activity HOT 3
- macOS app - Assist dialog can't be closed via keyboard shortcut HOT 1
- App-header-backdrop-filter not for whole Ui HOT 5
- Location error when refreshing in iOS App
- Automatik Displaylock Not Working When Homeassistant App is Open HOT 2
- App loses / deletes server configuration HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios.