Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pin Constraint Parameters are ignored on Android
#3
(09-10-2017, 12:59 PM)josemendez Wrote: Hi there,

It recently came to our attention that there's a bug in Mono/IL2CPP that causes misaligned memory accesses in android. The result is a silent null reference in Mono that results in incorrect pin constraint handling, and a crash in IL2CPP when using pin constraints.

The (temporary) workaround we found is to comment lines: 202, 252, 260 of /Obi/Scripts/Oni.cs. They all look like this:
[StructLayout(LayoutKind.Sequential, Pack = 1)]

Turns out that when packing structs in certain Android devices, the compiler aligns the struct members to a memory address that is invalid in ARM architectures.

Thanks a lot josemendez ... It worked!


Many thanks,
Acacus
Reply


Messages In This Thread
RE: Pin Constraint Parameters are ignored on Android - by Acacus - 09-10-2017, 01:36 PM