Search Unity

.dll works in editor, crashes build .exe (since 2018.2)

Discussion in 'Formats & External Tools' started by WilbertBlom, Nov 28, 2018.

  1. WilbertBlom

    WilbertBlom

    Joined:
    Feb 27, 2017
    Posts:
    14
    I'm using a Shared memory dll (Y200Clnt.dll) that worked fine in older Unity versions but now it crashes the runtime. It works fine in the editor. (Although you have to place it next to the Editor: Unity.exe)
    We also manually move the .dll next to builded .exe because else it can't find it.
    Any ideas about what might be causing the crashes ?

    Code (CSharp):
    1. ========== OUTPUTTING STACK TRACE ==================
    2.  
    3.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF9B012CED)
    4. 0x00007FFF9B012CED (Y200Clnt) (function-name not available)
    5. 0x00007FFF9B013CC7 (Y200Clnt) WMY200CreateIPCRange
    6. 0x000001DCF71CD16B (Mono JIT Code) (wrapper managed-to-native) Y200Clnt:WMY200CreateIPCRange (string,uint,uint,uint,uint,int&)
    7. 0x000001DCF71CD033 (Mono JIT Code) clWinModLink:Start ()
    8. 0x000001DCF71C0080 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    9. 0x00007FFF4858A69B (mono-2.0-bdwgc) mono_get_runtime_build_info
    10. 0x00007FFF48511BB2 (mono-2.0-bdwgc) mono_perfcounters_init
    11. 0x00007FFF4851AB9F (mono-2.0-bdwgc) mono_runtime_invoke
    12.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF45333B44)
    13. 0x00007FFF45333B44 (UnityPlayer) (function-name not available)
    14.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF453310D0)
    15. 0x00007FFF453310D0 (UnityPlayer) (function-name not available)
    16.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF45317AC0)
    17. 0x00007FFF45317AC0 (UnityPlayer) (function-name not available)
    18.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF45317B4E)
    19. 0x00007FFF45317B4E (UnityPlayer) (function-name not available)
    20.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF45316036)
    21. 0x00007FFF45316036 (UnityPlayer) (function-name not available)
    22.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF450E7B52)
    23. 0x00007FFF450E7B52 (UnityPlayer) (function-name not available)
    24.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF4521CCF7)
    25. 0x00007FFF4521CCF7 (UnityPlayer) (function-name not available)
    26.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF4521CD82)
    27. 0x00007FFF4521CD82 (UnityPlayer) (function-name not available)
    28.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF4521EBAF)
    29. 0x00007FFF4521EBAF (UnityPlayer) (function-name not available)
    30.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF458D8625)
    31. 0x00007FFF458D8625 (UnityPlayer) (function-name not available)
    32.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF458D776A)
    33. 0x00007FFF458D776A (UnityPlayer) (function-name not available)
    34.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFF458D9F1B)
    35. 0x00007FFF458D9F1B (UnityPlayer) (function-name not available)
    36. 0x00007FFF458DA0EB (UnityPlayer) UnityMain
    37.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF7864F1207)
    38. 0x00007FF7864F1207 (t_WinMOD(Unity2018.2.17)) (function-name not available)
    39. 0x00007FFFA9273034 (KERNEL32) BaseThreadInitThunk
    40. 0x00007FFFAA9B1471 (ntdll) RtlUserThreadStart
    41.  
    42. ========== END OF STACKTRACE ===========
    43.