[Interest] [Qt3D] Crash when using an empty vertex buffer

Sean Harmer sean.harmer at kdab.com
Tue May 10 13:28:06 CEST 2016


On Tuesday 10 May 2016 11:27:01 Xavier Bigand wrote:
> I am creating dynamic geometries and at some moment a geometry can be
> empty, that cause a crash.
> 
> I think that it would be nice if the renderer was safer and avoid the draw
> call of empty geometries. It's like new and delete that manage correctly
> the allocation of 0 bytes.
> Else I'll have to manage the visibility of elements in a particular way.

Can you file a JIRA please?

> Maybe it's not related but I am getting those errors :
> ASSERT failure in QVector<T>::at: "index out of range", file
> c:\Users\qt\work\install\include/QtCore/qvector.h, line 419
> I can't figure out from what it come from, if it's due to a geometry I need
> more informations.

Run in a debugger and look at the backtrace for that assertion.

Cheers,

Sean

-- 
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts



More information about the Interest mailing list