playnite-howlongtobeat-plugin icon indicating copy to clipboard operation
playnite-howlongtobeat-plugin copied to clipboard

v3.2.0 - Crash when user is Authenticated

Open zeroantix opened this issue 6 months ago • 12 comments

Hi Lacro59,

I've seen couple of comments on Reddit about the latest HLTB (v3.2.0) extension causing a crash.

See: https://www.reddit.com/r/playnite/comments/194e37j/updated_how_long_to_beat_causes_startup_failure/?utm_source=share&utm_medium=web2x&context=3

I had the update installed and didn't experience any crash. This got me thinking, why crash some users, and not others? I then noticed that I was not authenticated within the plugin. I updated my credentials and it displayed User Authenticated - and this is when I experienced my first crash. It wasn't instantly, it was when I entered Fullscreen Mode to a theme that has HLTB integration. What adds confusion is that once crashed, Playnite fails to re-open, or if it does, it crashes within a few seconds. No error message. The only way to get Playnite to re-open and stay open is run in Safe Mode (via argument in my case).

I uninstalled HLTB and was able to open Playnite as normal. Rolling back to the previous version of HLTB was fine, the plugin didn't cause a crash, authenticated or not.

Apologies it's not much to go off, but until authenticated in the latest release there were zero crashes.

Hope this info helps if other users are experience.

Zero

zeroantix avatar Jan 13 '24 16:01 zeroantix

Not a very helpful comment from me maybe, but I have exactly the same problem.

philipjholm avatar Jan 13 '24 16:01 philipjholm

Can you post your playnite.log & extensions.log?

Lacro59 avatar Jan 13 '24 18:01 Lacro59

Can you post your playnite.log & extensions.log?

Sure, here they are. Thanks for looking into this! extensions.log playnite.log

philipjholm avatar Jan 14 '24 11:01 philipjholm

Can you try this version? playnite-howlongtobeat-plugin_3_2_0.zip

Lacro59 avatar Jan 18 '24 20:01 Lacro59

Hi Lacro59

With the above .zip alternative, I was able to switch between Desktop and Fullscreen several times. It even diplayed the HLTB data within the Theme(s). I was authenticated during this process. I refreshed the HLTB Data of a a couple of games, switched mode from Desktop to Fullscreen and the application crashed to Windows.

I checked the extension.log after this first crash and was able to see the following:

19-01 06:10:53.818|WARN |HowLongToBeat#PluginDatabaseObject4:No HltbData for 100440 19-01 06:10:57.524|WARN |HowLongToBeat#PluginDatabaseObject4:No HltbData for 107893

I restarted Playnite, it opened but then closed within a couple of seconds. I opened the extension log and saw:

19-01 06:11:22.552|INFO |HowLongToBeat#PluginDatabaseObject4:LoadDatabase with 607 items - 00:01.78 19-01 06:11:22.887|WARN |HowLongToBeat#PluginDatabaseObject4:No HltbData for 107893

Restarted Playnite multiple times again (each time resulting in a crash to Windows), but the extension.log didn't record any warnings. Example:

19-01 06:29:04.071|INFO |HowLongToBeat#PluginDatabaseObject`4:LoadDatabase with 607 items - 00:01.74

Maybe the authetication status irrelevant, maybe it's rather any sort of change/update to the data?

zeroantix avatar Jan 19 '24 18:01 zeroantix

https://www.reddit.com/r/playnite/s/KNV98pVFO6

Just in case it helps and/or you need to request more examples/logs etc.

zeroantix avatar Jan 19 '24 22:01 zeroantix

Can you try with the last release?

Lacro59 avatar Feb 04 '24 08:02 Lacro59

Can you try with the last release?

You are the best! This seemed to have fixed the problem.

philipjholm avatar Feb 04 '24 14:02 philipjholm

It doesn't work for me I have tried with all my extensions disabled with same issue

ld892012 avatar Feb 04 '24 14:02 ld892012

I am afraid it just crashed for me as well :/ It's weird because it takes some time before it happens so it worked starting and restarting two times for me before it happened for me.

philipjholm avatar Feb 04 '24 15:02 philipjholm