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
il2cpp - MemoryMarshal.Cast can cause SIGBUS on ARMv7 #931
If I replace this MemoryMarshal.Cast call with BitConverterToInt64 it seems to work. I ran a really basic perf test and the bitwise code also seems to be a good bit faster than MemoryMarshal.Cast.
#748 is the issue I was thinking of that sounds very similar. It was fixed by changing BitConverterToInt64 so that it avoids the bug in the Android runtime, so your fix makes sense--we just didn't update all callers to use the new method.
Activity
AArnott commentedon May 17, 2020
This seems really familiar. I think we already dealt with this. What version of the library are you using?
gsuuon commentedon May 17, 2020
I was able to reproduce this with the latest
.unitypackagewith a type like this:If I replace this MemoryMarshal.Cast call with BitConverterToInt64 it seems to work. I ran a really basic perf test and the bitwise code also seems to be a good bit faster than
MemoryMarshal.Cast.AArnott commentedon May 17, 2020
#748 is the issue I was thinking of that sounds very similar. It was fixed by changing
BitConverterToInt64so that it avoids the bug in the Android runtime, so your fix makes sense--we just didn't update all callers to use the new method.Avoid using MemoryMarshal.Cast<byte, _> on Android
Avoid using MemoryMarshal.Cast<byte, _> on Android
CodeMasterYi commentedon Oct 31, 2022
Crash also happens in MessagePack v2.2.85~
Android 12/arm64/il2cpp/Unity2021.3.11f1
CodeMasterYi commentedon Oct 31, 2022