Skip to content

ma_close_stream__aaudio Crash #1032

@mbpictures

Description

@mbpictures

Hi!

I just updated miniaudio to the version of the dev-12 branch and I experience a crash when unitinitializing the device in the ma_close_stream__aaudio function because pContextStateAAudio is NULL.

Here's the complete (symbolized) stacktrace:

********** Crash dump: **********
Build fingerprint: 'google/sdk_gphone64_x86_64/emu64xa:16/BE2A.250530.026.D1/13818094:user/release-keys'
#00 0x0000000000cae028 /data/app/~~XTpdMg4X8FKl8ZixEgVlfg==/com.mariusbutz.harmonyhub.debug-Y-oH4OM6Ccg2A2LddvB6Ww==/base.apk!libappmodules.so (offset 0x9830000) (BuildId: 2dbaf128df5dad7916155160b45155b9518f7fa3)
                                                                                                                                                ma_close_stream__aaudio(ma_context*, ma_AAudioStream_t**)
                                                                                                                                                miniaudio/miniaudio.h:40431:55
#01 0x0000000000cadd98 /data/app/~~XTpdMg4X8FKl8ZixEgVlfg==/com.mariusbutz.harmonyhub.debug-Y-oH4OM6Ccg2A2LddvB6Ww==/base.apk!libappmodules.so (offset 0x9830000) (BuildId: 2dbaf128df5dad7916155160b45155b9518f7fa3)
                                                                                                                                                ma_close_streams__aaudio(ma_device*)
                                                                                                                                                miniaudio/miniaudio.h:40547:9
#02 0x0000000000cb09b0 /data/app/~~XTpdMg4X8FKl8ZixEgVlfg==/com.mariusbutz.harmonyhub.debug-Y-oH4OM6Ccg2A2LddvB6Ww==/base.apk!libappmodules.so (offset 0x9830000) (BuildId: 2dbaf128df5dad7916155160b45155b9518f7fa3)
                                                                                                                                                ma_device_uninit__aaudio(ma_device*)
                                                                                                                                                miniaudio/miniaudio.h:40677:9
#03 0x0000000000cb4808 /data/app/~~XTpdMg4X8FKl8ZixEgVlfg==/com.mariusbutz.harmonyhub.debug-Y-oH4OM6Ccg2A2LddvB6Ww==/base.apk!libappmodules.so (offset 0x9830000) (BuildId: 2dbaf128df5dad7916155160b45155b9518f7fa3)
                                                                                                                                                ma_device_op_do_uninit(ma_device*, ma_device_op_completion_event*)
                                                                                                                                                miniaudio/miniaudio.h:43649:9
#04 0x0000000000c2e3eb /data/app/~~XTpdMg4X8FKl8ZixEgVlfg==/com.mariusbutz.harmonyhub.debug-Y-oH4OM6Ccg2A2LddvB6Ww==/base.apk!libappmodules.so (offset 0x9830000) (BuildId: 2dbaf128df5dad7916155160b45155b9518f7fa3)
                                                                                                                                                ma_audio_thread(void*)
                                                                                                                                                miniaudio/miniaudio.h:43966:13
#05 0x0000000000c23d55 /data/app/~~XTpdMg4X8FKl8ZixEgVlfg==/com.mariusbutz.harmonyhub.debug-Y-oH4OM6Ccg2A2LddvB6Ww==/base.apk!libappmodules.so (offset 0x9830000) (BuildId: 2dbaf128df5dad7916155160b45155b9518f7fa3)
                                                                                                                                                ma_thread_entry_proxy(void*)
                                                                                                                                                miniaudio/miniaudio.h:17813:14
#06 0x000000000007ac5f /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+63) (BuildId: fcb82240218d1473de1e3d2137c0be35)
#07 0x000000000006d94d /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+61) (BuildId: fcb82240218d1473de1e3d2137c0be35)
Crash dump is completed

This is my uninit function:

    ma_engine_stop(&engine);

    ma_resource_manager_uninit(&resourceManager);
    ma_context_uninit(&context);
    ma_device_uninit(&device);
    ma_engine_uninit(&engine);

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