You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't attach to Unity Mono Linux builds (6.1, 6.0, and 2018.3) #161
I've been continuously using cargo update to test the latest changes, I retested it just before opening this issue
EDIT: slight correction, my last DELTATRAVELER tests were on commit 5021c43, so before the latest Mac changes but after all the Linux changes. OFF was tested on commit 6a0bbdc though
@devek1 could you try again on the latest asr? Linux Mono has per-build offsets now (#187) and the 64-bit games you listed should attach. I ran 2018.3, 6000.0 and 6000.1 Linux Mono players on it and they all read fine. One thing changed: attach_auto_detect needs the alloc feature now. The 32-bit DELTATRAVELER build still won't attach, because asr doesn't support 32-bit Linux Mono yet.
Thanks for trying again. I just ran a 6000.1.17f1 Linux Mono player, the same Unity version as OFF, on 54bb0f9 with wait_attach_auto_detect and it attached and read everything fine. So something in your setup must be different from mine.
Which host are you running the splitter in, and which version? LiveSplit One, the OBS plugin or LiveSplit's auto splitting runtime? An older host might not find the Mono module by its file name.
When Mono attaches, asr prints a line like mono: unity 6000.1.17.0 takes the build measured on 2021.2.0.61932. If you don't see anything like that, could you print what process.get_module_range("libmonobdwgc-2.0.so") returns for the game?
Thanks, that helps. The OFF size matches the Mono library of my 6000.1.17f1 player exactly, so the debugger finds the module fine. Something after that fails on your machine.
I also ran my 6000.1.17f1 player on the latest livesplit-core, which your rebuilt asr-debugger uses, and Mono attaches there too.
Could you try attaching with the profile directly? This skips the Unity version lookup:
use asr::game_engine::unity::mono::{profiles,Module};let module = Module::wait_attach(&process, profiles::UNITY_2021_2_0F1_LINUX_MONO_BDWGC_X86_64).await;
If that attaches, the version lookup is the problem. If it still hangs, the output of the below command while OFF is running would help. Replace <pid> with the game's process ID:
Thanks. Those lines match the layout of the library in my 6000.1.17f1 player, so it's loaded normally.
Both ways of attaching then do the same thing. On Linux, they read the Mono library's symbols to find mono_assembly_foreach. Could you run this while the game is running and send what it prints?
let base = process.get_module_address("libmonobdwgc-2.0.so").unwrap();
asr::print_limited::<128>(&format_args!("read {:?}", process.read::<[u8;4]>(base)));
asr::print_limited::<128>(&format_args!("symbols {}", asr::file_format::elf::symbols(&process, base).count()));
On my 6000.1.17f1 player it prints read Ok([127, 69, 76, 70]) and symbols 2546.
Oh it was a permission issue, I forgot about the matter of permissions because for Proton games they aren't needed.
Running asr-debugger with sudo or giving it SYS_CAP_PTRACE fixed this for me and gives the same results you list here for OFF. Both 64-bit Deltatraveler versions also worked.
(the initial attempt gave read Err(error) and symbols 0)
Activity
CryZe commentedon Sep 18, 2026
Which asr commit are you using, cause I'm in the middle of merging ero's work, some of which improving Linux support got merged just this morning.
devek1 commentedon Sep 18, 2026
I've been continuously using
cargo updateto test the latest changes, I retested it just before opening this issueEDIT: slight correction, my last DELTATRAVELER tests were on commit 5021c43, so before the latest Mac changes but after all the Linux changes. OFF was tested on commit 6a0bbdc though
ero-qt commentedon Oct 11, 2026
@devek1 could you try again on the latest asr? Linux Mono has per-build offsets now (#187) and the 64-bit games you listed should attach. I ran 2018.3, 6000.0 and 6000.1 Linux Mono players on it and they all read fine. One thing changed:
attach_auto_detectneeds theallocfeature now. The 32-bit DELTATRAVELER build still won't attach, because asr doesn't support 32-bit Linux Mono yet.devek1 commentedon Oct 11, 2026
I did clean builds for both with 54bb0f9 and they all still get stuck waiting on
Module::wait_attach_auto_detect(&process).awaitero-qt commentedon Oct 11, 2026
Thanks for trying again. I just ran a 6000.1.17f1 Linux Mono player, the same Unity version as OFF, on 54bb0f9 with
wait_attach_auto_detectand it attached and read everything fine. So something in your setup must be different from mine.Which host are you running the splitter in, and which version? LiveSplit One, the OBS plugin or LiveSplit's auto splitting runtime? An older host might not find the Mono module by its file name.
When Mono attaches, asr prints a line like
mono: unity 6000.1.17.0 takes the build measured on 2021.2.0.61932. If you don't see anything like that, could you print whatprocess.get_module_range("libmonobdwgc-2.0.so")returns for the game?devek1 commentedon Oct 11, 2026
I was using an
asr-debuggermanual build from a while back, but I rebuilt it now with all dependencies updated and that didn't help.the module ranges:
DELTATRAVELER v3.0.13 - address 7f68cb800000, size 5619712
DELTATRAVELER v3.1.0 - address 7fe622e00000, size 5951488
OFF - address 7f6252e00000, size 5951488
ero-qt commentedon Oct 11, 2026
Thanks, that helps. The OFF size matches the Mono library of my 6000.1.17f1 player exactly, so the debugger finds the module fine. Something after that fails on your machine.
I also ran my 6000.1.17f1 player on the latest livesplit-core, which your rebuilt asr-debugger uses, and Mono attaches there too.
Could you try attaching with the profile directly? This skips the Unity version lookup:
If that attaches, the version lookup is the problem. If it still hangs, the output of the below command while OFF is running would help. Replace
<pid>with the game's process ID:devek1 commentedon Oct 11, 2026
It still gets stuck
The command output:
ero-qt commentedon Oct 11, 2026
Thanks. Those lines match the layout of the library in my 6000.1.17f1 player, so it's loaded normally.
Both ways of attaching then do the same thing. On Linux, they read the Mono library's symbols to find
mono_assembly_foreach. Could you run this while the game is running and send what it prints?On my 6000.1.17f1 player it prints
read Ok([127, 69, 76, 70])andsymbols 2546.devek1 commentedon Oct 11, 2026
Oh it was a permission issue, I forgot about the matter of permissions because for Proton games they aren't needed.
Running asr-debugger with
sudoor giving itSYS_CAP_PTRACEfixed this for me and gives the same results you list here for OFF. Both 64-bit Deltatraveler versions also worked.(the initial attempt gave
read Err(error)andsymbols 0)