After recently converting my project over to make use Qt's opengl support (and thus using the Qt 5.4.0 MSVC2013 OpenGL 64bit Kit), I've been unable to properly debug because my application always 'crashes' at line 134 of qscopedpointer.h.
I can run in debug or release mode perfectly fine, but actually debugging leads to this crash. This issue also never manifested before switching over to this kit and using QGLWidget.
I have no idea how to deal with this problem. The Disassembler shows me this:
Qt5Guid!QScopedPointer<QObjectData,QScopedPointerDeleter<QObjectData> >::data [c:\work\build\qt5_workdir\w\s\qtbase\src\corelib\tools\qscopedpointer.h @ 134]:
0x7fee2d5a2f0 mov qword ptr [rsp+8],rcx
0x7fee2d5a2f5 <+0x0005> mov rax,qword ptr [rsp+8]
0x7fee2d5a2fa <+0x000a> mov rax,qword ptr [rax]
where the fourth line is unable to run.
Stacktrace:
c:\work\build\qt5_workdir\w\s\qtbase\src\corelib\tools\qscopedpointer.h:135: error: Exception at 0x7fee2d5a2fa, code: 0xc0000005: read access violation at: 0x0, flags=0x0 (first chance)
Nowhere in my application do I make any direct calls to qscopedpointer, so I have no clue what the issue is.
Does anyone have any advice? I may not need the debugger right now, but I can guarantee I will need it in the future.
Not only is my code immense, but I can't think of any relevant chunks to post, since the debugger doesn't crash on any of my lines.
Edit: If try to resume debugging when the debugger reaches this line, it sometimes continues.