rageagainsthepc / GuitarPro-to-Midi

Convert all GuitarPro formats (3 to 7) to Midi simulating bending, overtones etc.
64 stars 7 forks source link

Error: Index was out of range. (Parameter 'index') #6

Closed Ayfri closed 3 years ago

Ayfri commented 3 years ago

Hi, I'm trying to convert a .gp5 file but I'm getting this Error: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index'), why does it occurs?

rageagainsthepc commented 3 years ago

Hm, impossible to say without knowing where the error originates from. I should add stack trace printing to the --verbose option. You could also remove the exception handling in Program.cs and paste the stack trace here.

rageagainsthepc commented 3 years ago

I have released a new version. Now you should see a stack trace if you try to convert your file with -v.

Ayfri commented 3 years ago

Okay now I'm not getting the error again, weirdo 🤔

rageagainsthepc commented 3 years ago

Ok, I think I know what's going on. I am pretty sure that I have already stumbled upon this bug myself. It's already fixed but up until now there was no release with the bugfix included. The bug occurs when there are empty tracks present in the gp file.

Ayfri commented 3 years ago

Oh yeah it was that !