Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-33845

Crash when running Qt Quick 2 app in embedded linux (while initializing QOpenGLContext)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.1.0
    • GUI: OpenGL
    • None

    Description

      Qt Quick "Hello World" application crashes when running on embedded linux environment.

      The back trace of the crash:

       
      QOpenGLFunctions created with non-current context
      [New LWP 2019]
       
      Program received signal SIGSEGV, Segmentation fault.
      [Switching to LWP 2019]
      QOpenGLContext::format (this=0x0)
          at /usr/src/debug/qtbase-5.1.0-r0-kuvio0/qtbase-opensource-src-5.1.0/src/gui/kernel/qopenglcontext.cpp:880
      880         Q_D(const QOpenGLContext);
      (gdb) thread apply all bt full
       
      Thread 2 (LWP 2019):
      #0  QOpenGLContext::format (this=0x0)
          at /usr/src/debug/qtbase-5.1.0-r0-kuvio0/qtbase-opensource-src-5.1.0/src/gui/kernel/qopenglcontext.cpp:880
      No locals.
      #1  0xb69e86d0 in QOpenGLShaderPrivate (type=..., ctx=0x0, this=0xb2e00d28)
          at /usr/src/debug/qtbase-5.1.0-r0-kuvio0/qtbase-opensource-src-5.1.0/src/gui/opengl/qopenglshaderprogram.cpp:178
              f = {d = 0xb5e2d351 <malloc+81>}
      #2  QOpenGLShader::QOpenGLShader (this=0xb2e00c38, type=..., parent=0xb2e00cac)
          at /usr/src/debug/qtbase-5.1.0-r0-kuvio0/qtbase-opensource-src-5.1.0/src/gui/opengl/qopenglshaderprogram.cpp:359
      No locals.
      #3  0xb69e9ce4 in QOpenGLShaderProgram::addShaderFromSourceCode (
          this=0xb2e00cac, type=...,
          source=0xb6f8dfc0 "varying lowp vec4 color;", ' ' <repeats 23 times>, "\nvoid main() {", ' ' <repeats 34 times>, "\n    gl_FragColor = color;", ' ' <repeats 22 times>, "\n}")
          at /usr/src/debug/qtbase-5.1.0-r0-kuvio0/qtbase-opensource-src-5.1.0/src/gui/opengl/qopenglshaderprogram.cpp:722
              shader = <optimized out>
      #4  0xb6e3e73c in QSGMaterialShader::compile() ()
      ---Type <return> to continue, or q <return> to quit---
         from /usr/lib/libQt5Quick.so.5
      No symbol table info available.
      #5  0xb6e4d6a4 in QSGContext::prepareMaterial(QSGMaterial*) ()
         from /usr/lib/libQt5Quick.so.5
      No symbol table info available.
      #6  0xb6e4dc5c in QSGContext::precompileMaterials() ()
         from /usr/lib/libQt5Quick.so.5
      No symbol table info available.
      #7  0xb6e4c48c in QSGContext::initialize(QOpenGLContext*) ()
         from /usr/lib/libQt5Quick.so.5
      No symbol table info available.
      #8  0xb6e65494 in ?? () from /usr/lib/libQt5Quick.so.5
      No symbol table info available.
      #9  0xb6e65494 in ?? () from /usr/lib/libQt5Quick.so.5
      No symbol table info available.
      Backtrace stopped: previous frame identical to this frame (corrupt stack?)
       
      Thread 1 (LWP 2013):
      #0  0xb5ff8384 in ?? () from /lib/libpthread.so.0
      No symbol table info available.
      #1  0xb5ff3ff6 in pthread_cond_wait () from /lib/libpthread.so.0
      No symbol table info available.
      #2  0xb6379148 in wait (time=4294967295, this=0x47a38)
      ---Type <return> to continue, or q <return> to quit---
          at /usr/src/debug/qtbase-5.1.0-r0-kuvio0/qtbase-opensource-src-5.1.0/src/corelib/thread/qwaitcondition_unix.cpp:136
              code = <optimized out>
      #3  QWaitCondition::wait (this=<optimized out>, mutex=0x34dd0,
          time=<optimized out>)
          at /usr/src/debug/qtbase-5.1.0-r0-kuvio0/qtbase-opensource-src-5.1.0/src/corelib/thread/qwaitcondition_unix.cpp:208
              __PRETTY_FUNCTION__ = "bool QWaitCondition::wait(QMutex*, long unsigned int)"
              returnValue = 255
      #4  0xb6e64a2c in ?? () from /usr/lib/libQt5Quick.so.5
      No symbol table info available.
      #5  0xb6e64a2c in ?? () from /usr/lib/libQt5Quick.so.5
      No symbol table info available.
      Backtrace stopped: previous frame identical to this frame (corrupt stack?)
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            melonipoika Jose Alarcon Roldan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes