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

Getting crash when failed to identify edges. #11

Open
chetan-yg opened this issue May 4, 2017 · 2 comments
Open

Getting crash when failed to identify edges. #11

chetan-yg opened this issue May 4, 2017 · 2 comments

Comments

@chetan-yg
Copy link

chetan-yg commented May 4, 2017

Hi, Sometimes app getting failed to identify the edge and its getting crash. In Log is displays Missing 1, Missing 2 ( NSLog(@"MISSING %i", i);), then its crash. Below I have included Log.

The app was working fine before updating to swift2.3 to swift 3 (i have created bridge header) and Xcode to 8.3.2.

Crash due to signal: SIGSEGV(SEGV_MAPERR) at 10874c020
0   CoreGraphics                    argb32_mark + 12452
1   CoreGraphics                    RIPLayerBltShape + 1084
2   CoreGraphics                    ripc_Render + 284
3   CoreGraphics                    ripc_DrawRects + 324
4   CoreGraphics                    CGContextFillRects + 104
5   CoreGraphics                    CGContextFillRect + 52
6   myApp                           -[MMCropView drawRect:] (MMCropView.m:258)
7   myApp                           -[CropViewController detectEdges] (CropViewController.mm:302)
8   myApp                           -[CropViewController viewWillAppear:] (CropViewController.mm:57)
9   UIKit                           -[UIViewController _setViewAppearState:isAnimating:] + 632
10  UIKit                           -[UIViewController __viewWillAppear:] + 156
11  UIKit                           __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 1088
12  UIKit                           _runAfterCACommitDeferredBlocks + 292
13  UIKit                           _cleanUpAfterCAFlushAndRunDeferredBlocks + 528
14  UIKit                           _afterCACommitHandler + 132
15  CoreFoundation                  __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
16  CoreFoundation                  __CFRunLoopDoObservers + 372
17  CoreFoundation                  __CFRunLoopRun + 956
18  CoreFoundation                  CFRunLoopRunSpecific + 424
19  GraphicsServices                GSEventRunModal + 100
20  UIKit                           UIApplicationMain + 208
21  myApp                           main (LocaleMapperServiceImpl.swift:20)
22  libdyld.dylib                   start + 4

Is there any way to handle it or fix it? Please let me know if you need any additional information. Thank you.

@manpreetg
Copy link

Do you found any solution?

@chetan-yg
Copy link
Author

Not yet, only alternative way to make it work is by disabling auto edge detection and only allowing manual crop.

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

2 participants