Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashed on -[TKImageView setToCropImage:] #4

Open
ghost opened this issue Oct 12, 2017 · 10 comments
Open

Crashed on -[TKImageView setToCropImage:] #4

ghost opened this issue Oct 12, 2017 · 10 comments

Comments

@ghost
Copy link

ghost commented Oct 12, 2017

we have integrated this cropping library in our Project and it working Well.
but we recive many complains from user that they facing crash while Cropping image.
following is our fabrics crash Track
TKImageView.m line 867
-[TKImageView setToCropImage:]

Fatal Exception: CALayerInvalidGeometry
CALayer position contains NaN: [nan 301]

0 CoreFoundation __exceptionPreprocess
1 libobjc.A.dylib objc_exception_throw
2 CoreFoundation -[NSException initWithCoder:]
3 QuartzCore CA::Layer::set_position(CA::Vec2 const&, bool)
4 QuartzCore -[CALayer setPosition:]
5 QuartzCore -[CALayer setFrame:]
6 UIKit -[UIView(Geometry) setFrame:]
7 UIKit -[UIImageView _setViewGeometry:forMetric:]
8 iFax iOS TKImageView.m line 867-[TKImageView setToCropImage:]
9 iFax iOS EditImageViewController.swift line 177specialized EditImageViewController.btn_Crop(UIBarButtonItem) -> ()
10 iFax iOS EditImageViewController.swift line 0@objc EditImageViewController.btn_Crop(UIBarButtonItem) -> ()
11 UIKit -[UIApplication sendAction:to:from:forEvent:]
12 UIKit -[UIBarButtonItem(UIInternal) _sendAction:withEvent:]
13 UIKit -[UIApplication sendAction:to:from:forEvent:]
14 UIKit -[UIControl sendAction:to:forEvent:]
15 UIKit -[UIControl _sendActionsForEvents:withEvent:]
16 UIKit -[UIControl _sendActionsForEvents:withEvent:]
17 UIKit -[UIControl touchesEnded:withEvent:]
18 UIKit _UIGestureEnvironmentSortAndSendDelayedTouches
19 UIKit _UIGestureEnvironmentUpdate
20 CoreFoundation CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
21 CoreFoundation __CFRunLoopDoObservers
22 CoreFoundation __CFRunLoopRun
23 CoreFoundation CFRunLoopRunSpecific
24 GraphicsServices GSEventRunModal
25 UIKit UIApplicationMain
26 iFax iOS AppDelegate.swift line 106main
27 libdyld.dylib start
@ghost
Copy link
Author

ghost commented Oct 13, 2017

Any Solution to Above Issue.

@3tinkers
Copy link
Owner

Hi @moontecholabs ,
Does it crash any time or just in special cases?
Could you please tell me more about this bug, like iOS version and screenshots?

@ghost
Copy link
Author

ghost commented Oct 17, 2017

yes this is random Crash and found in ios 9,10,11. we didn't have screenshots.because it is random Crash.and mostly generated in Live User device

@3tinkers
Copy link
Owner

@moontecholabs ok, could you paste your config of TKImageView? lineWidth, borderWidth....

@3tinkers
Copy link
Owner

And your app's name, I'll download and test it to replay the crash.

@ghost
Copy link
Author

ghost commented Oct 17, 2017

cropView.toCropImage = image_editing.image
// cropView.toCropImage = self.default_image
toolBar.isHidden = true
cropView.cropAreaCornerWidth = 22
cropView.cropAreaCornerHeight = 22
cropView.minSpace = 30
cropView.cropAreaCornerLineColor = UIColor.yellow
cropView.cropAreaBorderLineColor = UIColor.yellow
cropView.cropAreaCornerLineWidth = 4
cropView.cropAreaBorderLineWidth = 1
cropView.cropAreaMidLineWidth = 25
cropView.cropAreaMidLineHeight = 4
cropView.cropAreaMidLineColor = UIColor.yellow
cropView.showMidLines = true

@ghost
Copy link
Author

ghost commented Oct 17, 2017 via email

@3tinkers
Copy link
Owner

Got it.I'll check and fix it.

@ghost
Copy link
Author

ghost commented Oct 17, 2017 via email

@ghost
Copy link
Author

ghost commented Oct 24, 2017

Thanks for looking into my request. May I know expected update date? So my team can update pod Regards, iFax Team

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

No branches or pull requests

1 participant