Results 1 to 3 of 3

Thread: Qt webkit segmentation fault with pluginEnabled option

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2012
    Posts
    2
    Qt products
    Qt3 Qt4 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Qt webkit segmentation fault with pluginEnabled option

    I have the next problem:

    I`m using webkit and qt 4.8.1 (qtbrowser demo). I have 'segmenation fault' with the next url http://ecommerce.aheadworks.com/mage...one-theme.html.

    params:

    - Window XP
    - qt 4.8.1
    - QWebSettings::PluginsEnabled

    QWebSettings *defaultSettings = QWebSettings::globalSettings();
    defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, true);
    defaultSettings->setAttribute(QWebSettings::PluginsEnabled, true);

    any help would be appreciated

  2. #2
    Join Date
    Jun 2012
    Posts
    2
    Qt products
    Qt3 Qt4 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt webkit segmentation fault with pluginEnabled option

    For details:

    I am using:

    • Windows xp SP3 (x86)
    • QtSDK version 1.2.1:
      • Qt libraries version 4.8.1
      • mingw:
        • binutils-2.19.1
        • mingwrt-3.15.2
        • w32api-3.13
        • gcc-core
        • gcc-c++-4.4.0
        • gmp-4.2.4
        • libiconv-1.13
        • mingw32-make-3.81
        • mpfr-2.4.1
        • pthreads-w32-2.8.0



    Simple test example:

    1. test.pro:
    Qt Code:
    1. QT += webkit network
    2. SOURCES = main.cpp
    To copy to clipboard, switch view to plain text mode 

    2. main.cpp
    Qt Code:
    1. #include <QApplication>
    2. #include <QtWebKit>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7.  
    8. // settings
    9. QWebSettings *settings = QWebSettings::globalSettings();
    10. settings->setAttribute(QWebSettings::JavascriptEnabled, true);
    11. settings->setAttribute(QWebSettings::PluginsEnabled, true);
    12.  
    13. //view
    14. QWebView view;
    15. view.show();
    16. view.setUrl(QUrl("http://ecommerce.aheadworks.com/magento-extensions/iphone-theme.html"));
    17.  
    18. return app.exec();
    19. }
    To copy to clipboard, switch view to plain text mode 

    I have the next error message after running of program:

    error.jpg

    I have "segmentation fault" in qtcreator debugger and the next :
    Qt Code:
    1. LEVEL FUNCTION FILE LINE
    2.  
    3. 0 _mm_andnot_si128 emmintrin.h 1239 0x516572
    4. 1 comp_func_SourceOver_sse2 qdrawhelper_sse2.cpp 152 0x516572
    5. 2 BlendSrcGeneric<(SpanMethod)0>::process qdrawhelper.cpp 3581 0xbb7dbf
    6. 3 handleSpans<BlendSrcGeneric<(SpanMethod)0> > qdrawhelper.cpp 3527 0xb6cf43
    7. 4 blend_src_generic<(SpanMethod)0> qdrawhelper.cpp 3599 0x6e75a5
    8. 5 qt_gradient_quint32 qdrawhelper.cpp 6955 0x6d83ef
    9. 6 gray_convert_glyph qgrayraster.c 1756 0x6f3d2c
    10. 7 gray_raster_render qgrayraster.c 1862 0x6f404b
    11. 8 QRasterPaintEnginePrivate::rasterize qpaintengine_raster.cpp 3834 0x6cfbcd
    12. 9 QRasterPaintEnginePrivate::rasterize qpaintengine_raster.cpp 3760 0x6cf92a
    13. 10 QRasterPaintEngine::fill qpaintengine_raster.cpp 1753 0x6c7fe1
    14. 11 QPainter::fillPath qpainter.cpp 3406 0x65730b
    15. 12 WebCore::GraphicsContext::fillPath(WebCore::Path const&) D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xae1da5b
    16. 13 WebCore::CanvasRenderingContext2D::fill() D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xace5a77
    17. 14 WebCore::JSCanvasRenderingContext2D::getConstructor(JSC::ExecState*, JSC::JSGlobalObject*) D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xaab4830
    18. 15 ?? 0 0x10eb0de5
    19. 16 JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*) D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xb3b8c96
    20. 17 JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::ScopeChainNode*, JSC::JSObject*) D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xb2a1d95
    21. 18 JSC::evaluate(JSC::ExecState*, JSC::ScopeChainNode*, JSC::SourceCode const&, JSC::JSValue) D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xb28ce7f
    22. 19 _NPN_Evaluate D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xb05bd26
    23. 20 npswf32!Flash_DisableLocalSecurity C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12bd5afe
    24. 21 ?? 0 0x11803440
    25. 22 ?? C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12ad58c8
    26. 23 ?? 0 0x179d10ae
    27. 24 ?? 0 0x144212c5
    28. 25 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
    29. 26 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c80296
    30. 27 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
    31. 28 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
    32. 29 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
    33. 30 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
    34. 31 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c9b196
    35. 32 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c1c22b
    36. 33 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c1b8ef
    37. 34 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c1bbff
    38. 35 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c1bc90
    39. 36 ?? C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12b73fba
    40. 37 npswf32!Flash_DisableLocalSecurity C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12bd8f68
    41. 38 ?? 0 0x12fee000
    42. 39 ?? 0
    To copy to clipboard, switch view to plain text mode 


    Note: this page has polling for online chat.

    Sorry for third party site.

Similar Threads

  1. Segmentation Fault
    By Ryan Riffle in forum Qt Programming
    Replies: 4
    Last Post: 16th January 2011, 20:52
  2. Segmentation Fault
    By freekill in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2010, 15:31
  3. segmentation fault
    By dreamer in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2008, 07:48
  4. Segmentation Fault?!
    By r07f1 in forum Newbie
    Replies: 2
    Last Post: 11th April 2008, 15:10
  5. segmentation fault
    By shamik in forum Qt Programming
    Replies: 3
    Last Post: 24th November 2006, 07:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.