Debugging QT project found an error, error opening device.
Look at the error and think it’s a hardware problem. Look for this character.
It must have loaded the dynamic library, and the error was printed in the dynamic library.
Deubg step by step found that it was qjson parsing error, Nari???
What is the relationship between qjson parsing and opening device errors?
Then use:
ll@ubuntu:~/QJson/lib$ strings libqjson.so | grep opening
It is found that there is this:
error opening device
Finally, look at the GitHub source code:
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();
}
}
......
}
I think it should be changed to error opening file.
all is file!
That’s all.
Read More:
- Ubuntu cannot access USB device, failed to create a proxy device for the USB device
- device no response, device descriptor read/64, error -71
- Failed to dlsym make_device: undefined symbol: make_device
- Tensorflow 2.1.0 error resolution: failed call to cuinit: CUDA_ ERROR_ NO_ DEVICE: no CUDA-capable device is detected
- “%Error opening tftp://255.255.255.255/network config”
- The reasons for the following errors occurred when opening the webgl project of unity
- After the successful installation of matlab2018, the opening will show the licensing error: – 8523 solution
- Opening feature class.General function failure
- Error prompt of MAPP opening PHP under Mac OS
- Solution to prompt resource error when opening DAZ studio
- ERP failure: Error when opening an RFC connection
- Solution to prompt “error opening terminal: xterm.” when making menuconfig
- The local network card cannot be obtained by opening Wireshark
- Error when opening jeesite project in eclipse
- Error: opening registry key ‘Software\JavaSoft\Java Runtime Environment’
- VirtualBox reports an error supr3hardenedwinrespawn what 5 when opening the virtual machine
- WinXP/Win7 uninstall Error Opening Installation Log File
- Solution: error dllregisterserver in iviewers failed when opening OLEVIEW
- Idea introduces dependency and starts jar error in opening zip file
- The calling program in Linux calls the wrong Error opening terminal: unknown.