New Posts New Posts RSS Feed: StackOverflowException
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

StackOverflowException

 Post Reply Post Reply
Author
GeorgeB View Drop Down
Groupie
Groupie


Joined: 03-May-2010
Posts: 66
Post Options Post Options   Quote GeorgeB Quote  Post ReplyReply Direct Link To This Post Topic: StackOverflowException
    Posted: 08-Aug-2011 at 9:46am
Hi
 
I'm using DevForce Silverlight 6.1.2.0
 
I have a Silverlight application running in Windows Azure. We started getting 503 errors and I found errors in the Event Viewer showing the application pool stopping after some errors.
 
I've pulled the database down from SQL Azure onto my development machine and I'm getting a StackOverflowException (an unhandled exception of type 'System.StackOverflowException' occurred in System.Runtime.Serialization.dll.
 
Where do I start to look as there is nothing in the debug log and I can't see how to catch this.
 
Some more testing and I get "An unhandled Microsoft.NET Framework exception occurred in w3wp.exe". So that would be IIS which means the application pool is stopping after a max of 5 failures which explains why I'm seeing the 503 error.
 
Kr
George


Edited by GeorgeB - 08-Aug-2011 at 10:05am
Back to Top
robertg View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 15-Mar-2011
Location: California
Posts: 87
Post Options Post Options   Quote robertg Quote  Post ReplyReply Direct Link To This Post Posted: 09-Aug-2011 at 3:00pm
Since StackOverflowException can't be caught, I'm not surprised that  you're having trouble finding the problem.
 
I think, though, that if you run the application in debug, you may be able to view the exception in the Exception Assistant.
 
Do you know what part of your code is triggering the exception? I would test each of the components of my application until I found the part that triggers the error, then check that code for any logic that might be generating nested method calls.
Back to Top
GeorgeB View Drop Down
Groupie
Groupie


Joined: 03-May-2010
Posts: 66
Post Options Post Options   Quote GeorgeB Quote  Post ReplyReply Direct Link To This Post Posted: 09-Aug-2011 at 10:19pm
Hi robertg
 
Since the exception is happening inside IIS in the IdeaBlade libraries it would be impossible for me to debug.
 
If I remove one of the .Includes(), I don't get the overflow. I put it back - bang.
 
Very frustrating.
 
I will probably move this to a private discussion with oen of the IdeaBalde team.
 
Kr
George
Back to Top
BringerOD View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 27-Aug-2010
Location: USA
Posts: 35
Post Options Post Options   Quote BringerOD Quote  Post ReplyReply Direct Link To This Post Posted: 12-Mar-2012 at 1:38pm
I am having the exact same issue.

Any luck with this?
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 13-Mar-2012 at 9:13am
Where are you seeing the problem Bryan? 
 
In the 6.1.5 release we added an "alternate" serialization mode which will address stack overflows which occur during serialization of a "deep" graph.  If that looks like your problem, you can find out more here - http://drc.ideablade.com/xwiki/bin/view/Documentation/SerializationContext
Back to Top
BringerOD View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 27-Aug-2010
Location: USA
Posts: 35
Post Options Post Options   Quote BringerOD Quote  Post ReplyReply Direct Link To This Post Posted: 13-Mar-2012 at 9:59am
Just saw that.  I am on 6.1.4.  I will upgrade and check it out.
 
Thanks
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down