RESOLVED FIXED 98248
[Qt] QApplication with QWebView crashes on execution when compiled with VS2012 RC (Visual Studio 2012 release candidate)
https://bugs.webkit.org/show_bug.cgi?id=98248
Summary [Qt] QApplication with QWebView crashes on execution when compiled with VS201...
crisbi
Reported 2012-10-03 02:53:43 PDT
Created attachment 166839 [details] VS project file to reproduce the bug I already reported this bug to the QT bugtracker (https://bugreports.qt-project.org/browse/QTBUG-27303), but it was flagged "out of scope" there and I was told to report it here. I'll copy the information, to make sure its all in one place: This very simple test program does compile, but crashes with "..exe has stopped working" directly after starting it, iff the "view->..." line is activated. ------------------------------------------- #include <QtGui/QApplication> #include <Qt/qwebview.h> int main(int argc, char* args[]) { QApplication app(argc, args); QWebView *view = new QWebView(0); // view->load(QUrl("http://qt.nokia.com/")); // <-- crash view->show(); return app.exec(); } ------------------------ Environment: Visual Studio 2012 RC (VS 11) x64 Windows 7 x64, all updates I used a fresh VS project and added a main.cpp, linking against QtWebKit4.lib;QtGui4.lib;QtCore4.lib;QtOpenGL4.lib; I'll attach the solution file and the resulting executable. --------------------- Backtrace: Not Flagged > 3036 0 Main Thread Main Thread QtWebKit4.dll!000007fee4d59a28 Normal Not Flagged 1784 0 Worker Thread msvcr110.dll!_threadstartex QtCore4.dll!000000005429d736 Normal Not Flagged 7832 0 Worker Thread ntdll.dll!TppWaiterpThread() ntdll.dll!NtWaitForMultipleObjects Normal Not Flagged 6172 0 Worker Thread wlanapi.dll!NotificationApcThreadProc() wlanapi.dll!NotificationApcThreadProc Normal Not Flagged 7620 0 Worker Thread ntdll.dll!TppWorkerThread() ntdll.dll!ZwWaitForWorkViaWorkerFactory Normal and Pop-up Window with: Unhandled exception at 0x000007FEE4D59A28 (QtWebKit4.dll) in QT_test.exe: 0xC0000005: Access violation reading location 0x0000000000000000. – detailed trace: QtWebKitd4.dll!WTF::RefCountedBase::ref(void) C++ QtWebKitd4.dll!WebCore::QualifiedName::init(class WTF::AtomicString const &,class WTF::AtomicString const &,class WTF::AtomicString const &) C++ QtWebKitd4.dll!WebCore::QualifiedName::QualifiedName(class WTF::AtomicString const &,char const *,class WTF::AtomicString const &) C++ QtWebKitd4.dll!WebCore::HTMLNames::init(void) C++ QtWebKitd4.dll!WebCore::Frame::Frame(class WebCore::Page *,class WebCore::HTMLFrameOwnerElement *,class WebCore::FrameLoaderClient *) C++ QtWebKitd4.dll!WebCore::Frame::create(class WebCore::Page *,class WebCore::HTMLFrameOwnerElement *,class WebCore::FrameLoaderClient *) C++ QtWebKitd4.dll!QWebFrameData::QWebFrameData(class WebCore::Page *,class WebCore::Frame *,class WebCore::HTMLFrameOwnerElement *,class WTF::String const &) C++ QtWebKitd4.dll!QWebPagePrivate::createMainFrame(void) C++ QtWebKitd4.dll!QWebPage::mainFrame(void) C++ QtWebKitd4.dll!QWebPage::setViewportSize(class QSize const &) C++ QtWebKitd4.dll!QWebPage::setView(class QWidget *) C++ QtWebKitd4.dll!QWebPage::QWebPage(class QObject *) C++ QtWebKitd4.dll!QWebView::page(void) C++ QtWebKitd4.dll!QWebView::load(class QUrl const &) C++ > QT_test.exe!main(int argc, char * * args) Line 10 C++ QT_test.exe!__tmainCRTStartup() Line 536 C QT_test.exe!mainCRTStartup() Line 377 C kernel32.dll!BaseThreadInitThunk() Unknown ntdll.dll!RtlUserThreadStart() Unknown
Attachments
VS project file to reproduce the bug (1.29 MB, application/zip)
2012-10-03 02:53 PDT, crisbi
no flags
crisbi
Comment 1 2013-01-11 11:59:15 PST
The release candidate of VS2012 does not have this issue any longer, even though one needs to use Qt4.8.4 plus the patch of HashSet.h described here http://stackoverflow.com/questions/12113400/compiling-qt-4-8-x-for-visual-studio-2012)
Note You need to log in before you can comment on or make changes to this bug.