kosua20 / MIDIVisualizer

A small MIDI visualizer tool, using OpenGL
MIT License
1.05k stars 137 forks source link

Segmentation fault in Linux Mint 20.1 #93

Closed defensem3ch closed 3 years ago

defensem3ch commented 3 years ago

Describe the issue Running ./MIDIVisualizer with the attached config and MIDI file caused a crash when exporting to mp4. Console output:

❯ ./MIDIVisualizer
[INFO]: 5 tracks (Tempo track (1)).
[INFO]: 480 units per quarter note .
[INFO]: Reading track 0.
[INFO]: Track  (length: 25, instrument: , major).
[INFO]: Reading track 1.
[INFO]: Track 1 (length: 6445, instrument: , major).
[INFO]: Reading track 2.
[INFO]: Track 2 (length: 6881, instrument: , major).
[INFO]: Reading track 3.
[INFO]: Track 3 (length: 8970, instrument: , major).
[INFO]: Reading track 4.
[INFO]: Track 4 (length: 10025, instrument: , major).
[INFO]: Final track duration 216.94 sec.
[EXPORT]: Processing frame 2503/6839.[1]    17469 segmentation fault (core dumped)  ./MIDIVisualizer

Hardware info:

defensem3ch commented 3 years ago

My apologies, it looks like this is a duplicate of #82 - I will build from source in the meantime!

defensem3ch commented 3 years ago

Update: this happens even when building from the latest commit

kosua20 commented 3 years ago

Hello, and thank you for reporting this issue! I've managed to reproduce the issue using the files you provided, I'll keep you up to date once this is solved.

kosua20 commented 3 years ago

The latest 6.3 release should fix this issue. Some notes were outside the standard MIDI range and were not properly handled by MIDIVisualizer.