fortISSimO icon indicating copy to clipboard operation
fortISSimO copied to clipboard

Unable to parse a UGE song from "...": There was an error parsing the UGE file!

Open sttng opened this issue 6 months ago • 2 comments

I get the following error when trying to parse the attached .uge files. It works fine in normal hUGETracker:

error: Unable to parse a UGE song from "07_Dance of Gold_05_192a.uge": There was an error parsing the UGE file!
        (0x24eeb bytes into the data) Instrument out of range (0x10))
        (0x24eda bytes into the data) parsing v2 cell from here
        (0x24dca bytes into the data) Error in parser "Count"
        (0x24dca bytes into the data) parsing v2 pattern from here
        (0x24dc6 bytes into the data) parsing v2 pattern map entry from here
        (0xf882 bytes into the data) parsing v2 pattern map from here
        (0x4    bytes into the data) parsing v6 song from here
(Either the file is corrupted, or our UGE parser has a bug. If the latter, please attach your UGE file and the above in your bug report!)
error: Unable to parse a UGE song from "24_Wandering Ghosts_new5_192.uge": There was an error parsing the UGE file!
        (0x713e bytes into the data) Instrument out of range (0x15))
        (0x712d bytes into the data) parsing v2 cell from here
        (0x7061 bytes into the data) Error in parser "Count"
        (0x7061 bytes into the data) parsing v2 (sub)pattern from here
        (0x6f38 bytes into the data) parsing v3 instrument from here
        (0x542b bytes into the data) Error in parser "Count"
        (0x542b bytes into the data) parsing v3 instrument bank from here
        (0x304  bytes into the data) parsing v3 instr collection from here
        (0x4    bytes into the data) parsing v6 song from here
(Either the file is corrupted, or our UGE parser has a bug. If the latter, please attach your UGE file and the above in your bug report!)

07_Dance of Gold_05_192a.zip

24_Wandering Ghosts_new5_192.zip

And the below error for these files:

19_Silence_01.zip

21_Waltz of Pearls (Dance of Pales)_02.zip

thread 'main' panicked at teNOR\src\optimise\overlapping.rs:62:14:
How come no ordering survived!?
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I'm on Windows 11 by the way.

sttng avatar Jul 01 '25 08:07 sttng

Oh, interesting. Thank you for reporting this!

I didn't think hUGETracker allowed more than 16 instruments, which I think is the cause of the first error.

The second error is an optimiser error: somehow, it found itself in a configuration where there was nothing left to optimise (more or less). ...which, as the error message's punctuation suggests, is not supposed to be possible..!

ISSOtm avatar Jul 01 '25 20:07 ISSOtm

I just assume hT does maybe not properly 'clean' instruments or some other weirdness...

sttng avatar Jul 02 '25 10:07 sttng