Hi,
Got a crash with 2.7, end of debug version output:
...
URL:
https://api.gog.com/downloader2/game/battle_isle_platinum/installer_win_en DEBUG INFO (API::getResponse)
URL:
https://api.gog.com/downloader2/game/battle_isle_platinum/installer_win_en?oauth_consumer_key=....&oauth_nonce=....&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1375896537&oauth_token=....&oauth_version=1.0&oauth_signature=....%3D DEBUG INFO (API::getGameDetails)
{
"game" :
{
"en1patch1" :
{
"comment" : "",
"id" : "en1patch1",
"link" : "/battle_isle_platinum/pc/patch/patch_battle_isle_platinum_2.1.0.19.exe",
"name" : "Universal update (2.0.0 -> 2.1.0)",
"notificated" : "1",
"size" : "84",
"version_from" : "",
"version_to" : ""
},
"extras" : [],
"icon" : "/upload/images/2011/03/fb8d7fdc6c67c129b83d3a380c2b475b8da36294.jpg",
"installer_win_en" :
[
{
"id" : "en1installer0",
"link" : "/battle_isle_platinum/pc/setup_battle_isle_platinum_2.1.0.19.exe",
"name" : "Windows Installer, English",
"notificated" : "1",
"registry_key" : "",
"silent" : 0,
"size" : "1200"
}
],
"title" : "Battle Isle Platinum (includes Incubation)"
},
"result" : "ok",
"timestamp" : 1375896537
}
lgogdownloader: src/lib_json/json_value.cpp:1072: Json::Value& Json::Value::operator[](Json::Value::ArrayIndex): Assertion `type_ == nullValue || type_ == arrayValue' failed.
[1] 3017 abort ~/src/lgogdownloader/bin/Debug/lgogdownloader --download --platform 1 1
Backtrace:
Program received signal SIGABRT, Aborted.
0x00007ffff59981e5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0 0x00007ffff59981e5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff599b398 in __GI_abort () at abort.c:90
#2 0x00007ffff5991272 in __assert_fail_base (fmt=0x7ffff5ace900 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x7ffff775a840 "type_ == nullValue || type_ == arrayValue", file=file@entry=0x7ffff775a368 "src/lib_json/json_value.cpp",
line=line@entry=1072, function=function@entry=0x7ffff775ab00 "Json::Value& Json::Value::operator[](Json::Value::ArrayIndex)") at assert.c:92
#3 0x00007ffff5991322 in __GI___assert_fail (assertion=0x7ffff775a840 "type_ == nullValue || type_ == arrayValue", file=0x7ffff775a368 "src/lib_json/json_value.cpp",
line=1072, function=0x7ffff775ab00 "Json::Value& Json::Value::operator[](Json::Value::ArrayIndex)") at assert.c:101
#4 0x00007ffff774ea46 in Json::Value::operator[](unsigned int) () from /usr/lib/libjsoncpp.so.0
#5 0x000000000042484f in API::getGameDetails (this=0x6803f0, game_name=..., type=@0x7fffffffd9f8: 1, lang=@0x7fffffffd9fc: 1) at src/api.cpp:357
#6 0x000000000042a870 in Downloader::getGameDetails (this=0x7fffffffd970) at src/downloader.cpp:218
#7 0x000000000042a716 in Downloader::getGameList (this=0x7fffffffd970) at src/downloader.cpp:204
#8 0x0000000000429ead in Downloader::init (this=0x7fffffffd970) at src/downloader.cpp:81
#9 0x00000000004131d1 in main (argc=12, argv=0x7fffffffe028) at main.cpp:190
Moving previous ~/.gogdownloader aside didn't help, so I assume this is something unexpected in this game's description?
Edit: interestingly, 2.6 crashes too, so I guess it's a change in server's reply, not a regression