touchlab / xcode-kotlin

Kotlin Native Xcode Plugin
https://touchlab.co/xcodekotlin
Apache License 2.0
1.15k stars 47 forks source link

Pointer sometimes invalid #1

Closed kpgalligan closed 5 years ago

kpgalligan commented 5 years ago

Not sure exactly why, but sometimes the pointer isn't valid. I'm not sure if this is for any data, just arrays, or whatever. The old "check" method would simply skip over invalid pointers. That may be fine, but I'd like to understand what's actually happening.

kpgalligan commented 5 years ago

See big_type_check. This is what's throwing off issues.

kpgalligan commented 5 years ago

The single type check call wasn't failing on the typeinfo check call. The system tries to get info for both named fields and the address of those fields ("something" and "&something"). I'm not sure why, but that was throwing us off. Reverted to skip the address of calls.