QT5 GUI application is crashing in release mode



  • I've built a QT5 GUI application using Visual studio 2012 and Qt 5.1rc SDK with help of qt-visual studio addon.
    It is building fine with both release and debug mode.

    When i tried to run the debug mode binary it runs fine.
    But when i'm trying to run the release mode binary , its crashing .
    When i tried to debug the application call stack show something similar to this .

    Qt5WebKit.dll()!56e3c23()
    Qt5WebKit.dll()!56c3456()
    Qt5WebKit.dll()!56d34d4()
    ......
    .....
    ....
    .....
    msvcr100.dll()!malloc(unsigned int size)Line 91*

    Why I'm seeing this crash only for release mode binary ?
    What would have made this crash ? How to troubleshoot this problem ?

    Plz help me out


  • Moderators

    Check whether you are not going over array limits (past it's size), or trying to access a deleted object. Debug mode is a bit more relaxed about those things and can allow you to do some things that are forbidden in release.



  • Further investigation i found Qwebview->SetHTML() function is causing the crash in my app.
    i also found the bug in the beelow link
    https://bugs.webkit.org/show_bug.cgi?id=90008
    is this issue is fixed ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.