From 01ca179ee337310b936595efbc894df4d4049d76 Mon Sep 17 00:00:00 2001 From: maskers <97827489+mskrss@users.noreply.github.com> Date: Sat, 17 May 2025 20:48:25 +0300 Subject: [PATCH] openal crash Co-authored-by: Rahul --- src/handlers/event/analyze_logs/issues.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/handlers/event/analyze_logs/issues.rs b/src/handlers/event/analyze_logs/issues.rs index 5977339..b3af1ea 100644 --- a/src/handlers/event/analyze_logs/issues.rs +++ b/src/handlers/event/analyze_logs/issues.rs @@ -34,6 +34,7 @@ pub async fn find(log: &str, data: &Data) -> Result> { old_forge_new_java, checksum_mismatch, nvidia_linux, + linux_openal, ]; let mut res: Vec<(String, String)> = issues.iter().filter_map(|issue| issue(log)).collect(); @@ -427,3 +428,18 @@ fn nvidia_linux(log: &str) -> Issue { let found = log.contains("[libnvidia-glcore.so"); found.then_some(issue) } + +fn linux_openal(log: &str) -> Issue { + let issue = ( + "Missing .alsoftrc".to_string(), + "OpenAL is missing the configuration file. + To fix this, create a file named `.alsoftrc` in your home directory with the following content: + ``` +drivers=alsa +hrtf=true```" + .to_string(), + ); + + let found = log.contains("[libopenal.so"); + found.then_some(issue) +}