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

fix(ios): crash due to persistent keyPath observer #600

Merged
merged 1 commit into from Jan 2, 2018
Merged

fix(ios): crash due to persistent keyPath observer #600

merged 1 commit into from Jan 2, 2018

Conversation

awitherow
Copy link
Contributor

@nicolai86 discovered a bug where the video player was crashing our application.

@asgvard
Copy link

asgvard commented Jun 7, 2017

Quite important fix. With upgrading to RN 0.45 it crashes every single time I deallocate the video, looking forward for this one to be merged.

@awitherow
Copy link
Contributor Author

It's been over a month... time to ping.

@brentvatne
@dabit3
@GantMan
@ide
@knowbody
@satya164
@oblador
@magicismight
@Kureev

can one of you look into this as you're the only people with merge rights, from what I understand.

@satya164 satya164 requested a review from brentvatne June 8, 2017 10:16
Copy link

@GantMan GantMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@brentvatne
Copy link
Contributor

brentvatne commented Jun 8, 2017

I don't work on this library anymore so I'm hesitant to merge this. I have given a few other people collaborator status on this project but I'm not sure how active they are anymore. If anybody is interested in becoming a collaborator/maintainer/whatever you want to call it on this project, let me know.

@awitherow
Copy link
Contributor Author

After doing 2 minutes of reading and attempting to understand, here is what I found out.

There is a related issue.

#43

which has a fixing commit >

c5eb6b4#diff-a487e217f78006f9dbd4a4808a7400eeR107

which seems to take care of it mostly, but not fully... which is why this PR was created.

This PR just further extends removePlayerItemObservers to not only remove the PlayerItem, but also a PlayerLayer, which will remove the complete player, not just the internal Item of the layer, from the keypath observer.

@nicolai86 does this summarise the implementation or have I got it all wrong?

If this is correct, does this satisfy your uncertainty @brentvatne?

@brentvatne
Copy link
Contributor

@awitherow - I don't really want to merge this because I haven't contributed to this project in over a year and I don't think it's my place. I also don't have time to test this. We use a different video implementation on expo.io which is why I wanted to move this repo to react-native-community and onboard other people to the project. If none of them are active anymore I can onboard some more contributors but I won't merge this PR and update the release myself.

@onchainguy-btc
Copy link

@awitherow would be really awesome if this one could be merged. We are using this library in more than 5 productive apps. Unfortunately we have to use our own fork where this PR is merged because otherwise we have crashes for about 5% of our users all the time. With this PR there is no crash and the library works perfectly.

@garthenweb
Copy link

@mattapperson would it be possible to get this merged? I think there are some good reactions to this fix and others could profit from it. We have it in production for 7 months now and cannot see any issues anymore :) Would be really nice if you could find the time to have a look at it!

@mattapperson mattapperson merged commit 093ffcc into TheWidlarzGroup:master Jan 2, 2018
@awitherow
Copy link
Contributor Author

nice that it was finally merged @garthenweb 🎉

ahmetardal added a commit to svhawks/react-native-video that referenced this pull request Jan 14, 2018
AndrewJack pushed a commit to drivetribe/react-native-video that referenced this pull request Jan 19, 2018
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

Successfully merging this pull request may close these issues.

8 participants