调试qt项目的时候发现一个错误,Error opening device。
看错误以为是硬件设备问题,查找这个字符没有。

那肯定是加载了动态库,错误打印在动态库。
deubg单步走发现是QJson解析错误,纳里???
QJson解析和打开设备错误有啥关系?

然后使用:

ll@ubuntu:~/QJson/lib$ strings libqjson.so | grep opening

发现确实有这个:
Error opening device

最后看github源码:
https://github.com/flavio/qjson/blob/master/src/parser.cpp

QVariant Parser::parse(QIODevice* io, bool* ok)
{d->reset();if (!io->isOpen()) {if (!io->open(QIODevice::ReadOnly)) {if (ok != 0)*ok = false;qCritical ("Error opening device");return QVariant();}}......
}

个人觉得应该改为 Error opening file.
All is File!
That’s all.

Error opening device相关推荐

  1. 【错误记录】Android 文件查看错误 ( Error opening contents of device file ““: Cannot create directory )

    文章目录 一.报错信息 二.解决方案 一.报错信息 Error opening contents of device file "hello.txt": Cannot create ...

  2. Error opening/initializing the selected video_out (-vo) device.

    mplayer error opening/initializing the selected video_out (-vo) device ubuntu的Mplayer老是出现这样的错误. Erro ...

  3. mplayer error opening/initializing the selected video_out (-vo) device

    Error opening/initializing the selected video_out (-vo) device 没有办法播放视频.其实解决的方法很简单: 打开MPLAYER. 右击 选择 ...

  4. VM ware 启动时坏掉了的解决方法:Runtime error opening,big_linux.vbox' for reading: -102 (File not found.).

    报错: Runtime error opening 'C:\Users\sgpc-0831c\VirtualBox VMs\big_linux\big_linux.vbox' for reading: ...

  5. Sep 26 09:22:41 ck01 kernel: Buffer I/O error on device sda2, logical block 2

    错误 kernel: sd 0:2:0:0: SCSI error: return code kernel: end_request: I/O error, dev sda, sector 23085 ...

  6. 试用版office 2010中提示Error opening SocialConnectorRes.dll求解!!

    试用版office 2010中提示Error opening C:\Program Files\Microsoft Office\Office14\2052\SocialConnectorRes.dl ...

  7. Error opening zip file or JAR manifest missing的解决方法

    错误描述: MyEclipse中启动Tomcat(debug)的时候就出现Error starting Tomcat : A configuration error occured during st ...

  8. SolrException: Index locked 和 Error opening new searcher 最终解决方案(找了好久才解决)

    一.错误信息 SolrCore Initialization Failures org.apache.solr.common.SolrException:org.apache.solr.common. ...

  9. AssertionError: Invalid device id 和RuntimeError: CUDA error: invalid device ordinal

    我在使用torch多卡并行时出现了这个两个问题. ##问题一:AssertionError: Invalid device id,即无效的设备id 出现的原因:结合代码解释: import ...os ...

  10. Error opening terminal: xterm-256color

    在使用gdb调试linux内核时,提示如下错误: arm-none-linux-gnueabi-gdb --tui vmlinux Error opening terminal: xterm-256c ...

最新文章

  1. ssm read time out的原因_有高血压的人,认清这4点,很多高血压一直降不下来,原因在这里...
  2. 开发Java,市值一度超过两千亿美元,造福无数程序员的Sun公司,也最终“陨落”...
  3. Linux中history历史命令使用方法详解
  4. 语言 读ini文件_让C语言的调试更加高大上
  5. python链家数据分析统计服_链家数据分析一--数据离散化处理
  6. 《Effective Java2》笔录
  7. 【转】logback 常用配置详解(序)logback 简介
  8. js_!和!!的使用
  9. idea使用activiti插件
  10. libusb获取usb设备的idVendor(vid),idProduct(pid),以及Serial Number
  11. 移动端下拉刷新,向后台请求数据
  12. 创客匠人知识付费系统为教培机构拓宽变现渠道
  13. 树莓派homebridge开机启动和后台运行
  14. 【exp/imp】将US7ASCII字符集的dmp文件导入到ZHS16GBK字符集的数据库中
  15. 你该知道的 Oracle 认证那些事儿(免费 赠送最新OCP题库)
  16. init: cannot execve(‘XXX’):Permission denied问题
  17. 杰理之使用G版芯片替换生产时【篇】
  18. 2022年中小企业如何薅云羊毛?
  19. ROW_NUMBER ( )去重并根据条件保留数据--开窗函数使用
  20. [深度学习]CenterNet/CenterTrack学习笔记

热门文章

  1. 较好用的待办清单软件有哪些 电脑待办清单事项管理便签下载
  2. 基于FPGA的UART串口发送模块设计
  3. 基频和倍频的概念_倍频技术
  4. (完美)华为畅玩6X BLN-AL10的USB调试模式在哪里打开的经验
  5. 联想dns服务器错误怎么修复,dns错误怎么办,教您dns错误怎么解决
  6. Android知识点 015 —— 2.3.9 CountDownTimer倒计时(补充 疯狂Android讲义)
  7. LeetCode: 872. Leaf-Similar Trees
  8. 四季电台应用项目源码
  9. 图像灰度共生矩阵cooc_feature_image.hdev
  10. html5 生成条码,Html5添加Canvas的EAN13条形码生成插件教程