urwrstkn8mare / galaxy-riot-integration

A GOG Galaxy 2.0 Community integration for Riot!
MIT License
71 stars 2 forks source link

Plugin not starting when GOG Galaxy launches #13

Closed fl4shback closed 3 years ago

fl4shback commented 3 years ago

Hi!

For some reason, the plugin isn't starting like all the other plugins when Galaxy starts. I have to go in settings and press connect at each Galaxy restart which kind of deafeats the purpose of the integration. Is this normal ? Tried on a fresh install of Galaxy and of the plugin.

ClientLog: GalaxyClient.log

From what I can see, the plugin is detected but for some reason Galaxy doesn't seem to try to start it..

urwrstkn8mare commented 3 years ago

Hi @fl4shback that is not the intended behaviour. I will have a look at the log and try to fix this issue for you tomorrow as I have to sleep soon.

Thanks for letting me know.

fl4shback commented 3 years ago

Hey @urwrstkn8mare ! Did you end up finding anything ?

urwrstkn8mare commented 3 years ago

Sorry for the wait, I've been pretty busy this time of year. I've just had a look at the client log but were you able to get the log file for the riot integration? It can be found in %programdata%\GOG.com\Galaxy\logs and will have riot in its name.

fl4shback commented 3 years ago

The thing is, the riot plugin isn't starting until I force it to. So, no logs until I force it to start.

I just noticed something strange in the GalaxyClient.log though made a smaller version and attached it under the name GalaxyClient_Extract.log

For some reason there seems to be an issue with storing plugin status in the database (maybe I'm an isolated case of DB corruption who knows)

Logs attached:

GalaxyClient.log plugin-riot-b4c0c2f5-23dc-4326-aa65-e9fabef61a3b.log GalaxyClient_Extract.log

urwrstkn8mare commented 3 years ago

Yes something is definitely up with GOG Galaxy and its DB. Have you tried disconnecting the plugin and reconnecting? Like disconnecting, quitting, restarting, connecting. I'll try searching for some solution for this but that's the best advice I can give right now sorry. I'll let you know what I find.

fl4shback commented 3 years ago

So, little follow up on this if anyone ever have this issue one day.

I fired up SQLite DB Browser and removed everything riot linked in my database. Seems to have solved my issue.

If I remember correctly, the rockstar plugin used to use the riot platform ID in galaxy (before galaxy team added rockstar as a platform). That's probably where my issue was coming from.

Tried to restart Galaxy 2-3 times since I did this and it seems to work reliably now.

urwrstkn8mare commented 3 years ago

Ohhh that makes a lot of sense. Thank you for that information and I'll add it to the README.md for anyone else who may have the issue as well.