This commit is contained in:
dada513 2022-06-07 16:31:28 +02:00
parent c6f33a1c1f
commit 01b90cf9f4
No known key found for this signature in database
GPG key ID: 403448C14FA4B33E

View file

@ -118,6 +118,16 @@ const quiltFabricInternalsAnalyzer: analyzer = async (text) => {
return null;
};
const oomAnalyzer: analyzer = async (text) => {
if (text.includes('java.lang.OutOfMemoryError: Java heap space')) {
return [
'Out of Memory',
'Allocate more RAM to your instance to prevent this crash.',
];
}
return null;
};
const analyzers: analyzer[] = [
javaAnalyzer,
versionAnalyzer,
@ -126,6 +136,7 @@ const analyzers: analyzer[] = [
intelHDAnalyzer,
macOSNSWindowAnalyzer,
quiltFabricInternalsAnalyzer,
oomAnalyzer,
];
const providers: logProvider[] = [