-
Notifications
You must be signed in to change notification settings - Fork 6
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
Copy JVM crash report to description #703
Comments
IMO it would be enough if Arisa would simply edit the hs_err_pid file to remove the sensitive parts, and then upload that file and delete the unredacted one, similar to how I've done it in https://bugs.mojang.com/browse/MC-229049 manually. Edit: Actually these are two separate things, mine is about getting rid of the privacy issue, yours is about finding these crashes easier. I think I'll create a new issue for mine, it should be unrelated to this one. Edit 2: Created #704 |
Getting the version for deobfuscation would be pretty easy from what I can tell, the line starting with |
Interestingly, JIRA's search appears to be very weird when searching for JVM crashes. I can't find MC-229049 by searching for |
Maybe it had not been indexed yet? I am able to find it with |
Ah yeah, that's probably what it was. I can find it now too. Strange that it took that long to index. |
The Problem
Relates to #281 and #685, depends on #627 (so we first agree on the expected behavior)
Similar to #281, it would be useful if Arisa could include a snippet of JVM crash reports to make finding existing reports easier.
We have recently been told by the Mojang developers that we should avoid resolving JVM crashes as Invalid (unless we are certain that they are caused by incompatible software of outdated drivers). However, the issue is that such crashes cannot be easily reproduced (or depend on the OS and device). It is therefore even more important for these reports to find existing ones to allow the reports to get Community Consensus as Confirmation Status and to get a broader picture of which devices are affected.
Additionally it feels like JVM crashes have become more frequent recently (maybe due to rendering changes?).
Possible Solution
Extend mc-crash-lib to support extracting JVM crash report snippets.
We can probably extract everything starting at
... --- T H R E A D --- ...
up to (excluding)Register to memory mapping:
:(full crash report (private))
When
Register to memory mapping:
is not present, which appears to be the case for native frames sometimes the snippet should probably go up to (excluding),... --- P R O C E S S --- ...
(full crash report (private)). Though in that case the cause does not seem to be mentioned in that part, so we have to include the indented lines in the header afterA fatal error has been detected by the Java Runtime Environment
(maybe we could simply always include them, even if they would be doubled for crashes with Java frames then).If none of these section markers are found we should probably not try to include the content in the description.
We could also ask the Mojang devs whether there is something else to check when determining whether two JVM crashes are the same.
We could possibly also add the ability to deobfuscate Java class names, but that might be out of scope for this task since it requires custom logic for detecting Minecraft versions in the JVM crash reports and also custom regex patterns for matching class and method names.
The text was updated successfully, but these errors were encountered: