Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Crash on orientation change #148

Open
vincentneo opened this issue Mar 1, 2021 · 1 comment
Open

Crash on orientation change #148

vincentneo opened this issue Mar 1, 2021 · 1 comment

Comments

@vincentneo
Copy link

Describe the bug
Example app crashes in certain circumstances with orientation change, but believe is not regarding example code.

To Reproduce
Steps to reproduce the behavior:

  1. Run app in landscape mode
  2. Click on an image
  3. Rotate (tested in Simulator) to another orientation
  4. See error

iOS Version (please complete the following information):

  • iOS 14.5

Additional context
*** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 195]. Layer: <CALayer:0x600000c37600; position = CGPoint (1266 195); bounds = CGRect (0 0; 844 390); delegate = <UIImageView: 0x7ffe08322d70; frame = (844 0; 844 390); opaque = NO; autoresize = W+H; gestureRecognizers = <NSArray: 0x6000003996e0>; layer = <CALayer: 0x600000c37600>>; allowsGroupOpacity = YES; backgroundColor = <CGColor 0x600002f9e5d0> [<CGColorSpace 0x600002894d20> (kCGColorSpaceICCBased; kCGColorSpaceModelMonochrome; Generic Gray Gamma 2.2 Profile; extended range)] ( 0 0 )>'

Occurs at imageView.frame = CGRect(origin: CGPoint.zero, size: realImageViewSize) of ViewableController

@vincentneo
Copy link
Author

Interestingly doesn't seem to occur when app initial orientation is portrait...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant