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
SignalR crashes when app is moved to background and hub connection is closed #208
Comments
|
Thanks for reporting. It seems it comes from recently added keepAlive. I merged a change yesterday that should allow disabling keepAlive by setting the interval to nil. You may want to try this until I figure out what is happening. |
|
Any chance to include logs? |
|
(edited) I will check if disabling it will help and I will try to prepare some anonimized logs for you. |
This does not seem right. Support for keep alive was added less than 3 weeks ago in 5ddfab6 and was not released yet. It seems like the changes are from master. |
|
yes you are right, I thougt I use tagged version not the master. edited above |
|
thank you for quick fix, I will write you back next week if this resolved a crash as it is not something I can trigger on demand. I have also set |
|
If it doesn’t fix the crash you can take a commit before the one I pointed
to.
…On Thu, Oct 21, 2021 at 7:29 AM Paweł Madej ***@***.***> wrote:
thank you for quick fix, I will write you back next week if this resolved
a crash as it is not something I can trigger on demand. I have also set
keepAliveInterval to nil
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#208 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK7JJARPQJNSYFT3XD7PU3UIAPWHANCNFSM5GNNSG5Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
|
My first tries and it looks that app is not killing itself in backround, so that makes hope ;) I am now releasing new testflight version so I will have more users to try it out. |
|
I think the issue is fixed now. I didn't get any new crash report from Signal R until today. Thanks again for quick fix |
|
Thanks for confirming! |
|
I am reopening because the root cause has not been addressed. |
|
We have the same issue, and my colleague found the bug, there is a double semaphore.wait, the one in the closure of resetKeepAlive, and the one in cleanupKeepAlive. So it comes to a freeze/crash. I try to fix it. |
|
@cosmer-work seems like a different issue. Can you create a new issue and provide more details including logs at the debug level? |

I have such reconnect policy:
and my connection method
disconnect method
App uses access token for securing hub connection (before I used access token this error did not happened (and then I used default
.autoReconnect()method but when using it with token it caused to many reconnections failing.Scenario:
App is in foreground it has AT (access token) to open web socket, then I push it to background or lock a device. Connection is then closed with
.disconnect()method. When I unlock device I have report that app had crashed. and in crash log I see what's on image below.I log also SignalR Error - 8
The text was updated successfully, but these errors were encountered: