Broken affine transformation in VS/Fire for 64bit devices

Hello

Finally got phone to test 64bit app. Affine transformation produces random values on phone, which cause app crash. It works on 64 bit simulator. There is no workaround.

this code = instant crash

CGFloat kat = 1.5707963267949;
CGAffineTransform transform = CGAffineTransformIdentity;
CGAffineTransform transform2 = CGAffineTransformRotate(transform, kat);

reading transform from any view = crash after 2 transformations. Strange that transform values are same for CGAffineTransformIdentity and reading from view = {1, 0, 0, 1, 0, 0} but instant crash is when matrix is initialized by CGAffineTransformIdentity.

CGFloat kat = 1.5707963267949;
CGAffineTransform transform = myView.transform;
CGAffineTransform transform2 = CGAffineTransformRotate(transform, kat);

It looks like memory corruption at 64 bit devices by any affine transformation or even CGAffineTransformIdentity.

64 bit Simulator

64 bit device

b.r.

Thanks, logged as bugs://73010

I’m having trouble making it crash. Do you have an exact project that shows this?

This is what I get on arm64:

Sorry for delay, was hard day :confused:
Prepared sample code. Your example works for me too. I just figured out, that it crash when used in animateWithDuration block.

Check this code: Affine64.zip (130.9 KB)

b.r.

bugs://73010 got closed with status fixed.

Something is wrong with new update. Cannot deploy anything to phone :frowning:
I got error:
’/Users/me/Library/Application Support/RemObjects Software/Oxygene/CrossBox/9dd29081-3310-4810-bca7-62667a7c2cda-affine64/Debug/iOS/Affine64.app

I checked this path on mac and /Debug/iOS directory not exists

[EDIT]
Selecting phone as target, iOS Simulator directory is created in crossbox cache folder.
So even build for device not works. It’s only simulator version now :smile:

Any tip how to fix it fast?

[EDIT2]
Found problem!

Problem is with crossbox. It’s not updated and not want to be updated when clicking on “update crossbox server”. As I remember, somone report that previous crossbox icon is displayed as orange and update cause to change name of crossbox to ~crossbox.app in apple. By manually delete old, move crossbox.zip and install it on mac, solve problem.

I can confirm that 64bit bug is fixed ! :smile:

b.r.

Thanks, logged as bugs://73035: Cannot update CrossBox, gets renamed to ~CrossBox

Good to hear the issue is solved!

bugs://73035 got closed with status fixed.