Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOs assertion failed while shutdown #91

Open
sichacvah opened this issue Nov 4, 2023 · 0 comments
Open

MacOs assertion failed while shutdown #91

sichacvah opened this issue Nov 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sichacvah
Copy link

Describe the bug
Crashing while shutdown

Initializing GLFW
LOG::../third_party/include/gs/impl/gs_platform_impl.h::gs_platform_window_create_internal(1767)::OpenGL Version: 4.1 Metal - 83.1
Capture Device Count: 2
0: C-1U
1: Microphone MacBook Pro
Assertion failed: (g_ppTrackedDevices_CoreAudio == ((void*)0)), function ma_context__uninit_device_tracking__coreaudio, file miniaudio.h, line 24215.
fish: Job 1, './bin/App' terminated by signal SIGABRT (Abort)

Expected behavior
Should gracefully shutdown

System information (please complete the following information):

  • OS: [MacOs Ventura 13.4, Apple M1]
  • Compiler: [Apple clang version 14.0.3]

Additional context
Should ma_context_uninit be after ma_device_uninit?
in gs_audio_impl.h?

gs_result gs_audio_shutdown(gs_audio_t* audio)
{
    miniaudio_data_t* ma = (miniaudio_data_t*)audio->user_data; 

    ma_context_uninit(&ma->context);
    ma_device_uninit(&ma->device);
    ma_mutex_uninit(&ma->lock);
    
    return GS_RESULT_SUCCESS;
}
@sichacvah sichacvah added the bug Something isn't working label Nov 4, 2023
@sichacvah sichacvah changed the title MacOs shutdown assertion failed MacOs assertion failed while shutdown Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant