-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes with large libraries #18
Comments
Can you upload the error log file? Should be in the I know people with similar library sizes didn't run into any issues but who knows maybe something changed |
there you go |
@seavord When you get the chance, can you please try with this version? I also updated the logging to hopefully provide more information so if there is still an issue if you could include the new logs that would be great. Thanks! https://github.com/syntax-tm/SteamAchievementManager/releases/tag/v0.6.0-alpha |
I have a little under 10,000 games in my library and I also get a crash after it finishes loading about 3900 of the game names, I included both generated logs here: This was generated using the 0.6.0 alpha provided above. |
Okay looking at the errors I'm guessing that you're getting blocked by the Steam store API. Theoretically, if you wait and start the app eventually it will have cached all of the store information. The version doesn't matter as they all save that cache to You could try and delete the stuff that's there (I would move it in case you still need it to pick up where it last left off). It's possible that it crashed in the middle of writing one of those files and they're no longer valid. I can also, just for you, make a debug build with the store stuff disabled if you want to try that? Would take me a few minutes but should be doable. That would at least tell us if the store data is the issue or not. I want to say that I automatically retry if you get a 429 (Too Many Requests) and if they're just blocking you that would likely be a 401 or 403. |
I tried to upload it but the limit on GitHub is 25 MB and the zip is 67 MB. So, I put it on my OneDrive here. |
That build works fine for me! So I think it might've been exactly what you said. 😄 |
crashes after 8000 games
crashes after 4000 games still not sure why its crashing so much it seems to crash after 18% edit: getting this in logs "SAM: 2024-04-18 23:49:20,225 [1] INFO App [(null)] - Application startup. |
Hey @seavord, that warning is not relevant. It's just saying that your location is either too few or too many comma-separated segments to be able to shorten it (in this case it's too few since it's only one segment). If you're curious this is the relevant bit of code that logs the warning: var segments = location.Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
if (segments.Length is < 2 or > 3)
{
// if it's anything else don't bother trying to shorten it
log.Warn($"Unknown location format ('{location}'). Location will not be shortened.");
return;
} Currently nothing actually uses that profile info it's just loaded automatically on startup. Anyways, there should be a separate log file just for errors called You can ping me on Discord if you want help looking into it ( |
event viewer says Application: SAM.exe and Faulting application name: SAM.exe, version: 1.0.0.0, time stamp: 0x65ce0000 weirdly enough after loading the second one then loading the 1st again it now loads albiet keeps freezing but the progress has gone up, but trying to load just loading the 1st then the 2nd it crashes, so somehow i have to load the second then the first ... |
nvm as soon as i clicked the window it crashed lol |
I'm almost done with a big update that should hopefully fix a lot of things. I'll try to get it done today. |
@seavord Any chance you'd be down to try the new changes? I've rewritten a lot of things so I apologize for the delay. It'd be nice if someone, or a few people, would be willing to try it before I made a new release to make sure I didn't miss anything. |
It crashes when loading ROMs for me for some reason, It seems to be when starting to render the images... I attached logs here: |
Hi, noticed your update. Thank you so much for continuing this project :) |
@psy0ch Hmmm, you could try deleting the cache. If you go to Chances are one of the files that was being cached got interrupted when the app crashed. I'll look into making it more resilient and taking that into account because currently it just assumed the file is valid if it exists. |
|
Cleared the folder and let the program reload. Sadly it still leads to a crash and the log+error files are still without any information. |
@psy0ch Is there anything in the Windows Event Viewer? Either in If not, any chance you have Visual Studio installed? 😄 |
@Billerens If you have VS installed (you'll need 2022) you should be able to build and then run this so long as you have the .NET 8 SDK installed. Really even VS Code should work but this will likely need the VS debugging tools since you might need to change the exception settings to break on any exception. Also, thank god for Google translate because otherwise I wouldn't be able to read any of that log. @psy0ch I updated the |
@Billerens @psy0ch I figured it out. I only have 300-400-ish games but I had the idea to just add them multiple times. When I did, I got the same crashing behavior. Turns out the crash was caused by an With 2,870 games it's only using ~200MB. It is super laggy though with this many games so I'll see what I can do about that. Should just be a virtualization thing with the view. Either way, that'll be my next priority when I get time. |
You guys have too many games too fyi. |
Let me know if this works for you if you get a chance. https://github.com/syntax-tm/SteamAchievementManager/releases/tag/v0.7.0-alpha |
I used the debug build from the latest build "SAM_debug_24.06.10.114" - no crashes so far. But you are completely right. Those images make the program quite slow to use. Attached the errors.txt (this process just kept going with 429s. I decided to close it so that the file doesn't get EVEN bigger than it has to be). |
Oh that's from the Steam Web API rate limiting you. There's a few fixes. Easiest one is waiting. The better solution is to download your own grid images and SAM will load those automatically and won't need to download the image from the CDN. All that app does by the way is just download and save the images to your Grid folder. This is what mine looks like for reference. For the apps you see in Note Animated images aren't supported, yet. I have a bunch set too because they look cool in Steam, but WebP and animated PNG (APNG) can't be loaded the same way normal images are. If GIFs are supported then I can probably just convert them to a GIF and load that. Either way, animated ones won't load. |
The Grid thing is worth doing either way. Can make your tiny 13k Steam library or more realistically your favorite collections or games look nice. |
Yeah I was familiar with the rate limit, just thought of letting you know with the log. |
No problem! The grid thing isn't in the old one I think I added it like a month ago. Was supposed to mitigate the rate limiting but also I wanted my grid images to show up. For reference, this is the order that images are loaded:
|
i have over 3500 games and it seems to crash as soon as it hits 2500 games
The text was updated successfully, but these errors were encountered: