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

Crash on "Remove Gesture when deinit" #70

Open
goktugaral opened this issue Nov 13, 2017 · 10 comments
Open

Crash on "Remove Gesture when deinit" #70

goktugaral opened this issue Nov 13, 2017 · 10 comments

Comments

@goktugaral
Copy link

goktugaral commented Nov 13, 2017

Hello,

I updated the pod to latest version and I got this crash on deinit func. It wasn't occur earlier version and I examined the relaese notes.

I saw there is a method added, on v.2.0.0
Commits on Mar 22, 2017 @ANNotunzdY "Remove Gesture when deinit" c0d38c5

deinit {
		NotificationCenter.default.removeObserver(self)
		if let panGesture = panGesture {
			scrollView.removeGestureRecognizer(panGesture)
		}
	}

"Fatal error: Attempted to read an unowned reference but the object was already deallocated"

Could you check please?
Thank you.

@alexliubj
Copy link

Same here.

@nickseidel
Copy link

same.

@darehui
Copy link

darehui commented Nov 16, 2018

same here, so anyone slove this problem?

@mkeremkeskin
Copy link

Hello any updates on this issue?

I'm using 1.0.0 release and I want to update pod, but this issue prevents me doing it. I've look in to the commits and I guess this is not fixed.

Thanks already.

@alexliubj
Copy link

@mkeremkeskin I just got rid of this library and implemented something similar manually by my own.

@hsncr
Copy link

hsncr commented Sep 15, 2019

it is an old issue but probably you have a leak and your viewcontroller deinit is not called. So it crashes the library.

@finer-details
Copy link

@mkeremkeskin I just got rid of this library and implemented something similar manually by my own.

I'm having the same issues, running Swift 5.4 on an iPhone XS and updated the files to this version of Swift. Have it working nice and smooth, but I'm getting this error after moving into UIViewController2 then moving back to the original ViewController ... and... here's the problem .... I re-enter this UIViewController2 and I get 'the' error.
I'm presuming it is an init or deinit problem with that I am reading.
I'm not very experienced, just learning with every problem. Whether it is a problem on the first or second ViewController.

Would it be possible for you to direct me in the right direction with this part of the coding issue you resolved?
Thanks in advance.

@mkeremkeskin
Copy link

@finer-details Actually I removed this pod back then and implemented my own solution.

@finer-details
Copy link

@mkeremkeskin Actually I removed this pod back then and implemented my own solution.
I understand. I keep playing around with it and post on here if and when I find the answer.
Thanks again.

@bommateja
Copy link

I am also facing same issue, some one can resolve it please.
@tristanhimmelman
@sotozaki
@jeffaburt
@ReadmeCritic

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

8 participants