PDA

View Full Version : Qt webkit segmentation fault with pluginEnabled option



victor
25th June 2012, 16:12
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/magento-extensions/iphone-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

victor
26th June 2012, 10:05
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 += webkit network
SOURCES = main.cpp


2. main.cpp



#include <QApplication>
#include <QtWebKit>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

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

//view
QWebView view;
view.show();
view.setUrl(QUrl("http://ecommerce.aheadworks.com/magento-extensions/iphone-theme.html"));

return app.exec();
}



I have the next error message after running of program:

7897

I have "segmentation fault" in qtcreator debugger and the next :



LEVEL FUNCTION FILE LINE

0 _mm_andnot_si128 emmintrin.h 1239 0x516572
1 comp_func_SourceOver_sse2 qdrawhelper_sse2.cpp 152 0x516572
2 BlendSrcGeneric<(SpanMethod)0>::process qdrawhelper.cpp 3581 0xbb7dbf
3 handleSpans<BlendSrcGeneric<(SpanMethod)0> > qdrawhelper.cpp 3527 0xb6cf43
4 blend_src_generic<(SpanMethod)0> qdrawhelper.cpp 3599 0x6e75a5
5 qt_gradient_quint32 qdrawhelper.cpp 6955 0x6d83ef
6 gray_convert_glyph qgrayraster.c 1756 0x6f3d2c
7 gray_raster_render qgrayraster.c 1862 0x6f404b
8 QRasterPaintEnginePrivate::rasterize qpaintengine_raster.cpp 3834 0x6cfbcd
9 QRasterPaintEnginePrivate::rasterize qpaintengine_raster.cpp 3760 0x6cf92a
10 QRasterPaintEngine::fill qpaintengine_raster.cpp 1753 0x6c7fe1
11 QPainter::fillPath qpainter.cpp 3406 0x65730b
12 WebCore::GraphicsContext::fillPath(WebCore::Path const&) D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xae1da5b
13 WebCore::CanvasRenderingContext2D::fill() D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xace5a77
14 WebCore::JSCanvasRenderingContext2D::getConstructo r(JSC::ExecState*, JSC::JSGlobalObject*) D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xaab4830
15 ?? 0 0x10eb0de5
16 JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*) D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xb3b8c96
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
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
19 _NPN_Evaluate D:\QtSDK\Desktop\Qt\4.8.1\mingw\lib\QtWebKitd4.dll 0 0xb05bd26
20 npswf32!Flash_DisableLocalSecurity C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12bd5afe
21 ?? 0 0x11803440
22 ?? C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12ad58c8
23 ?? 0 0x179d10ae
24 ?? 0 0x144212c5
25 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
26 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c80296
27 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
28 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
29 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
30 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12cc439c
31 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c9b196
32 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c1c22b
33 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c1b8ef
34 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c1bbff
35 npswf32!native_ShockwaveFlash_TCallLabel C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12c1bc90
36 ?? C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12b73fba
37 npswf32!Flash_DisableLocalSecurity C:\WINDOWS\system32\macromed\Flash\NPSWF32.dll 0 0x12bd8f68
38 ?? 0 0x12fee000
39 ?? 0




Note: this page has polling for online chat.

Sorry for third party site.

C.H.
27th June 2012, 14:33
same bug :(
try to submit it to https://bugs.webkit.org/show_bug.cgi?id=90065

Added after 5 minutes:

I think trouble with Long polling

http://en.wikipedia.org/wiki/Long_polling#Long_polling
http://en.wikipedia.org/wiki/Comet_(programming)#Ajax_with_long_polling