当前位置:网站首页>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
边栏推荐
- 2500 common Chinese characters + 130 common Chinese and English characters
- Unity3d Learning Notes 6 - GPU instantiation (1)
- China 1,4-cyclohexanedimethanol (CHDM) industry research and investment decision-making report (2022 Edition)
- zabbix 代理服务器 与 zabbix-snmp 监控
- Anaconda installs third-party packages
- HDU 2008 digital statistics
- PVL EDI project case
- Problems in the process of opencv300 cmake generating project
- hdu 4912 Paths on the tree(lca+馋)
- MariaDb数据库管理系统的学习(一)安装示意图
猜你喜欢

Chapter 3: detailed explanation of class loading process (class life cycle)

【sciter】: 基于 sciter 封装通知栏组件

GPS从入门到放弃(十四)、电离层延时

Management background --5, sub classification

小常识:保险中的“保全”是什么?

Make menuconfig has a recipe for target 'menuconfig' failed error

The nearest common ancestor of binary (search) tree ●●

CCNA-思科网络 EIGRP协议

重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障

每日一题:力扣:225:用队列实现栈
随机推荐
GPS从入门到放弃(十七) 、对流层延时
LeetCode刷题(十一)——顺序刷题51至55
小程序系统更新提示,并强制小程序重启并使用新版本
C # realizes crystal report binding data and printing 4-bar code
解决项目跨域问题
GNN,请你的网络层数再深一点~
[sdx62] wcn685x will bdwlan Bin and bdwlan Txt mutual conversion operation method
嵌入式常用计算神器EXCEL,欢迎各位推荐技巧,以保持文档持续更新,为其他人提供便利
What a new company needs to practice and pay attention to
Classic sql50 questions
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
GPS从入门到放弃(二十)、天线偏移
MySQL related terms
小满网络模型&http1-http2 &浏览器缓存
Management background --2 Classification list
【10点公开课】:视频质量评价基础与实践
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
About the professional ethics of programmers, let's talk about it from the way of craftsmanship and neatness
AI enterprise multi cloud storage architecture practice | Shenzhen potential technology sharing
China 1,4-cyclohexanedimethanol (CHDM) industry research and investment decision-making report (2022 Edition)