JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
9.32k stars 501 forks source link

Breakpoint A Breakpoint has been reached #1056

Closed 0x6A7232 closed 3 years ago

0x6A7232 commented 5 years ago

Left Playnite on with Rage of Mages 2: Necromancer running in foreground overnight; screen locked of course. Logged back in the next day, ROM2 is still running but minimized, and I have a message from Playnite: "Breakpoint A Breakpoint has been reached" or similar. Playnite re-launched fine when I opened it again.
Playnite.log: https://pastebin.com/WgMK6xBc PlayniteUI.exe.log (Microsoft generated, I think?): https://pastebin.com/8RWrpQfA

JosefNemec commented 5 years ago

Please go to About menu and create diagnostics package for me. Thank you

0x6A7232 commented 5 years ago

Hi, here is the resulting code:

50bd338c-28c0-4506-851f-a3df74ef7c13

Thanks

On Thu, Feb 28, 2019 at 2:47 AM Josef Nemec notifications@github.com wrote:

Please go to About menu and create diagnostics package for me. Thank you

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JosefNemec/Playnite/issues/1056#issuecomment-468171884, or mute the thread https://github.com/notifications/unsubscribe-auth/ANhuDyCC6aHjCi5OAVuKdVMw5s0oKTynks5vR4megaJpZM4bVweL .

Stifling-Bossness commented 5 years ago

I have the same issue. With Playnite running in the background, I'll get Breakpoint A after about a day. Here's my diag code too:

78beac1e-249f-41a7-8d2e-9da4dee0e4d9

tylerszabo commented 5 years ago

Looking at the logs I'm wondering if there's a race condition that occurs when UWP apps are being updated during a scan

JosefNemec commented 5 years ago

Playnite is not UWP application. Also what do you mean by "during a scan"? During scan of what?

tylerszabo commented 5 years ago

Sorry, I meant from looking at the log entries, it looks like Playnite is adding games; so I meant "scanning" directories. It's hitting an error when attempting to read C:\Program Files\WindowsApps\Microsoft.Tomp_1.0.4723.0_x64__8wekyb3d8bbwe\AppxManifest.xml and it occurs to me that it's possible that the application was updated between reads.

I've seen similar race conditions, so it stood out more than the network issues later in the file.

Foshitz commented 5 years ago

I´ve also had this issue a few times, some of them occur while playing a game and some of them occurs when computer has been untouched for a few hours.
The last incident was yesterday in the middle of a gaming session in Euro Truck Simulator 2. And the last time before that was back in march, I think.

Diagnostic package: afbcd1f3-636c-4ad6-aaad-54d4377614f2

JosefNemec commented 5 years ago

Can you please attach screenshot of the crash when it occurs again? Thank you

Foshitz commented 5 years ago

breakpoint-exception

See also new diagnostic package, created just after error message was seen and screenshot taken. 95c88462-5a2e-4b08-8dd8-091933010c63

Foshitz commented 5 years ago

I just got another one. 837adc14-6d76-40f0-b7a1-f8396f4d4df1

Have you seen any recurring or different changes between these diagnostic packages?

JosefNemec commented 5 years ago

This is really weird, the crash doesn't occur in any part of Playnite's code (it would result in different crash dialog and also crash info in log, which is currently missing). Which means that I have no real way of knowing what is causing it, unless we find a way to reproduce this on demand.

Foshitz commented 5 years ago

So it might be a crash, without being an actual crash? It does say "breakpoint", so could it be that a cache of some sort is reaching max amount of data?

Or just reaching a point where the client can't take it anymore and just gives up and kills itself? :p

JosefNemec commented 5 years ago

From little of what I was able to find out, it might be caused by "damaged" .NET Framework installation, maybe try repairing it. At this point there's nothing I can do about this until I have a way how to reproduce this in my environment (it doesn't happen on any of my systems).

Foshitz commented 5 years ago

Cool, I'll try a reinstall of the client when I get home!

0x6A7232 commented 5 years ago

Hey, what .NET Framework does Playnite use so we know which one to repair?

JosefNemec commented 5 years ago

4.6.2+

Foshitz commented 5 years ago

Reinstalled the Playnite-client about 3 weeks ago, haven´t had any issues since then.

