Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt3D example runtime error using msvc2015



  • Hi guys:
    I just finished the compilation of Qt5.10.1 under the visual studio 2015 enviroment, and then i tried to
    run a qt3d example("Simple C++ Example"), However, the runtime error occurs, the error info is the following:
    0x000007FEC522EA84 (Qt53DRenderd.dll) (QtGuiApplication1.exe 中)处有未经处理的异常: 0xC0000094: Integer division by zero。

    The call stack info is below:
    Qt53DRenderd.dll!Qt3DRender::Render::GraphicsContext::applyUniformHelper<0>(const Qt3DRender::Render::ShaderUniform & description, const Qt3DRender::Render::UniformValue & value) Line 1989 C++
    Qt53DRenderd.dll!Qt3DRender::Render::GraphicsContext::applyUniform(const Qt3DRender::Render::ShaderUniform & description, const Qt3DRender::Render::UniformValue & v) 行 1332 C++
    Qt53DRenderd.dll!Qt3DRender::Render::GraphicsContext::setParameters(Qt3DRender::Render::ShaderParameterPack & parameterPack) Line 1273 C++
    Qt53DRenderd.dll!Qt3DRender::Render::Renderer::executeCommandsSubmission(const Qt3DRender::Render::RenderView * rv) Line 1866 C++
    Qt53DRenderd.dll!Qt3DRender::Render::Renderer::submitRenderViews(const QVector<Qt3DRender::Render::RenderView *> & renderViews) Line 1431 C++
    Qt53DRenderd.dll!Qt3DRender::Render::Renderer::doRender() Line 783 C++
    Qt53DRenderd.dll!Qt3DRender::Render::Renderer::lockSurfaceAndRender() 行 637 C++
    Qt53DRenderd.dll!Qt3DRender::Render::Renderer::render()Line 719 C++
    Qt53DRenderd.dll!Qt3DRender::Render::RenderThread::run() Line 89 C++
    Qt5Cored.dll!QThreadPrivate::start(void * arg) Line 378 C++
    kernel32.dll!00000000771d59cd() unknown
    ntdll.dll!000000007730a561() unknown

    The error code seems happens at graphicscontext.cpp:
    QT3D_UNIFORM_TYPE_IMPL(UniformType::Float, float, glUniform1fv)

    Does anyone who can help finding what's the matter with this error.
    Thanks very much.


Log in to reply