godotengine / godot

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

Movie maker and midi do not work together and silently stop playback #73368

Open RKelln opened 1 year ago

RKelln commented 1 year ago

Godot version

4.0 rc2

System information

N/A (Ubuntu 22.04)

Issue description

Using movie maker in a new project with:

func _ready():
    OS.open_midi_inputs()

Play and it will Immediately stop playback with no feedback:

-- Debugging process started ---
Godot Engine v4.0.rc2.official.d2699dc7a - https://godotengine.org
Vulkan API 1.3.224 - Forward+ - Using Vulkan Device #0: Intel - Intel(R) Graphics (ADL GT2)

Movie Maker mode enabled, recording movie at 30 FPS...
--- Debugging process stopped ---

Renderer and movie maker settings didn't seem to make any difference.

I would expect a warning message (_Movie maker cannot operate with midi inputs. Use OS.hasfeature("movie") and disable midi during movie mode.) if this is intended functionality, or preferably to allow movie maker mode even if no midi inputs are processed or, best case, allow movie maker to work with midi inputs.

I believe this affects all v4 versions.

Steps to reproduce

See above.

Minimal reproduction project

N/A

Calinou commented 1 year ago

Does MIDI input work if you start the engine with --fixed-fps 60? (Use the Main Run Args project setting to try this.)

Movie Maker relies on non-realtime simulation, so if MIDI input can't work there in general, it won't be possible to make MIDI input work with Movie Maker.

RKelln commented 1 year ago

Thanks Calinou, tried this tonight:

$ ./Godot_v4.0-rc2_linux.x86_64 --fixed-fps 60 --write-movie ~/test.avi --path ~/path/to/project/

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.rc2.official (d2699dc7ab96fbd75faccc1f32f55baebf1d84dc)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f89d3bb9520] (??:0)
-- END OF BACKTRACE --
================================================================
Aborted (core dumped)

So likely not supported. Low priority, but might be nice to have a warning or some documentation of this? Took me a while to track down what was causing the error since I hadn't tried movie maker in a while.