Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

App crashes - Fatal signal 11 (SIGSEGV) #1090

Open
suvindran3 opened this issue Dec 27, 2024 · 0 comments
Open

App crashes - Fatal signal 11 (SIGSEGV) #1090

suvindran3 opened this issue Dec 27, 2024 · 0 comments

Comments

@suvindran3
Copy link

suvindran3 commented Dec 27, 2024

Description
I'm trying to stream the camera feed to a RTMP server using the following command -y -f android_camera -i 0:0 -r 25 -pixel_format yuv420p -video_size 1920x1080 -b:v 500k -vf scale=1920x1080 -f flv <rtmp_server_url>.

Expected behavior
Live feed being sent to the RTMP server.

Current behavior
The app crashes as soon as I start the streaming process.

To Reproduce
Executing this command will cause the crash
await FFmpegKit.execute( '-y -f android_camera -i 0:0 -r 25 -pixel_format yuv420p -video_size 640x480 -b:v 500k -vf scale=640x480 -f flv ${_appConfig.camStreamPublishURL}')

Logs

I/flutter ( 8022): Loading ffmpeg-kit-flutter.
D/ffmpeg-kit-flutter( 8022): FFmpegKitFlutterPlugin com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin@e6de2cd started listening to events on io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation@aa97501.
I/flutter ( 8022): Loaded ffmpeg-kit-flutter-android-https-arm64-v8a-6.0.3.
D/BufferQueueConsumer( 8022): [](id:1f5600000002,api:0,p:-1,c:8022) connect: controlledByApp=true
I/DMABUFHEAPS( 8022): Using DMA-BUF heap named: mtk_mm
I/DMABUFHEAPS( 8022): Using DMA-BUF heap named: mtk_mm-uncached
I/DMABUFHEAPS( 8022): Using DMA-BUF heap named: mtk_svp_region-aligned
I/DMABUFHEAPS( 8022): Using DMA-BUF heap named: mtk_prot_region
I/DMABUFHEAPS( 8022): Using DMA-BUF heap named: mtk_2d_fr_region
I/DMABUFHEAPS( 8022): Using DMA-BUF heap named: mtk_wfd_region-aligned
F/libc    ( 8022): Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7acfd7a000 in tid 8168 (ImageReader-420), pid 8022 (isai.hul_qc_app)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Lenovo/TB350XU/TB350XU:13/TP1A.220624.014/S130532_240720_ROW:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2024-12-27 20:02:19.264269034+0530
Process uptime: 24s
Cmdline: com.polarisai.hul_qc_app
pid: 8022, tid: 8168, name: ImageReader-420  >>> com.polarisai.hul_qc_app <<<
uid: 10230
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x0000007acfd7a000
    x0  b400007acef5e4c0  x1  0000007acfd79fc0  x2  0000000000000760  x3  b400007acef5ed80
    x4  0000007acfd7a770  x5  b400007acef5f530  x6  0000000000000000  x7  0000000000000000
    x8  0000000000000000  x9  0000000000000000  x10 0000000000000000  x11 0000000000000000
    x12 0000000000000000  x13 0000000000000000  x14 0000000000648c00  x15 0000000000001080
    x16 00000079a14b3038  x17 0000007d7dbdde20  x18 0000007ad3a6c000  x19 00000000000003be
    x20 b400007acef5e4c0  x21 00000000ffffffe0  x22 0000007ad413d9a8  x23 0000007acfd79700
    x24 0000000000001070  x25 0000000000000000  x26 0000000000000c2f  x27 0000007ad413d820
    x28 0000000000000002  x29 000000000000001f
    lr  00000079a148089c  sp  0000007ad413d800  pc  0000007d7dbddddc  pst 0000000020001000
backtrace:
      #00 pc 000000000004eddc  /apex/com.android.runtime/lib64/bionic/libc.so (__memcpy+300) (BuildId: b88c9224e813f06643d968bdc3c067f8)
      #01 pc 000000000003d898  /data/app/~~Myha5NtGcLItuaqPx0iawA==/com.polarisai.hul_qc_app-kt4FkHNgfPOPJ04Z9yUQJw==/base.apk!libavutil.so (av_image_copy_to_buffer+304)
Lost connection to device.
the Dart compiler exited unexpectedly.

Environment

  • Platform: Flutter
  • Architecture: arm64
  • Version: v6.0.3-LTS
  • Source branch: main
  • Android Studio version: 2024.1.1
  • Android NDK version: r28b
  • flutter doctor: Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 3.27.1, on Ubuntu 24.04 LTS 6.8.0-39-generic,
    locale en_US.UTF-8)
    [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    [✓] Chrome - develop for the web
    [✗] Linux toolchain - develop for Linux desktop
    ✗ clang++ is required for Linux development.
    It is likely available from your distribution (e.g.: apt install clang),
    or can be downloaded from https://releases.llvm.org/
    ✗ ninja is required for Linux development.
    It is likely available from your distribution (e.g.: apt install
    ninja-build), or can be downloaded from
    https://github.com/ninja-build/ninja/releases
    ✗ GTK 3.0 development libraries are required for Linux development.
    They are likely available from your distribution (e.g.: apt install
    libgtk-3-dev)
    [✓] Android Studio (version 2024.1)
    [✓] VS Code (version 1.96.2)
    [✓] Connected device (3 available)
    [✓] Network resources

Other
I did not face any issue on android emulators (API 31, 33, 35) and tried out even on a physical device (API 33). Currently getting this issue only on this device which is a Tablet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant