Mirror: Assembly Sharing Violations Occuring with Mirror & Burst
When using Mirror in combination with Burst compilation, the compiler will crash from time to time (in my case roughly 10% of compiles).
The error message in this case is either something along the lines of Microsoft (R) Visual C# Compiler error CSXXX or a sharing violation originating from Library/ScriptAssemblies, with a different assembly file each time.
Note that I have not 100% narrowed it down to the combination of Mirror and Burst since I cannot easily reproduce this behavior (except continually compiling until it eventually fails).
However, this issue is not present without Mirror in the project, and I have turned off burst compile for the time being, and have yet to see the issue appear, so I’m fairly certain both Mirror and Burst are trying to write the same assemblies.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 35 (2 by maintainers)
I’m still having this happen and I’m willing to invite @vis2k to my repo, join a Discord call, whatever it takes.
I noticed that a real callstack hasn’t been provided here yet:
Weaving via ILPostProcessor should fix this: https://github.com/vis2k/Mirror/pull/2891 PR is almost finished. please test if you get a chance and report back.