Skip to content

Debugger crashes when debugging with SDL_INIT_AUDIO flag #341

Open
@hsbgit

Description

@hsbgit

This is my current setup:

Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Running in a virtualbox

I am using the official SDL2 packages from the Ubuntu repos -> libsdl2-mixer-2.0-0

I am working with QtCreator (C++) and have an interesting behavior: In release mode, everything runs as expected (also music/sounds). But if I run debug mode (and it is actually the debug mode/build!) the application crashes inside SDL_Init. SDL_Init is the very first function that I call in main().

I figured out that the crash is somehow related to the SDL_INIT_AUDIO flag. If I omit this flag, there is no crash and I can debug (of course all further Mixer calls result in a crash...).

sdl_audio_debug_crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions