[Interest] [Qt3D] Crash when trying to update a geometry

Xavier Bigand flamaros.xavier at gmail.com
Sat Mar 26 23:50:46 CET 2016


May it come from the fact that we force Qt to use OpenGL and remove
multi-threaded scene graph?

qputenv("QML_FORCE_THREADED_RENDERER", "0");

qputenv("QML_BAD_GUI_RENDER_LOOP", "1");

qputenv("QSG_RENDER_LOOP", "basic");


QGuiApplication::setAttribute(Qt::AA_UseDesktopOpenGL, true);



2016-03-26 23:39 GMT+01:00 Xavier Bigand <flamaros.xavier at gmail.com>:

> I am getting curious errors in the console :
>
> ASSERT failure in QVector<T>::at: "index out of range", file c:\Users\qt\work\install\include/QtCore/qvector.h,
> line 419
>
> ASSERT failure in QVector<T>::at: "index out of range", file c:\Users\qt\work\install\include/QtCore/qvector.h,
> line 419
>
> ASSERT failure in QVector<T>::at: "index out of range", file c:\Users\qt\work\install\include/QtCore/qvector.h,
> line 419
>
> ASSERT failure in QVector<T>::at: "index out of range", file c:\Users\qt\work\install\include/QtCore/qvector.h,
> line 419
>
> Invalid parameter passed to C runtime function.
>
> Invalid parameter passed to C runtime function.
>
> Invalid parameter passed to C runtime function.
>
> Invalid parameter passed to C runtime function.
>
> Invalid parameter passed to C runtime function.
>
> Invalid parameter passed to C runtime function.
>
> Invalid parameter passed to C runtime function.
>
> Invalid parameter passed to C runtime function.
>
>
>
>
>
> 2016-03-26 23:07 GMT+01:00 Xavier Bigand <flamaros.xavier at gmail.com>:
>
>> Hi,
>>
>> I am creating a mesh empty and try to update it later, I don't understand
>> why it crash.
>>
>> The crash happens in Qt3DCore::QBackendNode.
>>
>> I update the mesh by calling setData on the vertexBuffer and setCount on
>> the corresponding attributs. I do the same for the indexBuffer.
>>
>> May I do something wrong?
>>
>>
>> --
>> Xavier
>>
>
>
>
> --
> Xavier
>



-- 
Xavier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160326/1908124d/attachment.html>


More information about the Interest mailing list