utopia-rise / fmod-gdextension

FMOD Studio GDExtension bindings for the Godot game engine
MIT License
485 stars 52 forks source link

Silent crash when using low level api for playing one shots on Linux #199

Closed lentsius-bark closed 8 months ago

lentsius-bark commented 8 months ago

I am creating a game where I target windows and the steamdeck. Windows works fine and the later mentioned issues are specific to when playing the game on the steamdeck, hence the issue has been tested and observed on the device only, as I do not have access to a linux system.

I am using Godot 4.2.1.stable and the latest available official release of the gdextension plugin called Release 4.1.0 - 4.2.0

one_shot:

FmodServer.play_one_shot("event:/SFX/GridCellPressed", self)

results in an instant crash when the game tries playing that sound

one_shot_attached:

FmodServer.play_one_shot_attached("event:/SFX/GridCellPressed", self)

results in a crash right after the sound finishes playing.

in both scenarios I've also tried to replace self with get_viewport().get_camera_3d() and it hadn't helped.

edit: also trying play_one_shot_using_guid and got an instant crash as well, before the sound started playing.

CedNaru commented 8 months ago

Fixed by #201