当前位置:网站首页>qt quick项目offscreen模式下崩溃的问题处理
qt quick项目offscreen模式下崩溃的问题处理
2022-07-06 14:29:00 【华为云】
在基于squish搭建qt的冒烟工程的时候遇到一个问题,测试工程切成离屏模式运行时,包含qml功能的页面崩溃;
错误堆栈如下:
```
(QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>))) [0x7fc925b3fa2b]
libqoffscreen.so(+0x14580) [0x7fc91a804580]
```
处理办法是设置qml走软渲染:
export QT_QPA_PLATFORM='offscreen'
export QMLSCENE_DEVICE='softwarecontext'
参考:
https://stackoverflow.com/questions/52527672/crash-when-running-qt-application-on-ubuntu-server
https://stackoverflow.com/questions/33090346/is-there-any-way-to-use-qtwebengine-without-opengl
边栏推荐
- QT | UDP broadcast communication, simple use case
- 嵌入式常用计算神器EXCEL,欢迎各位推荐技巧,以保持文档持续更新,为其他人提供便利
- Force buckle 575 Divide candy
- Data storage (1)
- PVL EDI project case
- [leetcode daily clock in] 1020 Number of enclaves
- 经纪xx系统节点VIP案例介绍和深入分析异常
- Barcodex (ActiveX print control) v5.3.0.80 free version
- 每日一题:力扣:225:用队列实现栈
- 第4章:再谈类的加载器
猜你喜欢
GPS from getting started to giving up (12), Doppler constant speed
GPS从入门到放弃(十三)、接收机自主完好性监测(RAIM)
Barcodex (ActiveX print control) v5.3.0.80 free version
搜素专题(DFS )
Chapter 3: detailed explanation of class loading process (class life cycle)
Adjustable DC power supply based on LM317
AI enterprise multi cloud storage architecture practice | Shenzhen potential technology sharing
HDR image reconstruction from a single exposure using deep CNNs阅读札记
2020 Bioinformatics | GraphDTA: predicting drug target binding affinity with graph neural networks
GPS从入门到放弃(十四)、电离层延时
随机推荐
中国固态氧化物燃料电池技术进展与发展前景报告(2022版)
2500 common Chinese characters + 130 common Chinese and English characters
经纪xx系统节点VIP案例介绍和深入分析异常
Embedded common computing artifact excel, welcome to recommend skills to keep the document constantly updated and provide convenience for others
【sciter Bug篇】多行隐藏
Qt | UDP广播通信、简单使用案例
Attack and defense world miscall
Some problems about the use of char[] array assignment through scanf..
Unity3d Learning Notes 6 - GPU instantiation (1)
Leetcode learning records (starting from the novice village, you can't kill out of the novice Village) ---1
GPS from getting started to giving up (16), satellite clock error and satellite ephemeris error
About the professional ethics of programmers, let's talk about it from the way of craftsmanship and neatness
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障
GPS从入门到放弃(十七) 、对流层延时
Management background --3, modify classification
GPS from entry to abandonment (XVII), tropospheric delay
Data storage (1)
zabbix 代理服务器 与 zabbix-snmp 监控
3DMAX assign face map