unigine qt project crash in start

本文详细介绍了在将D3d11AppQt设置为其他小部件的子小部件并在Unigine 2.7.1中启动引擎时遇到的崩溃问题。通过调试发现,在AppQt的setVideoMode函数中调用了QApplication::processEvents,进而触发了未完全初始化的引擎对象更新,导致崩溃。文章提供了修复此问题的方法。

with unigine 2.7.1 qt frame

after set the D3d11AppQt as sub widget of other widget (the crash bug will not occure in center widget),and start the engine , unigine will get crash over here.

blob.png.063acaa0c396fe30cd715f060995ea5d.png

after debuging ,find that there was called QApplication::processevent when in setVideoMode function in AppQt when an engine object initialization, the processevent will call the timerEvent.
however ,in that time, engine object just do not finish it's initialization, then do the update  will cause crash.

below is my resolution to fix that.

blob.png.99030a62145207fd213d9bdf2c936cfe.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值