JUCE Assertion failure in juce_ResizableWindow.cpp:245

I get this error every 4 or 5 builds or so and the main window never opens:

JUCE v5.4.7
JUCE Assertion failure in juce_ResizableWindow.cpp:245
JUCE Assertion failure in juce_ResizableWindow.cpp:246

The assertion refers to component size being 0 (here are lines 245 and 246):

 // not going to look very good if this component has a zero size..
 jassert (child->getWidth() > 0);
 jassert (child->getHeight() > 0);

It occurs on my applications as well as the demo ones so it doesnt seem to be something wrong with my code. I am running Ubuntu 19.1 (Kubuntu) using CLion 2019.3.5 to build. Has anyone else experienced this? I searched the forum but didnt see anything

Hi, I have the same problem with Windows 10. Did you find the problem?
Thanks

I am getting this bug now as well. Any ideas?