Repository: flutter
Issue: Impeller Rendering failed
Labels: waiting for customer response,in triage

### Steps to reproduce

The following problems occur when using texture createSurfaceProducer on Huawei p30 devices in flutter-3.27.3 environment: 
1-Impeller surfaceProducer is not enabled?. setSize(width, width * 9 / 16) Setting texture size has no effect, Bitmap crashes using textured surface generation   


![Image](https://github.com/user-attachments/assets/06b76e84-fc81-4eff-916b-d13056528a06)

2-Turn on Impeller render blur and second creation crashes

![Image](https://github.com/user-attachments/assets/5e3c82e8-869a-4d06-867b-02e5b5c36e9b)

### Expected results

...

### Actual results

...

### Code sample

<details open><summary>Code sample</summary>

```dart
    private var width: Int = 0

      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
            val windowManager =
                this.flutterPluginBinding!!.applicationContext.getSystemService(Context.WINDOW_SERVICE) as WindowManager
            val windowMetrics = windowManager.currentWindowMetrics
            val bounds = windowMetrics.bounds
            width = bounds.width()
        } else {
            val metrics = DisplayMetrics()
            (this.flutterPluginBinding!!.applicationContext.getSystemService(Context.WINDOW_SERVICE) as WindowManager).defaultDisplay.getMetrics(
                metrics
            )
            width = metrics.widthPixels
        }

        val createSurfaceProducer = this.flutterPluginBinding?.textureRegistry?.createSurfaceProducer()
                surfaceProducer = createSurfaceProducer
                surfaceProducer?.setSize(width, width * 9 / 16)


```

</details>


### Screenshots or Video

The following problems occur when using texture createSurfaceProducer on Huawei p30 devices in flutter-3.27.3 environment: 
1-Impeller surfaceProducer is not enabled?. setSize(width, width * 9 / 16) Setting texture size has no effect, Bitmap crashes using textured surface generation   


![Image](https://github.com/user-attachments/assets/06b76e84-fc81-4eff-916b-d13056528a06)

2-Turn on Impeller render blur and second creation crashes

![Image](https://github.com/user-attachments/assets/5e3c82e8-869a-4d06-867b-02e5b5c36e9b)

### Logs

<details open><summary>Logs</summary>

```console


D/permissions_handler(19155): No android specific permissions needed for: 6
D/permissions_handler(19155): No permissions found in manifest for: []9
I/flutter (19155): [IMPORTANT:flutter/shell/platform/android/platform_view_android.cc(308)] Flutter recommends migrating plugins that create and register surface textures to the new surface producer API. See https://docs.flutter.dev/release/breaking-changes/android-surface-plugins
V/version (19155): external version is 20240531_18:53:37_44aea9b4
I/AliFrameWork(19155): [0.9] [] :Ffmpeg version n4.3.1-8-gf381f263fe
E/AliFrameWork(19155): [0.9] [JNI] :0328 JNI_OnLoad
I/.saida.hengloo(19155): Thread[1,tid=19155,Native,Thread*=0x76e4c10800,peer=0x733ba540,"main"] recursive attempt to load library "/data/app/com.saida.henglook-_meJN1CWRaE1x8Uzt3FeoA==/base.apk!/lib/arm64-v8a/libCicadaPlayer.so"
I/AliFrameWork(19155): [0.9] [] :setWorkPath :/data/app/com.saida.henglook-_meJN1CWRaE1x8Uzt3FeoA==/lib/arm64/
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :preferAudio 0
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :preferAudio 0
W/Gralloc3(19155): allocator 3.x is not supported
I/AliFrameWork(19155): [0.9] [] :AliyunCorePlayer jni_onVideoSizeChanged  width = 2880 ,height = 1620
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :mPtsDiscontinueDelta = 20000000
I/AliFrameWork(19155): [0.9] [AbrBufferAlgoStrategy] :BA already change to bitrate:0
E/AliFrameWork(19155): [0.9] [SMPAVDeviceManager] :config decoder error ret= -513 
E/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :setUpAudioDecoder error -514
E/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :setUpAVPath SetUpAudioPath failed,url is rtmp://v-jiangyin3-rtmp-play.videiot.cn:1937/live/101532044-1?eyJrZXkiOjk5OTksInNpZ24iOiJPLWt3ZzU4WHV1UENrMS1NeVVsV2xsWm9YMkhqeVhBV2dHZERuWmhGWjg1UDg2RFpUcFhDTXFwUFNGV3NKZTB5Q1EwWFZBUTdtaWlQcUI3eHNhTEI1bUZOTFVtUWtqNk1FdUkyMTFqbko3SXh5dXhaaFZmUHBYYTNmdXdmc1hQUjljRXRYRDZkR2NXMVpFWUhDZGtJUlhMSjJLNWp1SmVVYkFVeUxoWTRrdTgzZ1BmQjVzVkRpX0RzM3NsRWNnUzdIMm1HdnZYd05NUUs2eWg1YzRQdVl4bThZRjNUT3NaQ2R3RVhBOFVwM2JzIn0 video decoder open error
W/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :close audio stream
E/AliFrameWork(19155): [0.9] [GLRender_OESContext] :compileShader mVertShader failed. ret = -1 
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :function name eglPresentationTimeANDROID
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :sym 0x7767517bac, critical true
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL client major 1 minor 4
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL extension EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_ANDROID_get_native_client_buffer EGL_ANDROID_front_buffer_auto_refresh EGL_ANDROID_get_frame_timestamps EGL_EXT_surface_SMPTE2086_metadata EGL_EXT_surface_CTA861_3_metadata EGL_KHR_image EGL_KHR_image_base EGL_EXT_image_gl_colorspace EGL_KHR_gl_colorspace EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_KHR_create_context EGL_KHR_config_attribs EGL_KHR_surfaceless_context EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_KHR_wait_sync EGL_ANDROID_recordable EGL_KHR_partial_update EGL_EXT_pixel_format_float EGL_KHR_mutable_render_buffer EGL_EXT_protected_content EGL_IMG_context_priority EGL_KHR_no_config_context 
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL attr version 2
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL config num 1
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL choose best config
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :eglMakeCurrent: display(0x1) surface(0x764407ff80) context(0x764407ff00)
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGLContext CreateSurface mDisplay 0x1 mConfig 0x76775a8008 window 0x764a5431f0 
D/mali_winsys(19155): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGLContext eglCreateWindowSurface surface : 0x76327cf480
W/VideoCapabilities(19155): Unrecognized profile/level 0/0 for video/mpeg2
W/VideoCapabilities(19155): Unrecognized profile/level 0/2 for video/mpeg2
W/VideoCapabilities(19155): Unrecognized profile/level 0/3 for video/mpeg2
I/VideoCapabilities(19155): Unsupported profile 5 for video/mpeg2
I/chatty  (19155): uid=10879(com.saida.henglook) ApsaraPlayerSer identical 2 lines
I/VideoCapabilities(19155): Unsupported profile 5 for video/mpeg2
W/VideoCapabilities(19155): Unrecognized profile/level 1/32 for video/mp4v-es
W/VideoCapabilities(19155): Unrecognized profile/level 32768/2 for video/mp4v-es
W/VideoCapabilities(19155): Unrecognized profile/level 32768/64 for video/mp4v-es
I/OMXClient(19155): IOmx service obtained
I/ACodec  (19155): In onAllocateComponent create compenent, codec name: OMX.hisi.video.decoder.avc
D/SurfaceUtils(19155): connecting to surface 0x763bbba010, reason connectToSurface
I/MediaCodec(19155): [OMX.hisi.video.decoder.avc] setting surface generation to 19614721
D/SurfaceUtils(19155): disconnecting from surface 0x763bbba010, reason connectToSurface(reconnect)
D/SurfaceUtils(19155): connecting to surface 0x763bbba010, reason connectToSurface(reconnect)
E/ACodec  (19155): [OMX.hisi.video.decoder.avc] setPortMode on output to DynamicANWBuffer failed w/ err -2147483648
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (19155): onStart
I/HwExtendedUtils(19155): Set to window composer mode as 2
I/ACodec  (19155): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(19155): disconnecting from surface 0x763bbba010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(19155): connecting to surface 0x763bbba010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(19155): set up nativeWindow 0x763bbba010 for 2880x1620, color 0x30d, rotation 0, usage 0x2900
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Allocating 6 buffers from a native window of size 7363584 on output port
I/AliFrameWork(19155): [0.9] [mediaCodecDecoder] :send Frame mFlushState = 2. pts 2444137047000
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Now handling output port settings change
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Output port now disabled.
I/HwExtendedUtils(19155): Set to window composer mode as 2
I/ACodec  (19155): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(19155): disconnecting from surface 0x763bbba010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(19155): connecting to surface 0x763bbba010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(19155): set up nativeWindow 0x763bbba010 for 2880x1632, color 0x30d, rotation 0, usage 0x2900
W/ACodec  (19155): [OMX.hisi.video.decoder.avc] setting nBufferCountActual to 11 failed: -1010
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Allocating 10 buffers from a native window of size 7050240 on output port
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Output port now reenabled.
D/ACodec  (19155): sendVideoFpsDataToiAware time:2444137047000 fps:-1 msg:-1
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :Player NotifyFirstFrame
D/ACodec  (19155): sendVideoFpsDataToiAware time:2444137087000 fps:25 msg:25
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
V/AudioManager(19155): querySoundEffectsEnabled...
E/flutter (19155): [ERROR:flutter/shell/platform/android/surface_texture_external_texture_vk_impeller.cc(122)] Break on 'ImpellerValidationBreak' to inspect point of failure: Invalid external texture.
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :Player ReadPacket Stop
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :not opened
I/AliFrameWork(19155): [0.9] [MeidaPlayerUtil] :KPI test finish: total fps:23.1
I/AliFrameWork(19155): [0.9] [GLRender] :drop a frame pts = 2444140407000 
E/AliFrameWork(19155): [0.9] [GLRender] :~GLRender
W/BufferQueueProducer(19155): [SurfaceTexture-0-19155-0]:1390: disconnect: not connected (req=1)
W/libEGL  (19155): EGLNativeWindowType 0x764568c010 disconnect failed
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGLContext eglDestroySurface eglSurface 0x76327cf480
I/MediaCodec(19155): kWhatFlush processing is complete
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] ExecutingState flushing now (codec owns 2/5 input, 5/10 output).
I/MediaCodec(19155): Start Processing kWhatFlushCompleted
I/AliFrameWork(19155): [0.9] [mediaCodecDecoder] :clearCache. ret 0, flush state 1
W/ACodec  (19155): forcing OMX state to Idle when received shutdown in ExecutingState
I/MediaCodec(19155): start process kWhatStopCompleted
D/SurfaceUtils(19155): disconnecting from surface 0x763bbba010, reason disconnectFromSurface

======== Exception caught by image resource service ================================================
The following HttpExceptionWithStatus was thrown resolving an image codec:
HttpException: Invalid statusCode: 400, uri = https://openapi.h.reservehemu.com/rest/service/camera/xxxxS_001c2718c086/thumbnail/current?size=1920x1080&token=b5c7d8f084984e0ab45613ff8261ac9e&channelId=0

When the exception was thrown, this was the stack: 
Image provider: CachedNetworkImageProvider("https://openapi.h.reservehemu.com/rest/service/camera/xxxxS_001c2718c086/thumbnail/current?size=1920x1080&token=b5c7d8f084984e0ab45613ff8261ac9e&channelId=0", scale: 1.0)
Image key: CachedNetworkImageProvider("https://openapi.h.reservehemu.com/rest/service/camera/xxxxS_001c2718c086/thumbnail/current?size=1920x1080&token=b5c7d8f084984e0ab45613ff8261ac9e&channelId=0", scale: 1.0)
====================================================================================================

D/permissions_handler(19155): No android specific permissions needed for: 6
D/permissions_handler(19155): No permissions found in manifest for: []9
I/flutter (19155): [IMPORTANT:flutter/shell/platform/android/platform_view_android.cc(308)] Flutter recommends migrating plugins that create and register surface textures to the new surface producer API. See https://docs.flutter.dev/release/breaking-changes/android-surface-plugins
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :preferAudio 0
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :preferAudio 0
I/AliFrameWork(19155): [0.9] [] :AliyunCorePlayer jni_onVideoSizeChanged  width = 2880 ,height = 1620
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :mPtsDiscontinueDelta = 20000000
E/AliFrameWork(19155): [0.9] [SMPAVDeviceManager] :config decoder error ret= -513 
E/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :setUpAudioDecoder error -514
E/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :setUpAVPath SetUpAudioPath failed,url is rtmp://v-jiangyin3-rtmp-play.videiot.cn:1937/live/101532044-1?eyJrZXkiOjk5OTksInNpZ24iOiJPLWt3ZzU4WHV1UENrMS1NeVVsV2xsWm9YMkhqeVhBV2dHZERuWmhGWjg0SEtqSkFzbnBrWXNySUQxOThYcm5PcENTMnlxbllBd1NKcGN4c3liNjFzMmU3ZWFHNFl6SkhaZXB3aXl2S18tYk51RkZUajJzRWMzRGgtRkVGX3Z5RjRlQ2E2NlJvZFBqaVE5UEozcWdMM1p4LTc3bnYzTEJ0MzdqX1NDVDhfejAxMTJ3YWMxUFdaY3Zhc1p5R3pVdWE3MWJSMHNJSzRYbWhpVzREN3ptaUE5QU1xVGZnM3VJMHU2dW5uQTBHQVpRIn0 video decoder open error
W/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :close audio stream
I/AliFrameWork(19155): [0.9] [AbrBufferAlgoStrategy] :BA already change to bitrate:0
E/AliFrameWork(19155): [0.9] [GLRender_OESContext] :compileShader mVertShader failed. ret = -1 
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :Egl .so already loaded
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL client major 1 minor 4
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL extension EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time EGL_KHR_swap_buffers_with_damage EGL_ANDROID_get_native_client_buffer EGL_ANDROID_front_buffer_auto_refresh EGL_ANDROID_get_frame_timestamps EGL_EXT_surface_SMPTE2086_metadata EGL_EXT_surface_CTA861_3_metadata EGL_KHR_image EGL_KHR_image_base EGL_EXT_image_gl_colorspace EGL_KHR_gl_colorspace EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL_KHR_create_context EGL_KHR_config_attribs EGL_KHR_surfaceless_context EGL_EXT_create_context_robustness EGL_ANDROID_image_native_buffer EGL_KHR_wait_sync EGL_ANDROID_recordable EGL_KHR_partial_update EGL_EXT_pixel_format_float EGL_KHR_mutable_render_buffer EGL_EXT_protected_content EGL_IMG_context_priority EGL_KHR_no_config_context 
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL attr version 2
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL config num 1
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGL choose best config
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :eglMakeCurrent: display(0x1) surface(0x76327cfd80) context(0x76327cf900)
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGLContext CreateSurface mDisplay 0x1 mConfig 0x76775a8008 window 0x764571ec28 
D/mali_winsys(19155): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
I/AliFrameWork(19155): [0.9] [GLRender egl_context] :EGLContext eglCreateWindowSurface surface : 0x76327cff00
I/OMXClient(19155): IOmx service obtained
I/ACodec  (19155): In onAllocateComponent create compenent, codec name: OMX.hisi.video.decoder.avc
D/SurfaceUtils(19155): connecting to surface 0x763a818010, reason connectToSurface
I/MediaCodec(19155): [OMX.hisi.video.decoder.avc] setting surface generation to 19614722
D/SurfaceUtils(19155): disconnecting from surface 0x763a818010, reason connectToSurface(reconnect)
D/SurfaceUtils(19155): connecting to surface 0x763a818010, reason connectToSurface(reconnect)
E/ACodec  (19155): [OMX.hisi.video.decoder.avc] setPortMode on output to DynamicANWBuffer failed w/ err -2147483648
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (19155): onStart
I/HwExtendedUtils(19155): Set to window composer mode as 2
I/ACodec  (19155): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(19155): disconnecting from surface 0x763a818010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(19155): connecting to surface 0x763a818010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(19155): set up nativeWindow 0x763a818010 for 2880x1620, color 0x30d, rotation 0, usage 0x2900
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Allocating 6 buffers from a native window of size 7363584 on output port
I/AliFrameWork(19155): [0.9] [mediaCodecDecoder] :send Frame mFlushState = 2. pts 2444150007000
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] got color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) err=0(NO_ERROR)
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] using color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) and dataspace 0x104
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Now handling output port settings change
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Output port now disabled.
I/HwExtendedUtils(19155): Set to window composer mode as 2
I/ACodec  (19155): gralloc usage: 0(OMX) => 0x2900(ACodec)
D/SurfaceUtils(19155): disconnecting from surface 0x763a818010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(19155): connecting to surface 0x763a818010, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(19155): set up nativeWindow 0x763a818010 for 2880x1632, color 0x30d, rotation 0, usage 0x2900
W/ACodec  (19155): [OMX.hisi.video.decoder.avc] setting nBufferCountActual to 11 failed: -1010
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Allocating 10 buffers from a native window of size 7050240 on output port
I/ACodec  (19155): [OMX.hisi.video.decoder.avc] Output port now reenabled.
D/ACodec  (19155): sendVideoFpsDataToiAware time:2444150007000 fps:60 msg:60
I/AliFrameWork(19155): [0.9] [ApsaraPlayerService] :Player NotifyFirstFrame
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [GLRender] :drop a frame pts = 2444161687000 
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
I/AliFrameWork(19155): [0.9] [avFormatDemuxer] :AV_PKT_DATA_NEW_EXTRADATA
W/System  (19155): A resource failed to call end. 
I/chatty  (19155): uid=10879(com.saida.henglook) FinalizerDaemon identical 1 line
W/System  (19155): A resource failed to call end. 
F/libc    (19155): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x660 in tid 19172 (FinalizerDaemon), pid 19155 (.saida.henglook)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'HUAWEI/ELE-AL00/HWELE:10/HUAWEIELE-AL00/10.1.0.162C00:user/release-keys'
Revision: '0'
ABI: 'arm64'
SYSVMTYPE: Maple
APPVMTYPE: Art
Timestamp: 2025-01-23 13:42:49+0800
pid: 19155, tid: 19172, name: FinalizerDaemon  >>> com.saida.henglook <<<
uid: 10879
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x660
Cause: null pointer dereference
    x0  0000000000000660  x1  00000076d8dbb5d4  x2  000000006ff4fb74  x3  00000076cd45b000
    x4  00000076d8dbc660  x5  00000076e3b12ddf  x6  647260646b647116  x7  7f7f7f7f7f7f7f7f
    x8  5fae25f0c64e4ce6  x9  5fae25f0c64e4ce6  x10 0000000000430000  x11 00000076e4bfc000
    x12 00000076e473e224  x13 00000076e473e26c  x14 00000076e473e2cc  x15 0000000000000000
    x16 000000776863dab0  x17 0000007769029250  x18 000000767e8c8000  x19 0000000000000660
    x20 0000000000000000  x21 00000076cd45b000  x22 00000076d8dbb810  x23 00000076e3b12ddf
    x24 0000000000000004  x25 00000076d8dbd020  x26 00000076cd45b0b0  x27 0000000000000001
    x28 0000000000000000  x29 00000076d8dbb580
    sp  00000076d8dbb570  lr  00000077685edfc4  pc  0000007769029250
backtrace:
      #00 pc 00000000000d0250  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)
      #01 pc 00000000000acfc0  /system/lib64/libgui.so (android::ConsumerBase::abandon()+24) (BuildId: 38bb0c19e01050d5b9cf5882b40316d7)
      #02 pc 00000000001c4b30  /system/lib64/libandroid_runtime.so (android::SurfaceTexture_release(_JNIEnv*, _jobject*)+80) (BuildId: a92c351fcfda20f10ff25c04ed924f5f)
      #03 pc 00000000002e649c  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+124) (BuildId: 6e4646237361a21448639f9cbe5b64c978005ca6)
      #04 pc 0000000000147334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #05 pc 00000000001561b4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+252) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #06 pc 00000000002fd900  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #07 pc 00000000002f8bd0  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+912) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #08 pc 00000000005cd8fc  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+400) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #09 pc 0000000000141914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #10 pc 00000000003cc2b4  /system/framework/framework.jar (android.graphics.SurfaceTexture.release)
      #11 pc 00000000005cb860  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #12 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #13 pc 00000000004eccba  [anon:dalvik-classes19.dex extracted in memory from /data/app/com.saida.henglook-_meJN1CWRaE1x8Uzt3FeoA==/base.apk!classes19.dex] (io.flutter.embedding.engine.renderer.SurfaceTextureWrapper.release+14)
      #14 pc 00000000005cb860  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #15 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #16 pc 00000000004ebc7e  [anon:dalvik-classes19.dex extracted in memory from /data/app/com.saida.henglook-_meJN1CWRaE1x8Uzt3FeoA==/base.apk!classes19.dex] (io.flutter.embedding.engine.renderer.FlutterRenderer$SurfaceTextureRegistryEntry.release+78)
      #17 pc 00000000005cd060  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1752) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #18 pc 0000000000141a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #19 pc 00000000004ecab8  [anon:dalvik-classes19.dex extracted in memory from /data/app/com.saida.henglook-_meJN1CWRaE1x8Uzt3FeoA==/base.apk!classes19.dex] (io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer.release+4)
      #20 pc 00000000005cb860  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #21 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #22 pc 00000000004eca58  [anon:dalvik-classes19.dex extracted in memory from /data/app/com.saida.henglook-_meJN1CWRaE1x8Uzt3FeoA==/base.apk!classes19.dex] (io.flutter.embedding.engine.renderer.SurfaceTextureSurfaceProducer.finalize+16)
      #23 pc 00000000005cb860  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #24 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #25 pc 00000000001b45aa  /apex/com.android.runtime/javalib/core-libart.jar (java.lang.Daemons$FinalizerDaemon.doFinalize+22)
      #26 pc 00000000005cdbfc  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1168) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #27 pc 0000000000141914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #28 pc 00000000001b469c  /apex/com.android.runtime/javalib/core-libart.jar (java.lang.Daemons$FinalizerDaemon.runInternal+164)
      #29 pc 00000000005cb860  /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #30 pc 0000000000141814  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #31 pc 00000000001b439e  /apex/com.android.runtime/javalib/core-libart.jar (java.lang.Daemons$Daemon.run+50)
      #32 pc 00000000005cd060  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1752) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #33 pc 0000000000141a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #34 pc 00000000000eabdc  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
      #35 pc 00000000002ce22c  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.10887373532384510885+320) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #36 pc 00000000005bc090  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1012) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #37 pc 0000000000150468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #38 pc 0000000000147334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #39 pc 00000000001561b4  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+252) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #40 pc 00000000004d8820  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #41 pc 00000000004d98b4  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #42 pc 000000000051ca8c  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1232) (BuildId: 617b4481d2d525502ced0629cac33c57)
      #43 pc 00000000000cf7c0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)
      #44 pc 00000000000721a8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)
Lost connection to device.



```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[!] Flutter (Channel stable, 3.27.3, on Microsoft Windows [版本 10.0.22631.4751], locale zh-CN)
    • Flutter version 3.27.3 on channel stable at D:\Android\AndroidSdk\flutter_windows_3.27.3-stable\flutter
    ! Warning: `flutter` on your path resolves to D:\Android\AndroidSdk\flutter_windows_3.24.3-stable\flutter\bin\flutter, which is not inside your current Flutter SDK checkout at D:\Android\AndroidSdk\flutter_windows_3.27.3-stable\flutter. Consider adding D:\Android\AndroidSdk\flutter_windows_3.27.3-stable\flutter\bin to the front of your path.
    ! Warning: `dart` on your path resolves to D:\Android\AndroidSdk\flutter_windows_3.24.3-stable\flutter\bin\dart, which is not inside your current Flutter SDK checkout at D:\Android\AndroidSdk\flutter_windows_3.27.3-stable\flutter. Consider adding D:\Android\AndroidSdk\flutter_windows_3.27.3-stable\flutter\bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c519ee916e (35 hours ago), 2025-01-21 10:32:23 -0800
    • Engine revision e672b006cb
    • Dart version 3.6.1
    • DevTools version 2.40.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at D:\Android\AndroidSdk
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/windows-android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Users\wjia3\AppData\Local\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio 生成工具 2019 16.11.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
    • Visual Studio 生成工具 2019 version 16.11.31729.503
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2024.1)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)

[√] Android Studio (version 2024.2)
    • Android Studio at D:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)

[√] IntelliJ IDEA Ultimate Edition (version 2022.1)
    • IntelliJ at D:\Program Files\JetBrains\IntelliJ IDEA 2022.1.4
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (4 available)
    • ELE AL00 (mobile) • Q5S5T19603021160 • android-arm64  • Android 10 (API 29)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [版本 10.0.22631.4751]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 132.0.6834.83
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 132.0.2957.115

[!] Network resources
    X A network error occurred while checking "https://maven.google.com/": 信号灯超时时间已到

    X A network error occurred while checking "https://github.com/": 信号灯超时时间已到


! Doctor found issues in 3 categories.
Process finished with exit code 0
```

</details>