thexande/SwiftAlgorithms

App crash while clicking multiple time

hadanischal opened this issue · 1 comments

2020-02-06 16:44:21.860699+1100 swift_algorithms[45276:884289] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '<UINavigationController: 0x7fd44f81a400> is pushing the same view controller instance (<swift_algorithms.MarkdownPresentationViewController: 0x7fd451905d00>) more than once which is not supported and is most likely an error in the application : com.thexande.swift-algorithms'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000010e89c27e __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x000000010e709b20 objc_exception_throw + 48
	2   UIKitCore                           0x000000011229acfb -[UINavigationController pushViewController:transition:forceImmediate:] + 451
	3   UIKitCore                           0x000000011229a9a4 -[UINavigationController pushViewController:animated:] + 669
	4   UIKitCore                           0x0000000112361124 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 294
	5   UIKitCore                           0x000000011235d1f2 -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 126
	6   UIKitCore                           0x000000011235cf57 -[_UIViewControllerTransitionContext completeTransition:] + 104
	7   UIKitCore                           0x000000011236dfc0 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke.121 + 843
	8   UIKitCore                           0x0000000112e8a908 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 671
	9   UIKitCore                           0x0000000112e5af31 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 268
	10  UIKitCore                           0x0000000112e5b4a3 -[UIViewAnimationState animationDidStop:finished:] + 259
	11  UIKitCore                           0x0000000112e5b62a -[UIViewAnimationState animationDidStop:finished:] + 650
	12  QuartzCore                          0x000000010e4f496c _ZN2CA5Layer23run_animation_callbacksEPv + 306
	13  libdispatch.dylib                   0x0000000110f58d48 _dispatch_client_callout + 8
	14  libdispatch.dylib                   0x0000000110f66de6 _dispatch_main_queue_callback_4CF + 1500
	15  CoreFoundation                      0x000000010e7ff049 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	16  CoreFoundation                      0x000000010e7f9ca9 __CFRunLoopRun + 2329
	17  CoreFoundation                      0x000000010e7f9066 CFRunLoopRunSpecific + 438
	18  GraphicsServices                    0x0000000117f65bb0 GSEventRunModal + 65
	19  UIKitCore                           0x00000001129b1d4d UIApplicationMain + 1621
	20  swift_algorithms                    0x000000010ca50cab main + 75
	21  libdyld.dylib                       0x0000000110fe0c25 start + 1
	22  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

I have attached GIF file

MarkdownPresentationViewController_Feb-06-2020 16-48-28

Is this issue open?
If yes, can I work on this?