-
Notifications
You must be signed in to change notification settings - Fork 18
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
Unhandled TimeoutException error being thrown occassionally #72
Comments
@QuintinWillison I think we can increase timeouts to 15 seconds considering worst-case-scenario with end user device capabilities. Should we do anything other than throwing a |
Just to be clear, as I've not dived deep into the context on this one, is this purely delay within the application process? (i.e. no external asynchronous factors like network calls involved?) Also, are we only seeing this on one platform or both Android and iOS? Does it only relate to simulators? It feels to me that 15 seconds is just as arbitrary as 5 seconds which is just as arbitrary as the original 2 seconds... Naively I would have assumed this problem would be measured in a handful of milliseconds at worst. I would like to establish a value derived from more than a finger in the air, or perhaps consider an alternative approach like a retry strategy (if that's applicable). What do other libraries do to solve this? FYI, @paddybyers |
@QuintinWillison Yes, its only related to platform - method calls. no network involved. iOS might have been faster due to its memory management.
Other libraries use asynchronous initialization techniques. For us to conform to our spec, we had to adopt a background initialization of respective instances on platform side. Retry also wouldn't make sense if the device is in-capable of getting a response from platform side in set-timeout. It would always fail leading to a never ending retry loop if we don't break. I feel best way to go is to increase the timeout to a higher value. FYI, here are the device details with which @Srushtika tried:
|
timeout increased to 5 seconds in #75 We can consider increasing it further if this issue repeats. |
Hi there, I've been trying to get a chat app working on Android and iOS emulators. It was working fine before but recently, it started throwing an error occasionally on iOS and almost every time on Android:
I chatted with tiholic on Slack. Following his advice, I updated the platform.dart and platform_object.dart files to have the timeout value of 5 instead of 2. I ran it locally with this change and didn't see any errors anymore, neither on Android nor on iOS. It was all working as expected.
The project in question is publicly available if you'd like to try it out and reproduce the error.
┆Issue is synchronized with this Jira Bug by Unito
The text was updated successfully, but these errors were encountered: