rscustom / rocksmith-custom-song-toolkit

Custom song toolkit for Rocksmith and Rocksmith 2014
http://www.rscustom.net/
343 stars 80 forks source link

[MAC] Toolkit breaks with mono 5.2 #296

Closed JustinAiken closed 7 years ago

JustinAiken commented 7 years ago

Tried updating mono to 5.2... whereas 5.0.1 worked, 5.2.x seems to explode:

$ /Applications/RocksmithCustomSongToolkit.app/Contents/MacOS/RocksmithCustomSongToolkit

Current Mono version: v5.2.0.215
wine-2
“��
WARNING: The Carbon driver has not been ported to 64bits, and very few parts of Windows.Forms will work properly, or at all
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon.CGDisplayBounds (intptr) [0x00002] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.XplatUICarbon.get_WorkingArea () [0x00005] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.XplatUICarbon.get_VirtualScreen () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.XplatUI.get_VirtualScreen () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.Screen..cctor () [0x00034] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0
  at <unknown> <0xffffffff>
  at System.Windows.Forms.Form.get_CreateParams () [0x00157] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.CommonDialog/DialogForm.get_CreateParams () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.Form.SetClientSizeCore (int,int) [0x000af] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.Control.set_ClientSize (System.Drawing.Size) [0x0000f] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.Form.set_ClientSize (System.Drawing.Size) [0x00007] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.set_ClientSize (System.Drawing.Size) [0x00032] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.FileDialog..ctor () [0x00954] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at System.Windows.Forms.OpenFileDialog..ctor () [0x00000] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.OpenFileDialog..ctor () [0x00018] in <37dfd86a0d3248c0b8cd4af52ec71426>:0
  at RocksmithToolkitGUI.MainForm.InitializeComponent () [0x00010] in <6f148df279d04b5dbcd2122c9954baa8>:0
  at RocksmithToolkitGUI.MainForm..ctor (string[]) [0x00006] in <6f148df279d04b5dbcd2122c9954baa8>:0
  at (wrapper remoting-invoke-with-check) RocksmithToolkitGUI.MainForm..ctor (string[]) [0x00019] in <6f148df279d04b5dbcd2122c9954baa8>:0
  at RocksmithToolkitGUI.Program.Main (string[]) [0x000de] in <6f148df279d04b5dbcd2122c9954baa8>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x0004e] in <6f148df279d04b5dbcd2122c9954baa8>:0

Native stacktrace:

    0   mono                                0x0000000101ce0061 mono_handle_native_crash + 257
    1   mono                                0x0000000101d45ec6 altstack_handle_and_restore + 70
    2   CoreGraphics                        0x00007fff8e08b22b CGDisplayBounds + 47
    3   ???                                 0x000000010b43b06e 0x0 + 4483952750
    4   ???                                 0x0000000106757e7f 0x0 + 4403330687
    5   mono                                0x0000000101c36505 mono_jit_runtime_invoke + 2245
    6   mono                                0x0000000101e37d48 do_runtime_invoke + 88
    7   mono                                0x0000000101e33cdd mono_runtime_class_init_full + 1021
    8   mono                                0x0000000101c2fefa mono_jit_compile_method_inner + 2442
    9   mono                                0x0000000101c3284a mono_jit_compile_method_with_opt + 714
    10  mono                                0x0000000101ce266f common_call_trampoline + 1199
    11  mono                                0x0000000101ce2189 mono_magic_trampoline + 73
    12  ???                                 0x00000001022c639e 0x0 + 4331430814
    13  ???                                 0x000000010b0b0be5 0x0 + 4480240613
    14  ???                                 0x000000010b3ed575 0x0 + 4483634549
    15  ???                                 0x000000010b0c51d8 0x0 + 4480324056
    16  ???                                 0x000000010679b180 0x0 + 4403605888
    17  mono                                0x0000000101c36505 mono_jit_runtime_invoke + 2245
    18  mono                                0x0000000101e37d48 do_runtime_invoke + 88
    19  mono                                0x0000000101e3b1bc do_exec_main_checked + 140
    20  mono                                0x0000000101ca534e mono_jit_exec + 302
    21  mono                                0x0000000101ca7757 mono_main + 8167
    22  mono                                0x0000000101c2759a main + 1690
    23  mono                                0x0000000101c26ef4 start + 52
L0FKA commented 7 years ago

@JustinAiken Why you ewer installed x64 bit version at all? go with mono 32 bit and it should work, yes? try adding --arch=32 to mono command inside toolkit's launch script or I can do it later for you..

JustinAiken commented 7 years ago

Why you ewer installed x64 bit version at all? go with mono 32 bit and it should work, yes?

Mac mono installers don't come in x32 or x64 flavors, it's just one universal installer

try adding --arch=32 to mono command inside toolkit's launch script

That works!

Changing the last line in RocksmithCustomSongToolkit from

${MONO_BIN} --optimize=sse2,simd,loop,inline "$ASSEMBLY"
# to
${MONO_BIN} --arch=32 --optimize=sse2,simd,loop,inline "$ASSEMBLY"

Makes it work with the newer 5.2 mono :)

L0FKA commented 7 years ago

@JustinAiken yeah, should publish fix later

Have you ever successfully made a wine install for the toolkit? Or windows build in parallels? Just curious because it's really the only option to have 100% functional toolkit on mac (I've tried native version with older mono on my VM and it sucks hardly :D )

JustinAiken commented 7 years ago

Have you ever successfully made a wine install for the toolkit?

Nope... I know little of wine except for brew install wine winetricks and some stuff works

Or windows build in parallels?

Too much of a hassle - always makes my laptop fans go crazy, and always have to deal with the windows VM expiring.

really the only option to have 100% functional toolkit on mac

Fortunately for me, I just need the plain CLI tools for most toolkit things (I don't create CDLC myself, just convert/massage) :)

L0FKA commented 7 years ago

Well, is mono now always go with llvm support etc? I just dig around some runtime flags and I'd like to know if it's any better or not >__> gotta test toolkit's new feachures and push a commit ;)