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

Cannot create QAndroidTextureVideoOutput without a sink and a rhi

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.4.3, 6.5.0, 6.6.0
    • 6.6.0
    • Multimedia
    • None
    • OSX
      Qt Creator 9.0.1
      NDK: 23.1.7779620
      Qt 6.6 Dev snapshot
      Samsung Galaxy S8
    • Android, macOS
    • 2023wk10FOQtforAndroid

    Description

      Runing "declarative-camera" example on device using the latest snapshoot of Qt 6.6 (20230104) ends up with blank video output and on the logs can be seen 

      Cannot create QAndroidTextureVideoOutput without a sink and a rhi 

      More debug is:

      E Zygote  : isWhitelistProcess - Process is Whitelisted
      E Zygote  : accessInfo : 1
      I larative_camer: Late-enabling -Xcheck:jni
      D vndksupport: Loading /vendor/lib/egl/libGLES_mali.so from current namespace instead of sphal namespace.
      D libEGL  : loaded /vendor/lib/egl/libGLES_mali.so
      W System  : ClassLoader referenced unknown path:
      W larative_camer: Accessing hidden method Landroid/content/ContextWrapper;->getDisplay()Landroid/view/Display; (light greylist, linking)
      I DecorView: createDecorCaptionView >> DecorView@54a57c[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
      D OpenGLRenderer: Skia GL Pipeline
      D Qt JAVA : Class org.qtproject.qt.android.multimedia.QtAudioDeviceManager does not implement setActivity method
      I QtCore  : Start
      I Qt      : qt started
      W larative_camer: Accessing hidden method Landroid/graphics/drawable/StateListDrawable;->getStateCount()I (light greylist, linking)
      D EmergencyMode: [EmergencyManager] android createPackageContext successful
      D InputTransport: Input channel constructed: fd=60
      D ViewRootImpl@52a48ae[QtActivity]: setView = DecorView@54a57c[QtActivity] TM=true MM=false
      D ViewRootImpl@52a48ae[QtActivity]: dispatchAttachedToWindow
      D ViewRootImpl@52a48ae[QtActivity]: Relayout returned: old=[0,0][1080,2076] new=[0,0][1080,2076] result=0x7 surface={valid=true 3795204096} changed=true
      I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
      I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
      I OpenGLRenderer: Initialized EGL, version 1.4
      D OpenGLRenderer: Swap behavior 2
      D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
      D OpenGLRenderer: eglCreateWindowSurface = 0xdf5533a0, 0xe2363808
      D ViewRootImpl@52a48ae[QtActivity]: MSG_RESIZED: frame=Rect(0, 0 - 1080, 2076) ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
      D ViewRootImpl@52a48ae[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
      D InputMethodManager: prepareNavigationBarInfo() DecorView@54a57c[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      D InputMethodManager: prepareNavigationBarInfo() DecorView@54a57c[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      V InputMethodManager: Starting input: tba=org.qtproject.example.declarative_camera ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
      D InputMethodManager: startInputInner - Id : 0
      I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
      D InputTransport: Input channel constructed: fd=69
      D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
      D InputMethodManager: prepareNavigationBarInfo() DecorView@54a57c[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      V InputMethodManager: Starting input: tba=org.qtproject.example.declarative_camera ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
      D InputMethodManager: startInputInner - Id : 0
      E Camera_APM : : [APM]APM's Thread is started
      E Camera_APM : : [APM] This app is forground app
      E Camera_APM : : [APM]APM's Thread is started
      E Camera_APM : : [APM] This app is forground app
      W QtAudioDeviceManager: Built in Earpiece may not work when Wired Headphones are connected
      D AudioManager: setBluetoothScoOn false
      D AudioManager: setSpeakerphoneOn false
      D qml     : : State: MobilePortrait
      D libdeclarative-camera_armeabi-v7a.so: Cannot create QAndroidTextureVideoOutput without a sink and a rhi
      D libdeclarative-camera_armeabi-v7a.so: Cannot create QAndroidTextureVideoOutput without a sink and a rhi
      D qml     : : State: MobilePortrait
      D InputMethodManager: HSIFW - flag : 0 Pid : 26490
      I InputMethodManager: hideSoftInputFromWindow ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView :DecorView@54a57c[QtActivity]
      D SurfaceView: onWindowVisibilityChanged(0) true org.qtproject.qt.android.QtSurface{e90395e V.E...... ......I. 0,0-0,0 #1} of ViewRootImpl@52a48ae[QtActivity]
      D ViewRootImpl@52a48ae[QtActivity]: Relayout returned: old=[0,0][1080,2076] new=[0,0][1080,2076] result=0x1 surface={valid=true 3795204096} changed=false
      D SurfaceView: hide() Surface(name=SurfaceView - org.qtproject.example.declarative_camera/org.qtproject.qt.android.bindings.QtActivity@e90395e@0[26490])/@0x197413f false true org.qtproject.qt.android.QtSurface{e90395e V.E...... ......ID 0,0-1080,2004 #1}
      D SurfaceView: surfaceCreated 1 #8 org.qtproject.qt.android.QtSurface{e90395e V.E...... ......ID 0,0-1080,2004 #1}
      D SurfaceView: surfaceChanged (1080,2004) 1 #8 org.qtproject.qt.android.QtSurface{e90395e V.E...... ......ID 0,0-1080,2004 #1}
      D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
      E Camera_APM : : [APM]APM's Thread is started
      E Camera_APM : : [APM] This app is forground app
      D SensorManager: registerListener :: 6, LSM6DSL Acceleration Sensor, 200000, 0,
      D InputMethodManager: prepareNavigationBarInfo() DecorView@54a57c[QtActivity]
      D InputMethodManager: getNavigationBarColor() -855310
      V InputMethodManager: Starting input: tba=org.qtproject.example.declarative_camera ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
      D InputMethodManager: startInputInner - Id : 0
      I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
      D SensorManager: unregisterListener ::
      D Camera  : app passed NULL surface
      D Camera  : app passed NULL surface
      D ViewRootImpl@52a48ae[QtActivity]: setWindowStopped(true) old=false
      D SurfaceView: windowStopped(true) false org.qtproject.qt.android.QtSurface{e90395e V.E...... ........ 0,0-1080,2004 #1} of ViewRootImpl@52a48ae[QtActivity]
      D SurfaceView: hide() Surface(name=SurfaceView - org.qtproject.example.declarative_camera/org.qtproject.qt.android.bindings.QtActivity@e90395e@0[26490])/@0x197413f false true org.qtproject.qt.android.QtSurface{e90395e V.E...... ........ 0,0-1080,2004 #1}
      D SurfaceView: surfaceDestroyed callback.size 1 #1 org.qtproject.qt.android.QtSurface{e90395e V.E...... ........ 0,0-1080,2004 #1}
      D SurfaceView: destroy() Surface(name=SurfaceView - org.qtproject.example.declarative_camera/org.qtproject.qt.android.bindings.QtActivity@e90395e@0[26490])/@0x197413f org.qtproject.qt.android.QtSurface{e90395e V.E...... ........ 0,0-1080,2004 #1}

       

      Attachments

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

        Activity

          People

            bartlomiejmoskal Bartlomiej Moskal
            cmgeorge George Calugar
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes