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. Program crashes when using QWebView to show a web page
Forum Updated to NodeBB v4.3 + New Features

Program crashes when using QWebView to show a web page

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 1.2k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jeffw
    wrote on last edited by
    #1

    Hi all,
    I encountered a weird problem, my program crashes when using QWebView to show a web page, but it works well when show YouTube.

    Any suggestion is appreciated, either is it some incorrect data in this website, or is my setting incorrect.

    My env is Windows 8.1 64-bit, Qt 5.1.0, Visual Studio 2010 professional, NPSWF32_12_0_0_77.dll.

    Here is the code:
    @
    #include <QApplication>
    #include <QtWebKitWidgets/QWebView>

    int main(int argc, char * argv[])
    {
    QApplication app(argc, argv);
    QWebView view;
    QStringList libs = QCoreApplication::libraryPaths();
    view.settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    // crash
    view.load(QUrl("http://hon.qq.com/act/20140320video/Aluna.html"));
    // OK
    //view.load(QUrl("http://www.youtube.com/watch?v=KMU0tzLwhbE"));
    view.show();
    return app.exec();
    }
    @

    From call stack, it crashes in NPSWF32_12_0_0_77.dll when try to free a buffer, error message is following:

    @Unhandled exception at 0x05460558 in q5.exe: 0xC0000005: Access violation reading location 0xcdcdcdcd.@

    and call stack is :
    @ NPSWF32_12_0_0_77.dll!05460558()
    [Frames below may be incorrect and/or missing, no symbols loaded for NPSWF32_12_0_0_77.dll]
    NPSWF32_12_0_0_77.dll!055e8d22()
    NPSWF32_12_0_0_77.dll!055eceae()
    Qt5WebKitd.dll!1067c725()
    Qt5WebKitd.dll!1067c315()
    Qt5WebKitd.dll!1067d0c0()
    @

    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