Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-27303

QApplication with QWebView crashes on execution when compiled with VS2012 RC (Visual Studio 2012 release candidate)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.8.2
    • GUI: Painting
    • None
    • VS2012 RC
      x64
      Windows 7, 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.

    Description

      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();
      }

      ---------------------

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            cbielow C Bielow
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes