-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Stack Overflow Exception version 2.1.1 #3228
Comments
Have the same issue, when I attempt to initialise Hubs.cs it goes into a infinite loop |
@AlexisColes @RonaldWeng Can either of you post the complete stack trace? Also, what version of SignalR were you upgrading from? Thanks. |
Hi, the version I used was 2.0.2 I just upgraded to 2.1.1, SignalR connects fine but when you attempt from the client to submit login message request to the server I get the StackOverflow error I've tested the server side components where I have a my security service class that inherits the Hubs library - the only difference I found in the inherited file now is I no longer see the onConnection and Disconnected methods I see protected Hub(); #region Assembly Microsoft.AspNet.SignalR.Core.dll, v2.1.1.0 using Microsoft.AspNet.SignalR.Hubs; namespace Microsoft.AspNet.SignalR
} When I make a call to the class constructor I get the error: An unhandled exception of type 'System.StackOverflowException' occurred in "SecurityService.dll" P.S Are you asking for the log file: u_ex140820.log and fr000001.xml logs?
|
The server_traces file:
|
I don't see a stack overflow exception anywhere in here. What makes you think that the exception is in SignalR itself? |
I've got the same problem. This happens when the concrete hub re-implement (directly or indirectly) the interface IHub. So, the property setter "Clients" of Hub class is called by himself. |
@tomi85 Thanks! Just to restate what you've said: if you have This is the result of how the @GrabYourPitchforks has suggested we could avoid this issue by calling through to a @tomi85 Is there any reason you are re-implementing |
No. It was just for convenience. I have my own implementation of |
Hi there,
I wish I could give you more information about this but after upgrading our project to version 2.1.1 I started getting a stackOverFlow exception.
Seemed to be calling some method on the hub called set_Clients() over and over again.
I rolled back the version of the project to version 2.0.3 and now all seems to be well again.
Cheers
The text was updated successfully, but these errors were encountered: