redferret / planet

A simulation that simulates geological processes as well as hydrological, biological, and other complex systems that can exist on a planet
7 stars 0 forks source link

Stack Overflow in GeoCell - [probable] #4

Open redferret opened 8 years ago

redferret commented 8 years ago

The GeoCell, on line 461, will sometimes enter a large recursive call loop and cause a stack overflow. The reason is unknown.

redferret commented 8 years ago

Added try-catch to monitor stack overflow

redferret commented 8 years ago

I reopened this bug because I came across it while doing an endurance test on the BasicJView.

redferret commented 8 years ago

The bug doesn't seem to be showing up anymore after revisions were made but it may still be possible that this bug shows up so this is marked as probable but it may never happen.

redferret commented 8 years ago

Added back the try-catch in case the bug happens again. It is unclear why it is happening, if the difference taken is too small, when trying to remove from the strata, and the amounts never remove from the strata due to floating point errors, then the recursive calls will continue. The patch to fix this didn't seem to help.