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

Apps with OpenGL windows crashing on exit every time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.3, 5.9.0 RC, 5.9.0
    • 5.6, 5.8, 5.9, 5.10
    • QPA
    • None
    • Android

    Description

      The patch for QTBUG-59185 calls surfaceChanged() on already destroyed objects. The result is crashing every application with an OpenGL window in it when exiting (with the Back button for instance):

      03-30 11:22:40.766   238   238 F DEBUG   : Build fingerprint: 'nvidia/wx_na_wf/shieldtablet:6.0.1/MRA58K/40827_793.6924:user/release-keys'
      03-30 11:22:40.766   238   238 F DEBUG   : Revision: '0'
      03-30 11:22:40.766   238   238 F DEBUG   : ABI: 'arm'
      03-30 11:22:40.766   238   238 F DEBUG   : pid: 3758, tid: 3758, name: e.qopenglwidget  >>> org.qtproject.example.qopenglwidget <<<
      03-30 11:22:40.767   238   238 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
      03-30 11:22:40.794   238   238 F DEBUG   :     r0 00000000  r1 00000eae  r2 00000006  r3 b6fedba4
      03-30 11:22:40.795   238   238 F DEBUG   :     r4 b6fedbac  r5 b6fedb5c  r6 0000000b  r7 0000010c
      03-30 11:22:40.796   238   238 F DEBUG   :     r8 b3302360  r9 b33023e0  sl 12c215e0  fp 00000001
      03-30 11:22:40.796   238   238 F DEBUG   :     ip 00000006  sp bee99b88  lr b6d5a329  pc b6d5bef8  cpsr 400e0010
      03-30 11:22:40.811   238   238 F DEBUG   : 
      03-30 11:22:40.811   238   238 F DEBUG   : backtrace:
      03-30 11:22:40.811   238   238 F DEBUG   :     #00 pc 00041ef8  /system/lib/libc.so (tgkill+12)
      03-30 11:22:40.811   238   238 F DEBUG   :     #01 pc 00040325  /system/lib/libc.so (pthread_kill+32)
      03-30 11:22:40.811   238   238 F DEBUG   :     #02 pc 0001ca5f  /system/lib/libc.so (raise+10)
      03-30 11:22:40.812   238   238 F DEBUG   :     #03 pc 00019c11  /system/lib/libc.so (__libc_android_abort+34)
      03-30 11:22:40.812   238   238 F DEBUG   :     #04 pc 000174d4  /system/lib/libc.so (abort+4)
      03-30 11:22:40.812   238   238 F DEBUG   :     #05 pc 0004edc3  /data/app/org.qtproject.example.qopenglwidget-1/lib/arm/libgnustl_shared.so (_ZN9__gnu_cxx27__verbose_terminate_handlerEv+226)
      03-30 11:22:40.812   238   238 F DEBUG   :     #06 pc 0004d755  /data/app/org.qtproject.example.qopenglwidget-1/lib/arm/libgnustl_shared.so (_ZN10__cxxabiv111__terminateEPFvvE+4)
      03-30 11:22:40.812   238   238 F DEBUG   :     #07 pc 0004d7c9  /data/app/org.qtproject.example.qopenglwidget-1/lib/arm/libgnustl_shared.so (_ZSt9terminatev+8)
      03-30 11:22:40.812   238   238 F DEBUG   :     #08 pc 0004e0a7  /data/app/org.qtproject.example.qopenglwidget-1/lib/arm/libgnustl_shared.so (__cxa_pure_virtual+14)
      03-30 11:22:40.812   238   238 F DEBUG   :     #09 pc 0001b355  /data/data/org.qtproject.example.qopenglwidget/qt-reserved-files/plugins/platforms/android/libqtforandroid.so
      03-30 11:22:41.063   238   238 F DEBUG   : 
      03-30 11:22:41.063   238   238 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_08
      03-30 11:22:41.063   238   238 E DEBUG   : AM write failed: Broken pipe
      

      The results are the same both with 5.6 and dev branches. Plain widget apps are not affected. Everything else (OpenGL QWindow, QOpenGLWidget, Quick) is.

      See comments in https://codereview.qt-project.org/#/c/187198/

      Attachments

        Issue Links

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

          Activity

            People

              taipan BogDan Vatra
              lagocs Laszlo Agocs
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes