Sude- / lgogdownloader

LGOGDownloader is unofficial downloader to GOG.com for Linux users. It uses the same API as the official GOG Galaxy.
https://sites.google.com/site/gogdownloader/
Do What The F*ck You Want To Public License
690 stars 67 forks source link

Crash in boost regex when trying to download Metro Exodus (Gold Edition) #266

Open gurrsoft opened 4 months ago

gurrsoft commented 4 months ago

Command used to initiate download (with config file containing some other default values such as location and language; downloader work for several other games): lgogdownloader --download --game "metro_exodus"

Crash message: terminate called after throwing an instance of 'boost::wrapexcept<boost::regex_error>' what(): Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'exodus>>>HERE>>>'.

Not sure if there is anything else I could try, but if any has any idea or more information is needed, please let me know. Metro series is at a deep discount ATM, the other two older instalment I also own, those downloaded just fine, only Metro Exodus is giving me a crash. I purchased it as 'Gold Edition' that includes 2 DLCs (not sure if it has any bearings on the crashes, but maybe worth mentioning).

gurrsoft commented 3 months ago

Today I purchased another game; after the purchase I made an attempt to download it's installer files with lgogdownloader, just to get surprised by the above error message. My surprise only grew when the - after reporting the error for the new game - it just continued and downloaded the above listed, prior failing game, metro_exodus!

As I eyeballed the GoG website 'My collection' with a numb brain, I have spotted that my 'new game' is now first in the listing, as it's name starts with the letter 'B'... Interesting... What are my chances that if I buy another game, that is even further ahead in the alphabet, that will fail to download and suddenly the newly purchased game get 'fixed'? Time for an experiment, I guess; let's see what's the cheapest game I can grab from the head of the (alphabetical) list?

The winner turned out to be: '8-Bit Adventures 2: Demo'; it costs exactly nothing (as it is for Free). I am now getting an error trying to download this game, but both Metro Exodus and the other newly purchased game are now successfully downloading.

Looks like lgogdownloader currently is having some beef with how the list of owned games start, breaking the regex in the aforementioned place.

gurrsoft commented 3 months ago

Another game purchase another issue another theory... Looks like the issue might be caused by the 'new' label shown over the game purchased. First download wasn't working with the above error, but after clicking the game on the GoG 'shelf' (and reloading the page that confirmed the 'new' label gone) the download started working!