oom
This commit is contained in:
parent
c6f33a1c1f
commit
01b90cf9f4
1 changed files with 11 additions and 0 deletions
11
src/logs.ts
11
src/logs.ts
|
@ -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[] = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue