I submitted a ticket through the GOG interface about this months ago, but never heard back. I wanted to use Galaxy to track my entire game collection, but I can't manually add Super Mario Bros. 2 or 3.
The closest I've gotten to tracking it down is by looking in C:\ProgramData\GOG.com\Galaxy\logs\ClientHelper-MainWindow.log. It seems like whenever you run a search with results that should include either Super Mario Bros., Super Mario Bros. 2, or Super Mario Bros. 3, the whole thing bombs out because what Galaxy receives back from IGDB's API for specifically those three games causes it to break:
2021-05-27 16:27:47.743 [Warning][ (0)] [TID 21604][client_renderer]: Send to browser failed with nullptr exception; message: {"Arguments":{"gamesData":[ {"data":{"developers":[ "Nintendo", "Nintendo EAD" ],"genericReleaseKey":"generic_51154290896276641","genres":[ "Adventure", "Platform" ],"isDlc":false,"isVisibleInLibrary":true,"releaseDate":495417600,"releases":[ "nes_24621", "nwiiu_0005000010106E00", "humble_supermariobros_rifftrax", "nes_Super Mario Bros. (JU) [!].zip", "nes_25300373", "nes_3238455931", "nes_Super Mario Bros.", "nes_3337EC46", "nes_Super Mario Bros", "nes_[
\"Super\",
\"Mario\",
\"Bros.\"
Regular working results on these searches don't have that nes_[ part with the single-line entries that begin and end with \" and "\, so it has something to do with what IGDB's API is returning just for these three games and how Galaxy isn't able to read it correctly.
If you search 'Super Mario Bros. 35', it works because it doesn't try to include any of those three games in the results. Likewise if you search 'Super Mario Bros. 4', 'Super Mario World', and so on. So I guess what this needs is an update to Galaxy to better handle results like these three (maybe an adjustment to the API call, or how the results are parsed).
Edit to fix a spelling mistake and clarify the proposed fix.
Post edited May 27, 2021 by mechanikism