spark macos crash
This commit is contained in:
parent
6c3d9b93ca
commit
d8c03b8d15
1 changed files with 13 additions and 0 deletions
|
@ -36,6 +36,7 @@ pub async fn find(log: &str, data: &Data) -> Result<Vec<(String, String)>> {
|
||||||
nvidia_linux,
|
nvidia_linux,
|
||||||
linux_openal,
|
linux_openal,
|
||||||
flatpak_crash,
|
flatpak_crash,
|
||||||
|
spark_macos,
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
|
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
|
||||||
|
@ -457,3 +458,15 @@ fn flatpak_crash(log: &str) -> Issue {
|
||||||
) || log.contains("Could not open X display connection");
|
) || log.contains("Could not open X display connection");
|
||||||
found.then_some(issue)
|
found.then_some(issue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn spark_macos(log: &str) -> Issue {
|
||||||
|
let issue = (
|
||||||
|
"Old Java on MacOS".to_string(),
|
||||||
|
"This crash is caused by an old Java version conflicting with mods, most often Spark, on MacOS.
|
||||||
|
To fix it, either remove Spark or update Java by going to Edit > Settings > Download Java > Adoptium, and selecting the new Java version via Auto-Detect."
|
||||||
|
.to_string(),
|
||||||
|
);
|
||||||
|
|
||||||
|
let found = log.contains("~StubRoutines::SafeFetch32");
|
||||||
|
found.then_some(issue)
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue