[Webkit-unassigned] [Bug 100758] New: [Qt][WK2] QQuickWebView tests crash on rendering in xvfb

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 30 07:24:47 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=100758

           Summary: [Qt][WK2] QQuickWebView tests crash on rendering in
                    xvfb
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kbalazs at webkit.org
                CC: hausmann at webkit.org, ossy at webkit.org,
                    jocelyn.turcotte at digia.com, kkristof at inf.u-szeged.hu


Here is my reducted test case (added to tst_qquickwebview.cpp)

void tst_QQuickWebView::showBasic()
{
    QSizeF s(300, 400);
    webView()->setSize(s);
    m_window->setGeometry(0, 0, s.width(), s.height());
    m_window->show();
    webView()->setVisible(true);
    webView()->setUrl(QUrl::fromLocalFile(QLatin1String(TESTS_SOURCE_DIR "/html/basic_page.html")));
    QTest::qWait(500);
}

It is flakily producing a crash under GraphicsContext3D::mappedSymbolName, because at
ShaderSourceMap::iterator result = m_shaderSourceMap.find(shaders[i]);  the shader is 0 (empty key value).

The reason is that glGetAttachedShaders could not lookup the second shader.
Here is the output of the reducted test (after added a check for GLerror() with printf and exit):

PASS   : tst_QQuickWebView::initTestCase()
QWARN  : tst_QQuickWebView::showBasic() QOpenGLShader::compile(Vertex): failed
QWARN  : tst_QQuickWebView::showBasic() QOpenGLShader::compile(Fragment): failed
QWARN  : tst_QQuickWebView::showBasic() QSGMaterialShader: Shader compilation failed:
QWARN  : tst_QQuickWebView::showBasic() "" 
QWARN  : tst_QQuickWebView::showBasic() QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked 
QWARN  : tst_QQuickWebView::showBasic() QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked 
GL_INVALID_VALUE

So, it's clear that we should not ignore those warnings from Qt, and find out how could be compatible with xvfb. If it's not possible than we would have to dedicate a machine for API tests.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list