Skip to content

Crash (SIGBUS) on Android 14 ARM64 when loading sound file with loadSound() or loadSoundFile() methods #16

@Bachar-official

Description

@Bachar-official

Platform:

  • OS: Android 14 (SDK 34)
  • Arhitecture: ARM64

Description:

When calling loadSound() or loadSoundFile() methods on Android (arm64), the app crashes with a SIGBUS error. The same code and audio files work fine on desktop platforms. Checked mp3 and wav files.

Steps to reproduce

  • Initialize engine
  • Call loadSound() or loadSoundFile() methods from an engine.

Expected behavior:

Audio files successfully loaded.

Actual behavior:

App crashes with SIGBUS (signal 7, BUS_ADRALN) signal.

Relevant logs

I/libc    ( 6282): handling signal: 7
F/libc    ( 6282): Fatal signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x740728c101 in tid 6282 (ru.bachar.lpls), pid 6282 (ru.bachar.lpls)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'POCO/moonstone_p_ru/moonstone:14/UKQ1.231003.002/V816.0.15.0.UMPRUXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2025-06-25 17:16:19.324074604+0500
Process uptime: 12s
Cmdline: ru.bachar.lpls
pid: 6282, tid: 6282, name: ru.bachar.lpls  >>> ru.bachar.lpls <<<
uid: 10491
signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x000000740728c101
    x0  0000000000000b98  x1  000000751029d968  x2  0000007fd8c95eb8  x3  0000007fd8c95f58
    x4  0000000000000000  x5  0000000000000000  x6  0000000000000002  x7  0000000000000514
    x8  000000740728c101  x9  eb089f3eebe49912  x10 0000000000008081  x11 0000000000000008
    x12 00000000000003d0  x13 0000000000000001  x14 0000000000000001  x15 0000000000000012
    x16 00000073e84b16e0  x17 00000073e847af70  x18 000000763f9ba000  x19 0000007fd8c95fe0
    x20 b40000751cc15810  x21 b40000751c87d408  x22 0000000000000000  x23 b40000751c87d7b0
    x24 0000007400008081  x25 000000763f7ec000  x26 b40000756d5fa400  x27 00000074082c81d0
    x28 0000000800000074  x29 0000007fd8c95f90
    lr  00000073e8484740  sp  0000007fd8c95f30  pc  000000740728c101  pst 0000000060001000
6 total frames
backtrace:
      #00 pc 000000000728c101  <anonymous:7400000000>
      #01 pc 000000000006c73c  /data/app/~~F4_7tM4GormSPL9vPKDFOw==/ru.bachar.lpls-e6zvohvY76Zy6D4H9ggM1Q==/lib/arm64/libminisound_ffi.so (ma_sound_init_ex+420) (BuildId: ccc35a8ec820d974ddf1bb040eeb915e8c788ba3)
      #02 pc 000000000006c570  /data/app/~~F4_7tM4GormSPL9vPKDFOw==/ru.bachar.lpls-e6zvohvY76Zy6D4H9ggM1Q==/lib/arm64/libminisound_ffi.so (ma_sound_init_from_data_source+92) (BuildId: ccc35a8ec820d974ddf1bb040eeb915e8c788ba3)
      #03 pc 00000000000962e0  /data/app/~~F4_7tM4GormSPL9vPKDFOw==/ru.bachar.lpls-e6zvohvY76Zy6D4H9ggM1Q==/lib/arm64/libminisound_ffi.so (sound_init+64) (BuildId: ccc35a8ec820d974ddf1bb040eeb915e8c788ba3)
      #04 pc 0000000000095b88  /data/app/~~F4_7tM4GormSPL9vPKDFOw==/ru.bachar.lpls-e6zvohvY76Zy6D4H9ggM1Q==/lib/arm64/libminisound_ffi.so (engine_load_sound+112) (BuildId: ccc35a8ec820d974ddf1bb040eeb915e8c788ba3)
      #05 pc 0000000000008004  [anon:dart-code]
Lost connection to device.

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