aik002 / RSBypass

Rocksmith 2014 Remastered Edition dylib patch for loading and playing CDLC
109 stars 16 forks source link

Crashes at boot on MacOS Sonoma #6

Closed MarcPerezPro closed 11 months ago

MarcPerezPro commented 1 year ago

Hi, I just updated to the MacOS Sonoma Beta and Rocksmith 2014 stopped working.

I tried verifying integrity in Steam, and it fixed the game, but I lost access to my CDLCs. I tried reapplying the patch, without installing the CDLCs, but the game crashes again.

EDIT: Also tried on an Intel MacBook Pro, with the same result. Disabling SIP also doesn't fix it.

Here are the logs generated by Apple: crashdump.log

Translated Report:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Rocksmith2014 [27943]
Path:                  /Users/USER/Library/Application Support/Steam/*/Rocksmith2014.app/Contents/MacOS/Rocksmith2014
Identifier:            Ubisoft.Rocksmith2014
Version:               1.0 (1)
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-08-29 18:24:31.5801 +0200
OS Version:            macOS 14.0 (23A5328b)
Report Version:        12
Anonymous UUID:        1321F3DB-8155-3CF1-3840-C752B78EE980

Time Awake Since Boot: 12000 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace ROSETTA, Code 0 
rosetta error: Attachment of code signature supplement failed: 1 
/var/db/*/libRSBypass.dylib.aot

Thread 0 Crashed:
0   runtime                             0x7ff7ffbe61c4 0x7ff7ffbe2000 + 16836
1   runtime                             0x7ff7ffbffc80 0x7ff7ffbe2000 + 121984
2   runtime                             0x7ff7ffbffd04 0x7ff7ffbe2000 + 122116
3   runtime                             0x7ff7ffbf41b4 0x7ff7ffbe2000 + 74164
4   runtime                             0x7ff7ffbfb8ec 0x7ff7ffbe2000 + 104684
5   Rosetta Runtime Routines           0x1049e3e8c ???
6   <translation info unavailable>         0x104a69018 ???
7   dyld                                   0x20406c671 dyld4::Loader::mapSegments(Diagnostics&, dyld4::RuntimeState&, char const*, unsigned long long, dyld4::Loader::CodeSignatureInFile const&, bool, dyld3::Array<dyld4::Loader::Region> const&, bool, bool, dyld4::Loader::FileValidationInfo const&) + 1765
8   dyld                                   0x20407490a invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 84
9   dyld                                   0x204074232 dyld4::JustInTimeLoader::withRegions(dyld3::MachOFile const*, void (dyld3::Array<dyld4::Loader::Region> const&) block_pointer) + 242
10  dyld                                   0x204074803 invocation function for block in dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 513
11  dyld                                   0x20407b545 dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const*, bool, void (void const*, unsigned long, bool, dyld4::FileID const&, char const*) block_pointer) const + 137
12  dyld                                   0x2040745d8 dyld4::JustInTimeLoader::makeJustInTimeLoaderDisk(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 194
13  dyld                                   0x20406a064 dyld4::Loader::makeDiskLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, bool, unsigned int, mach_o::Layout const*) + 150
14  dyld                                   0x20406b62e invocation function for block in dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 2042
15  dyld                                   0x20406a6ef dyld4::Loader::forEachResolvedAtPathVar(dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, dyld4::ProcessConfig::PathOverrides::Type, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 821
16  dyld                                   0x20405ac46 dyld4::ProcessConfig::PathOverrides::forEachPathVariant(char const*, dyld3::Platform, bool, bool, bool&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) const + 1028
17  dyld                                   0x20406a236 dyld4::Loader::forEachPath(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&, void (char const*, dyld4::ProcessConfig::PathOverrides::Type, bool&) block_pointer) + 250
18  dyld                                   0x20406aa30 dyld4::Loader::getLoader(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::LoadOptions const&) + 790
19  dyld                                   0x20407278c invocation function for block in dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&) + 429
20  dyld                                   0x2040a6077 invocation function for block in dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const + 110
21  dyld                                   0x20405407f dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 249
22  dyld                                   0x2040a5eba dyld3::MachOFile::forEachDependentDylib(void (char const*, bool, bool, bool, unsigned int, unsigned int, bool&) block_pointer) const + 166
23  dyld                                   0x2040724c4 dyld4::JustInTimeLoader::loadDependents(Diagnostics&, dyld4::RuntimeState&, dyld4::Loader::LoadOptions const&) + 152
24  dyld                                   0x204058996 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 1146
25  dyld                                   0x20405833f start + 1839

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                             0x7ff7ffbe62b4 0x7ff7ffbe2000 + 17076

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000022   x1: 0x0000000000000000   x2: 0x00007ff7ffc13b31   x3: 0x0000000000000800
    x4: 0x00007ff7ffc0e47f   x5: 0x0000000000000000   x6: 0x0000000000000020   x7: 0x00007ff7ffc0e9ed
    x8: 0x00007ff7ffc1d000   x9: 0xadfe47c17dd800c9  x10: 0x0000000000000000  x11: 0x00007ff7ffc1d9fa
   x12: 0x0000000000000078  x13: 0x42535262696c2f31  x14: 0x00007ff7ffc05a61  x15: 0x00007ff7ffc1d914
   x16: 0x0000000000000209  x17: 0x000000010ca49417  x18: 0x800000010ca49b80  x19: 0x00007ff7ffc13b31
   x20: 0x00007ff7ffc13b31  x21: 0x000000010d47f000  x22: 0x0000000000000004  x23: 0x000000010d47f000
   x24: 0x0000000000000003  x25: 0x0000000000000001  x26: 0x0000000000000103  x27: 0x0000000000000000
   x28: 0x000000030a336238   fp: 0x000000010ca494d0   lr: 0x00007ff7ffbffc24
    sp: 0x000000010ca494b0   pc: 0x00007ff7ffbe61c4 cpsr: 0x44001000
   far: 0x000000010d46b000  esr: 0x56000080  Address size fault