MaverickMartyn commented 4 years ago

Just had this exact error on what I believe is the most current build (I installed it for the first time a couple of days ago). If I had to guess, I'd wager you have a dependency that has something similar to JavaScripts debugger; keyword or C#'s Debugger.Break();. That, or someone mistakenly called exceptions "breakpoints" in their error dialog. EDIT: Although it restarted so it might have updated, I just checked the version. I'm running V6.2. SDK: 5.1.0 Theme API: Not shown. Desktop: 1.4.0 Fullscreen 1.4.0 Diag code: 97109646-7a28-41b7-9f96-d485a6595baf

cresscendo commented 4 years ago

Been using Playnite awhile and have had this breakpoint issue with a few different games. Today though, I received it while playing Doom (2016) so I thought I would submit a report. Didn't know if I should open a separate issue, so sorry if this isn't the right spot.

Here's my diag code: 9e2c0fa0-b6d3-43d1-855c-4c8a9e3c20cc

Foshitz commented 4 years ago

I got one of these today, without even touching the computer for over an hour.

Diagnostic package = c3b070d5-ecd7-4226-9495-e4040c0d32eb

nerzak-dominion commented 4 years ago

My PC is 24/7 on, and I'm having this error about 1 time every 2 days (It started like 1 year ago). Updated several times, changed windows (I'm on a fresh install). Still happening. Any ideas? 6ed247ad-8efe-4c68-8b45-5dcde37226f7

JosefNemec commented 4 years ago

I have no idea what's causing this.

@Gygun Can you try something for me?

Please let me know if something changes after doing that, thanks.

nerzak-dominion commented 4 years ago

Done, I'll report back in a few days. Thanks for the hard work, Playnite is amazing!

nerzak-dominion commented 4 years ago

It seems to work fine this way. I'll report back if anything happens. Thanks.

JosefNemec commented 4 years ago

Thanks for the info, that's a good and bad news (good that we now probably know what causes it, bad that I'm not sure how to fix it).

nerzak-dominion commented 4 years ago

I have some bad news =(
Image error Diag.zip
Context: I was sleeping. PC Idle

JosefNemec commented 4 years ago

Then I have no idea, I think it might be caused by one of the decencies we use, but since it doesn't crash in part of application I can actually investigate (it's not a standard crash), I can't tell which one.

I will be updating all dependencies to latest version when porting to new .NET runtime, but until then there's nothing I can do about this, sadly.

nerzak-dominion commented 4 years ago

It's just one crash in 5 days, don't worry. If you want me to run any program in the background just ask, I have no problem with that. One thing I didn't tell you is that I installed the portable version, all in one folder.

JosefNemec commented 4 years ago

I've made some changes in 7.5 that could potentially fix it. Please let me know if you notice some change after 7.5 update.

nerzak-dominion commented 4 years ago

Since I updated to 7.5, it didn't crash again! (good news!), but last time lasted like 5 days, Idk, it's too random tbh. I'll report back in a week just in case! Thanks.

nerzak-dominion commented 4 years ago

Ok, this happened today (I was not idle btw)
https://puu.sh/Fyvee/06215cfc50.png https://puu.sh/Fyvey/8619f1ffb5.png https://puu.sh/FyveP/c6e5bfd6a2.png Diag

JosefNemec commented 4 years ago

Can you upload %appdata%\playnite\playnite.log file (the one in diag package is not complete for some reason)? Thanks

nerzak-dominion commented 4 years ago

I checked it myself, didn't found trace of the error.

2020-04-16 18:13:52.9580|INFO:Game Baldur's Gate: Enhanced Edition installed after 3334 seconds. (At 19.34 crashed) 2020-04-16 19:43:05.0177|INFO:Application started from 'C:\Games\Playnite', with '--hidesplashscreen' arguments.

I reinstalled Baldur's Gate EE, and was testing it with the gog client. I didn't even use Playnite =(

Full Log

Foshitz commented 4 years ago

I just got it again. I had been playing Modern Warfare for about 75 minutes, PC has been running since yesterday morning.

First, i got the "Unrecoverable error" Then, "A breakpoint has been reached" Followed by attached image: 0xe0434352

Diag.pack = 05954864-dce6-49b6-90ce-9bfc5acf1057

JosefNemec commented 4 years ago

I have a new theory about what's causing this. It might be our Steam plugin. Can you please try this version of Steam plugin to see if it fixes the issue?

If you are using universal Steam metadata plugin then you need to use this version, because it has probably the same issue as built-in Steam plugin.

Foshitz commented 4 years ago

I just backed up the existing files and replaced with the files from the first link. Will report back with my findings!

hellomynameisleo commented 4 years ago

just got this too, crashed randomly

RobLach commented 4 years ago

Same issue:

Diag Code
eb846888-396d-408e-bb32-3d02b5266e57

Was running https://kodi.tv/ launched through Playnite, fullscreen, and after some time a breakpoint message appeared overlaying the fullscreen window. Kodi continued to run but the popup obstructed the window until closed. Happens after some time, at least an hour later or so it seems.

Foshitz commented 4 years ago

I haven´t gotten any new issues, but I was away last week and have been shutting down my PC every night and left it off until coming home from work the next day. So my PC hasn´t been running for any longer periods, like it was when the issue first started (I'm using it as a additional radiator in my room during the winter-months).

nerzak-dominion commented 4 years ago

I think it's way more stable in recent versions (1 crash a week), but it keeps happening. Just got a crash. Log is clean, no mention of the error.

Screen

2020-05-07 13:12:17.6454|INFO:Starting League of Legends, e1030142-f059-437d-9e3d-7594988decde, 83910793-d6c1-493f-905b-0061b0f9ea5b, 00000000-0000-0000-0000-000000000000
2020-05-07 13:12:17.6454|INFO:Using generic controller start the game.
2020-05-07 13:12:17.6454|INFO:Activating game action File: C:\Games\League of Legends\LeagueClient.exe, , C:\Games\League of Legends
2020-05-07 13:12:17.6454|DEBUG:Starting process: C:\Games\League of Legends\LeagueClient.exe, , C:\Games\League of Legends
2020-05-07 13:12:17.7345|INFO:Started League of Legends game.

-CRASH-
JosefNemec commented 4 years ago

@Gygun Are you using this plugin by any chance? If so, then you also need to update it to latest version since it probably contains the same bug causing this crash. Btw this crash will not be ever logged in logs, you don't have to analyze them when this crash happens.

nerzak-dominion commented 4 years ago

I wasn't using that plugin. Last time I just updated the SteamLibrary.dll that you posted. But I'll try the Universal Steam plugin. Who knows, maybe it helps ¯_(ツ)_/¯

JosefNemec commented 4 years ago

It won't help. It's using exactly the same code as built-in Steam plugin. However if you are still getting that crash, then the issue is not in Steam code at all.

chocolatechipcats commented 4 years ago

Don't know if this can help narrow it down any, but I occasionally get this error only when I've had a launched game running for more than a few hours.

I've replaced the Steam plugin to see if that helps any.

I'd send a diagnostic package, but Playnite is being persnickety and giving me errors whenever I try.

jasoncollege24 commented 4 years ago

Hi,

I received this from the portable version today. I left PlayNite running for 2 days, with Elder Scrolls Online launcher running for more than a day. The log is right after re-launching, and ESO is still running in the background. I haven't installed anything special.

c6108c4c-887b-43bd-91d9-6465f7cec056

RealityExit commented 4 years ago

I get this error fairly often, sometimes daily, and my logs also look clean. I'd be open to run any test or debug builds if it helps.

JosefNemec commented 4 years ago

To anybody having this issue: Can you please try solutions from this link, to see if it fixes the issue? Mainly the one related to restore of corrupted system files and memory check.

JosefNemec commented 4 years ago

To clarify my previous comment. I've spent quite a lot of time researching this and I've found that it's most likely related to some issue with the Windows installation. The crash simply doesn't occur in our code (that's why there's nothing in our logs related to the crash) and it's probably caused by corrupted system library which Playnite (.NET specifically) uses.

RealityExit commented 4 years ago

For what it's worth I performed all the steps and identified no issues. Had another crash a few minutes ago.

Bluscream commented 4 years ago

I just encountered it too