Qt 5.8 QQuickView crash when showing window
-
I was recently working on a project that was written in Qt 5.6. I was instructed to upgrade to 5.8 so I built Qt 5.8 from source and set qmake and jom on the path for 5.8. After building my project, I kept getting an exception whenever the application ran in debug mode:
D3D11CreateDevice: Flags (0x 2) were specified which require the D3D11 SDK Layers for Windows 10, but they are not present on the system.
The exception wasn't thrown as an error so I ignored it for a while until I tested my application in release mode. In release mode, I noticed that when I clicked on some elements in my GUI application, nothing happened even though it worked fine in debug mode. After googling I found a suggestion which was to install "Graphics Tools" for Windows 10 which I did according to this post:
https://stackoverflow.com/questions/34318515/how-to-install-d3d11-sdk-layers-for-windows-10-offline
However, after it installed and I restarted my PC, when I tried running the application in debug mode, the exception was gone however it began to crash when the debugger reached the showNormal() method for a QQuickView object:
error: Exception at 0x5055dd55, code: 0xc0000005: read access violation at: 0x0, flags=0x0 (first chance)
I tried to debug stepping into the method however the calls became too deeply nested that I lost track. I strongly believe that it has nothing to do with my code as it was working fine when I used Qt 5.6 and I didn't make any changes to code during this process.
I'm not sure if this helps but I ran DxDiag and no problems were reported. I'm using Qt Creator 3.6.0 and running on Windows 10.
Does anyone have any idea about why this happens?
Thanks