Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Access violation when using QWebView (Qt 4.8.0)

Access violation when using QWebView (Qt 4.8.0)

Scheduled Pinned Locked Moved Qt WebKit
6 Posts 3 Posters 3.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ardcpp
    wrote on last edited by
    #1

    Hi.
    I've built Qt in Visual Studio 2008 SP1 with compile option /Zc:wchar_t.
    After calling setUrl method in debug configuration there comes an access violation error
    I've created a blank test qt application project with single component (QWebView).
    setUrl method is called from Ui_bugTestClass::setupUi function in the generated file ui_bugTest.h

    In release configuration QWebView is also working fine.
    The same project with qt 4.7.4 is also working fine.

    What am I doing wrong?
    Thanks.

    call stack:
    @
    QtWebKitd4.dll!WebCore::FrameLoader::init() + 0xe4 bytes C++
    QtWebKitd4.dll!WebCore::Frame::init() + 0x12 bytes C++
    QtWebKitd4.dll!QWebFramePrivate::init() + 0x71 bytes C++
    QtWebKitd4.dll!QWebFrame::QWebFrame() + 0xc8 bytes C++
    QtWebKitd4.dll!QWebPagePrivate::createMainFrame() + 0x95 bytes C++
    QtWebKitd4.dll!QWebPage::mainFrame() + 0x12 bytes C++
    QtWebKitd4.dll!QWebPage::setViewportSize() + 0x25 bytes C++
    QtWebKitd4.dll!QWebPage::setView() + 0x7c bytes C++
    QtWebKitd4.dll!QWebPage::QWebPage() + 0x95 bytes C++
    QtWebKitd4.dll!QWebView::page() + 0x56 bytes C++
    *>QtWebKitd4.dll!QWebView::setUrl() + 0x13 bytes C++
    bugTest.exe!Ui_bugTestClass::setupUi(QMainWindow * bugTestClass=0x0012feb0) Line 46 + 0x69 bytes C++
    bugTest.exe!bugTest::bugTest(QWidget * parent=0x00000000, QFlags<enum Qt::WindowType> flags={...}) Line 7 C++
    bugTest.exe!main(int argc=1, char * * argv=0x02028050) Line 7 + 0x17 bytes C++
    bugTest.exe!WinMain(HINSTANCE__ * instance=0x00400000, HINSTANCE__ * prevInstance=0x00000000, char * __formal=0x00151f1f, int cmdShow=1) Line 131 + 0x12 bytes C++
    bugTest.exe!__tmainCRTStartup() Line 578 + 0x35 bytes C
    bugTest.exe!WinMainCRTStartup() Line 403 C
    kernel32.dll!RegisterWaitForInputIdle() + 0x49 bytes
    [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
    @

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fronald
      wrote on last edited by
      #2

      Try confirm if all dependencies are ok.

      http://www.dependencywalker.com/

      "Frames below may be incorrect and/or missing, no symbols loaded"

      :-D

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ardcpp
        wrote on last edited by
        #3

        I've checked, the dependencies are ok
        If any dependence is wrong, the application will start with dll loading error
        “Frames below may be incorrect and/or missing, no symbols loaded” - Visual Studio could not load the debug symbols, the dependencies dont come in

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ardcpp
          wrote on last edited by
          #4

          It seems that this is a bug!!!

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #5

            If so, please file a "bug report":http://developer.qt.nokia.com/doc/qt-4.8/bughowto.html and don't forget to link it here.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ardcpp
              wrote on last edited by
              #6

              Sorry, it was an unsuccessful build.
              Full rebuild works well.

              Topic is closed.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved