Qt程序调试时报错:0x0000139

博主分享了修复Qt程序编译时遇到0x0000139错误及QtCore.dll找不到问题的经过,包括排查过程、尝试的解决方案和最终成功的方法:调整运行环境并清理多余依赖。

Qt程序调试时报错:0x0000139

最近调试一个程序时,本来一直好好的。某一天不知道我的哪一种操作出了问题(此前操作:1.我用MingW编译的,最近又新装了一个msys2。2.试图打包程序于是在cmakelist里把一些第三方库的生成目录挪了位置),再编译调试时就一直报这个错误。伴随着:无法定位程序输入点于…Qt5Cored.dll 的提示
于是开始了艰辛的查错历程。查了n天吧,中间伴随着多次重装……

基本上报这个错,可能的原因有如下:

1.新装的程序修改了系统的环境变量,导致Qt找不到动态库。
2.动态库位置不对,导致Qt找不到动态库
3.动态库的版本太多了导致Qt不知道该用哪个

解决方法大致有三类:
1.修改环境变量
(我查看了我的环境变量,并没有问题。)
2.把Qt报错的库都复制到程序可执行文件的目录下
(我之前就已经把这些库都复制到目录下了,这次把库重新覆盖了一遍,没有用。)
3.重装大法好
(试了,没有用。)

最后咋解决的呢,我把之前复制到可执行文件目录下的Qt的依赖库全部删除,把项目的运行环境(Run Environment)设为使用系统环境(Use System Environment),再次重新编译,就不报错了!

参考:

https://www.it610.com/article/1296585558428033024.htm

运行qt报错08:54:38: Debugging D:\sjkshqttest3\untitled0\build\Desktop_Qt_6_8_3_MSVC2022_64bit-Debug\RocketMQVisualizer.exe "-qmljsdebugger=port:51373,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector,DebugTranslation" ... Exception at 0x7ffe43f785ea, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite Exception at 0x7ffe43f785ea, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite Exception at 0x7ffe43f785ea, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite Exception at 0x7ffe43f785ea, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite Exception at 0x7ffe43f785ea, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite QML Debugger: Ignoring "-qmljsdebugger=port:51373,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector,DebugTranslation". Debugging has not been enabled. [61184:22048:0703/085444.052:ERROR:gpu_channel_manager.cc(959)] Failed to create GLES3 context, fallback to GLES2. [61184:22048:0703/085444.053:ERROR:gpu_channel_manager.cc(970)] ContextResult::kFatalFailure: Failed to create shared context for virtualization. Exception at 0x7ffe43f785ea, code: 0xe06d7363: C++ exception, flags=0x81 (first chance) in DWrite [61184:58976:0703/085446.277:INFO:permission_manager_qt.cpp(85)] Unexpected unsupported Blink permission type: 10 [61184:58976:0703/085446.277:INFO:permission_manager_qt.cpp(85)] Unexpected unsupported Blink permission type: 10 js: 获取失败: TypeError: Failed to fetch
07-04
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值