powertab / powertabeditor

View and edit guitar tablature.
https://powertab.github.io
GNU General Public License v3.0
518 stars 68 forks source link

Opening .gpx error "invalid unordered_map<K, T> key" #444

Closed Boston-of-Gilead closed 11 months ago

Boston-of-Gilead commented 11 months ago

Description When I try to open a .gpx file I get the error "invalid unordered_map<K, T> key"

To Reproduce .ptb, .gp, .gp5 open without issue.

Reinstall ineffective - confirmed that I did associate .gpx with the application.

File opens in Guitar Pro 7.6 without issue.

Additional Info image image

Version PTE Alpha 19 Windows 10 x64 22H2 Build 19045.3208

cameronwhite commented 11 months ago

Thanks for the bug report! This is likely an issue with the specific .gpx file - is it possible to attach or link to it? (it not, feel free to send it to me directly)

Boston-of-Gilead commented 11 months ago

Thanks for the bug report! This is likely an issue with the specific .gpx file - is it possible to attach or link to it? (it not, feel free to send it to me directly)

Here's the link: https://tabs.ultimate-guitar.com/tab/christopher-cross/ride-like-the-wind-guitar-pro-1449593

Here is is open in Guitar Pro:

image

Boston-of-Gilead commented 11 months ago

Guessing unordered_map refers to https://github.com/powertab/powertabeditor/blob/e0e41a009099525d9f839e18dd057822ca52298e/source/formats/gpx/filesystem.h#L25 as every other instance of unordered_map I've seen wants either ints or musical letters (i.e. A-G) in that first result... neither of which would be a "K".

I also tried: Saving the file as .gp8 in GuitarPro (it doesn't offer me any other formats or an "All Files" option). Ineffective. Running the Batch Converter on the file in GuitarPro. Ineffective.

cameronwhite commented 11 months ago

Thanks, I can reproduce with that file. It seems to be an issue with importing chords - as with #442 we've been finding that older .gpx files have some differences in their file formats

cameronwhite commented 11 months ago

Should be fixed with the latest build! (https://github.com/powertab/powertabeditor/actions/runs/5652004243)

Boston-of-Gilead commented 11 months ago

Should be fixed with the latest build!

Thanks!