Skip to content

Hard crash on Android at end of wasm function #64

@Erhannis

Description

@Erhannis

I wrapped ffmpeg.wasm in a patchy layer of imports and ran it with wasm_run. I've gotten it to work on Linux, but when I run it on Android it apparently runs, but when the program exits I get a hard crash and the app dies. Any idea why? Or how I can prevent it? I don't even need it to do anything else - wasm_run could stop dead in its tracks when the external abort function is called and I'd be happy. Here's the logs (first two lines are from my code) :

...
I/flutter (19096): emscripten_asm_const_int called with 6282280 65350 65344
I/flutter (19096): ERROR: native abort
F/libc    (19096): Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x73d50b8b44 in tid 19407 (1.ui), pid 19096 (study_assistant)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'samsung/xcoverprosq/xcoverpro:10/QP1A.190711.020/G715USQU2ATD4:user/release-keys'
Revision: '4'
ABI: 'arm64'
Timestamp: 2024-12-22 02:26:34-0700
pid: 19096, tid: 19407, name: 1.ui  >>> com.erhannis.music_study_assistant <<<
uid: 10288
signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x73d50b8b44 (*pc=0x00c11f)
    x0  0000000000000000  x1  0000000000000003  x2  0000000000000003  x3  0000000000000001
    x4  0000000000000002  x5  0000000000000000  x6  00000074077d66dc  x7  0000000000000004
    x8  0000000000000002  x9  0000000000000000  x10 0000000000000000  x11 0000000000000000
    x12 0000000000000010  x13 000000005b472d98  x14 0000000000000006  x15 00000075fb6b3d60
    x16 0000007694d978f0  x17 0000007694d89080  x18 000000759e68a000  x19 000000757246cf80
    x20 000000755bfad298  x21 00000000003b8ec0  x22 00000075fb6b4478  x23 00000075fb6b4168
    x24 000000000000ff50  x25 000000000000ff40  x26 00000072530d7000  x27 0000007581a1faa0
    x28 0000000000000000  x29 00000075fb6b40f0
    sp  00000075fb6b40c0  lr  00000073d50b8b44  pc  00000073d50b8b44
backtrace:
      #00 pc 0000000000fd1b44  <anonymous:73d40e7000>

Not sure how much that helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions