Skip to content
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

Logs: Flush unreported errors when turning off Stack Cell errors #12366

Merged
merged 2 commits into from Jul 19, 2022

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Jul 19, 2022

No description provided.

@@ -2566,13 +2566,6 @@ s32 error_code::error_report(s32 result, const char* fmt, const fmt_type_info* s
if (!fmt)
{
// Report and clean error state

if (g_log_all_errors) [[unlikely]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes no sense.
You're now always stacking the errors in this case

Copy link
Contributor Author

@elad335 elad335 Jul 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block of code flushes unreported errors when the thread exits, it doesn't log new ones. https://github.com/RPCS3/rpcs3/blob/master/Utilities/Thread.cpp#L2061

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well then it should still log all errors in this mode

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's meaningless to spam the log in this code block. The information "lost" by stacking the errors is their time of occurrence which is still not recovered by repeatedly outputting the same message in a loop.

@Megamouse Megamouse merged commit 31df99f into RPCS3:master Jul 19, 2022
@Megamouse Megamouse removed the GUI label Jul 19, 2022
@elad335 elad335 deleted the patch-77 branch July 19, 2022 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants