HeroTransitions / Hero Public
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
Crash during transition #171
Comments
I have the same issue: it crashes here: https://github.com/lkzhao/Hero/blob/master/Sources/Extensions/UIView%2BHero.swift#L74 |
I have the same issue and also a strange Crash on https://github.com/lkzhao/Hero/blob/master/Sources/Hero.swift#L141 |
I'm using Crashlytics and I got a popular crash on UIView+Hero.swift |
I've got a similar crash using Hero 0.3.6:
|
Here's another report of (probably) the same bug.
|
Same crash happening here:
|
Any news about it ? |
anything that solved this crash ? |
@lkzhao Why is this closed? It needs to be re-opened.
|
@kylebrowning Can you checkout the master version and see if it is still crashing for you. We dont use force unwrap when calling |
@lkzhao Thank you for the quick response. I just took a look at the master branch. It's still being force unwrapped. https://github.com/lkzhao/Hero/blob/master/Sources/HeroContext.swift#L212 |
This is still an issue https://github.com/lkzhao/Hero/blob/master/Sources/HeroContext.swift#L212 |
I'm a bit too busy to make and test a fix, I have this ear marked for 1.7.0. |
Hi,
I'm having the following crash, sometimes in a transition:
Crashed: com.apple.main-thread
0 Hero 0x102bc6940 HeroContext.snapshotView(for : UIView) -> UIView (HeroContext.swift:182)
1 Hero 0x102bfdbbc HeroDefaultAnimator.animate(view : UIView, appearing : Bool) -> () (HeroDefaultAnimator.swift:107)
2 Hero 0x102bfcea0 HeroDefaultAnimator.animate(fromViews : [UIView], toViews : [UIView]) -> Double (HeroDefaultAnimator.swift)
3 Hero 0x102bfe670 protocol witness for HeroAnimator.animate(fromViews : [UIView], toViews : [UIView]) -> Double in conformance <A where ...> HeroDefaultAnimator (HeroDefaultAnimator.swift)
4 Hero 0x102bbedc0 HeroBaseController.animate() -> () (HeroBaseController.swift:307)
5 Hero 0x102bbef80 @objc HeroBaseController.animate() -> () (HeroBaseController.swift)
6 Hero 0x102bb30fc Hero.animate() -> () (Hero.swift:202)
7 Hero 0x102bb34cc @objc Hero.animate() -> () (Hero.swift)
8 Hero 0x102bb2b54 Hero.start() -> () (Hero.swift:189)
9 Hero 0x102bb2cfc @objc Hero.start() -> () (Hero.swift)
10 Hero 0x102bb6078 @objc Hero.animateTransition(using : UIViewControllerContextTransitioning) -> () (Hero.swift)
11 UIKit 0x18d10d30c __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 2128
12 UIKit 0x18d04ffdc _runAfterCACommitDeferredBlocks + 292
13 UIKit 0x18d041d50 _cleanUpAfterCAFlushAndRunDeferredBlocks + 560
14 UIKit 0x18cdb10b4 _afterCACommitHandler + 168
15 CoreFoundation 0x186eb60c0 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32
16 CoreFoundation 0x186eb3cf0 __CFRunLoopDoObservers + 372
17 CoreFoundation 0x186eb4180 __CFRunLoopRun + 1024
18 CoreFoundation 0x186de22b8 CFRunLoopRunSpecific + 444
19 GraphicsServices 0x188896198 GSEventRunModal + 180
20 UIKit 0x18ce297fc -[UIApplication _run] + 684
21 UIKit 0x18ce24534 UIApplicationMain + 208
22 Grability 0x1003edb24 main (main.m:17)
23 libdispatch.dylib 0x185dc55b8 (Missing)
The text was updated successfully, but these errors were encountered: