Jump to content

[SOLVED] Weird crash when loading world


photo

Recommended Posts

Posted

Hi,

 

Today, i rebuild all our plugins and app with the last Unigine SDK,

 

Everything seems ok when i load empty world and do my Unit Test with all the plugins. But when I try to load our Editor I have a crash, seems about the Splash screen but we didn't have splash screen, must be about the "Loading ...." text, our xml world is completely empty, all are build dynamically.

 

Thanks

 

Tony

 

 

splash.png

Posted

Hi,

 

About this bug I have some more info, If I launch crypt with my own build everything work but if i comment this lines 

 

float aspect = float(engine.app.getWidth()) / engine.app.getHeight();
engine.splash.setWorld(format("sanctuary/splashes/world_%s.png",(aspect < 1.5f) ? "4x3" : "16x9"),16);
engine.splash.setSplash(format("sanctuary/splashes/world_%s.png",(aspect < 1.5f) ? "4x3" : "16x9"),16);
 
For remove the splash screen and print "Loading..." I have the same crash.

I try inside the sdk without rebuilding Unigine and I have the same error.

Thanks
 
Tony
Posted

We have a bug regarding splash screen rendering in the current SDK.

 

The patch is really simple (source/engine/gui/Gui.cpp:1221):

const vec4 &Gui::get_color() const {
  if(colors.size()) return *colors.back();
  return vec4_one;
}
×
×
  • Create New...