[Development] QSG render thread crashes during volumetric rendering
Sean Harmer
sean.harmer at kdab.com
Mon Dec 15 20:35:21 CET 2014
On Monday 15 December 2014 14:16:17 Cartik Sharma wrote:
> Thanks so much. I tried a view.resetOpenGLState and it works without
> crashing.
One of the common ways this crashes the driver is inside calls to
glDrawElements if you have a bad element buffer bound which then indexes into
some random memory address. This is easy to have happen if VTK leaves some
state configured when control goes back to Qt Quick. Qt Quick assumes the state
has not been tampered with and may go ahead and update something which
tramples over one of your buffers.
A handy technique is to run your app through a debug tracing tool like
apitrace to see what state is left behind by your custom rendering code.
Cheers,
Sean
--
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
More information about the Development
mailing list