Binary Images:
       0x204052000 -        0x2040f1fff dyld (*) <fdda98e4-58fb-3e87-8769-8431695a4b5c> /usr/lib/dyld
       0x10d363000 -        0x10d392fff gameoverlayrenderer.dylib (*) <a1b32d79-928e-34f8-98ea-3acec19a387c> /Users/USER/Library/Application Support/Steam/*/gameoverlayrenderer.dylib
       0x10d357000 -        0x10d357fff steamloader.dylib (*) <c85b1892-a204-3ace-a1aa-10e5f2b49bdf> /Users/USER/Library/Application Support/Steam/*/steamloader.dylib
    0x7ff7ffbe2000 -     0x7ff7ffc11fff runtime (*) <31538c50-034b-3469-ae9f-0fffbd6f4de1> /usr/libexec/rosetta/runtime
       0x10c9e4000 -        0x10ca37fff libRosettaRuntime (*) <29e3f175-b88d-3239-bd82-326cde98f820> /Library/Apple/*/libRosettaRuntime
       0x1021df000 -        0x1039c5fff Ubisoft.Rocksmith2014 (1.0) <48c5c788-1037-364d-9a60-3e1d39e6d88a> /Users/USER/Library/Application Support/Steam/*/Rocksmith2014.app/Contents/MacOS/Rocksmith2014
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=28.0M resident=0K(0%) swapped_out_or_unallocated=28.0M(100%)
Writable regions: Total=165.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=165.3M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     4096K        2 
Rosetta Generic                   1016K      251 
Rosetta IndirectBranch              32K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                20K        2 
Rosetta Thread Context              20K        2 
Stack                             8176K        1 
Stack Guard                       56.0M        1 
VM_ALLOCATE                       18.6M        7 
VM_ALLOCATE (reserved)             680K       10         reserved VM address space (unallocated)
__DATA                            1788K        9 
__DATA_CONST                        32K        1 
__DATA_DIRTY                        16K        1 
__LINKEDIT                        2880K        9 
__TEXT                            25.2M        6 
dyld private memory               4360K        4 
mapped file                        7.7G       65 
shared memory                       32K        2 
===========                     =======  ======= 
TOTAL                              7.9G      375 
TOTAL, minus reserved VM space     7.9G      375 
mariob commented 11 months ago

Can confirm this on a non beta release as well.

RS works fine with the True Tone cable on Sonoma (M1) but crashes when the patch is applied

aik002 commented 11 months ago

Can confirm from my side too. I’m working on a fix but it might be difficult since there’s no official reference from Apple how the memory regions got changed.

pallazola commented 11 months ago

I have the same problem. Thanks for your work!!!

MarcPerezPro commented 11 months ago

Fixed by https://github.com/aik002/RSBypass/pull/9 ❤️ Feel free to close this issue after it's merged

aik002 commented 11 months ago

@MarcPerezPro Have you had a chance to try #9 on Intel Sonoma? It doesn't work there for me

aik002 commented 11 months ago

See https://github.com/aik002/RSBypass/releases/1.8pre as a preliminary fix. 1.8 will include the full PR.