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

Adrián Chaves Fernández adriyetichaves at gmail.com
Mon Mar 28 00:13:34 CEST 2016


>From someone who has no idea: Have you tried commenting out those lines to
find out whether that is the reason or not? (Unless, of course, other code
of yours will fail if you do)

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

> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160328/5d1f5530/attachment.html>


More information about the Interest mailing list