xrandr crash

This commit is contained in:
maskers 2025-06-06 11:04:16 +03:00
parent f1fe1be3ca
commit 86e6d50ae4

View file

@ -37,6 +37,7 @@ pub async fn find(log: &str, data: &Data) -> Result<Vec<(String, String)>> {
linux_openal,
flatpak_crash,
spark_macos,
xrandr,
];
let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect();
@ -470,3 +471,14 @@ fn spark_macos(log: &str) -> Issue {
let found = log.contains("~StubRoutines::SafeFetch32");
found.then_some(issue)
}
fn xrandr(log: &str) -> Issue {
let issue = (
"Missing xrandr".to_string(),
"This crash is caused by not having xrandr installed on Linux on Minecraft versions that use LWJGL 2."
.to_string(),
);
let found = log.contains("at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes");
found.then_some(issue)
}