Jump to content

[CRASH] Stack Overflow


Recommended Posts

last night, I attempted a gravity-assisted capture around Jool using Laythe, then fine-tuned my approach until I got a second encounter with Laythe and then this crash occured

[EXC 19:25:02.910] StackOverflowException: The requested operation caused a stack overflow.
	Targeting+Sample.Create () (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Smooth.Pools.Pool`1[T].Borrow () (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting+Sample.Borrow (Targeting+Conic o1, Targeting+Conic o2, System.Double v) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting+Interval.Subdivide () (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)

those last few lines repeat until the crash occurs; apparently there's a non-breaking loop somewhere in the encounter code.

Edited by Xyphos
Link to comment
Share on other sites

1 hour ago, Xyphos said:

those last few lines repeat until the crash occurs; apparently there's a non-breaking loop somewhere in the encounter code.

Or rather, a recursive function with a broken termination condition.

Edited by IncongruousGoat
Link to comment
Share on other sites

2 hours ago, Xyphos said:

	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <55ba45dc3a43403382024deac8dcd0be>:0)

 

Did somebody say Subdivisions?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...