Skip to content

PowerImageTextureRequest onLoadResult crash #52

@sooYo

Description

@sooYo

Describe the bug
在onLoadResult逻辑中,执行textureEntry = textureRegistry.createSurfaceTexture(); 时有概率触发FlutterJNI is not attached to native 崩溃

To Reproduce
目前没有一定能复现的路径,该崩溃在APP的线上日志收集到,有可能的场景是用户正处于RTC通话的场景下,被通话页面遮挡的某个Flutter页面触发了异常的重建流程,这个过程中涉及到图片的加载,随后崩溃。

Screenshots
我们没有线上用户的截屏,目前可以看到的崩溃的堆栈如图
栈

现场

Versions (please complete the following information):

  • flutter doctor -v:
    [✓] Flutter (Channel stable, 3.7.12, on macOS 13.4.1 22F82 darwin-arm64, locale zh-Hans-CN)
    [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2022.2)
    [✓] Connected device (3 available)
    [✓] HTTP Host Availability

  • power_image Version: [0.1.0-pre.2]

  • power_image_ext Version: [2.5.3]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions