See Renderer::renderMergedBatch() + about 50 lines:
The sms variable can be a null pointer here. Avoiding the null pointer access and printing an error message would be helpful.
This might happen on other platforms where the material doesn't link, but the bug is opened because it can happen quite commonly on WinRT if the D3D compiler is left out of the package or the compiler service isn't running.
It's worth noting that there are already debug messages printed by QOpenGLShader and d3dcompiler_qt saying that something went wrong. However, it might be worth going the extra mile and avoiding the crash. Or, qFatal could be used so that a message box could be shown in release builds instead of simply crashing the application.
|For Gerrit Dashboard: QTBUG-37290|
|80137,1||QSGBatchRenderer: return when a shader is not returned by the manager||stable||qt/qtdeclarative||Status: MERGED||+2||0|