ashea-code / BLUI

Rich HTML UI engine for UE4
MIT License
859 stars 259 forks source link

Blueprint: Unreal Editor crash when browser window size is set to 0, 0 #81

Open jens1101 opened 8 years ago

jens1101 commented 8 years ago

As the title says: UE4 Editor crashed if I attempt to set the browser window to 0, 0. This happened to me when I tried to create a BLUI instance before the viewport size was set; so it defaulted to 0, 0. This was in blueprint and not in C++

It would be nice to have some kind of fallback mechanism when the instance throws an error, or simply prevent creation of an instance if the size is set to 0, 0.

cthulhusec commented 8 years ago

That's quite odd considering there is already code to prevent that issue in the initialization. Could you provide screenshots of your Blueprint so we can see if something else is going on?

jens1101 commented 8 years ago

Here's a screenshot of the BP: hud screenshot

So if the Viewport Size is [0, 0] then the game and editor hard crash.