Crash in Object::loadWorld in 2.13 alpha


photo

Recommended Posts

Hi,

While randomly trying to load some of our content in 2.13 alpha I received an assertion failure "Vector::operator[]: bad index". After attaching a debugger it turned out the crash is coming out of Object::loadWorld where the value of surface is set to -1. I believe the following piece of code is causing this:

int find = findSurface(name);
if (surface == -1)
{
	(...)
}
surface = find;

My guess is this if statement should check the find variable instead of surface for == -1. The reason it triggered is probably that one of our .node files did not get updated properly, I cannot tell whether this was caused by the upgrade script or it was a human error though.

Link to post