godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.45k stars 21.27k forks source link

OS.open_midi_inputs() crashing #51659

Closed IsotoxalDev closed 1 year ago

IsotoxalDev commented 3 years ago

Godot version

3.x development verison, commit: 632844e46412133edc163957626c9849004a2554

System information

Fedora Silverblue, GLES3, audio driver pipewire

Issue description

Godot crashes when OS.open_midi_inputs() is called.

This is not the segfault that is mentioned in issue #46183

Godot only crashes when a MIDI device is connected.

The output of stdout is

Running: /var/home/abhinav/Source/godot/bin/godot.x11.tools.64 --path /var/home/abhinav/Dev/MIDIBUG --remote-debug 127.0.0.1:6007 --allow_focus_steal_pid 9478 --position 448,240
Godot Engine v3.4.beta.custom_build.632844e46 - https://godotengine.org
OpenGL ES 3.0 Renderer: Mesa Intel(R) UHD Graphics (CML GT2)
OpenGL ES Batching: ON

ALSA lib rawmidi_hw.c:100:(snd_rawmidi_hw_params) SNDRV_RAWMIDI_IOCTL_PARAMS failed: Invalid argument
godot.x11.tools.64: rawmidi.c:256: snd_rawmidi_open_conf: Assertion `err >= 0' failed.

Steps to reproduce

  1. Call OS.open_midi_inputs() in the ready function of any node.
  2. Run the project with a MIDI device connected

Minimal reproduction project

MIDIBUG.zip

akien-mga commented 1 year ago

Is this still reproducible in 4.0 RC 3 or later?

IsotoxalDev commented 1 year ago

No. It works fine :) can i close the issue?