React-native-youtube: Crashes in iOS12. Gives EXC_BAD_ACCESS randomly on multiple threads.

Created on 6 Nov 2018  路  11Comments  路  Source: davidohayon669/react-native-youtube

It gives EXC_BAD_ACCESS on multiple places only in XCode 10 & iOS12. I have attached one sample of that thread. It gives this kind of bad access crashes. Please do the required support for iOS 12.

youtube_thread

My XCode version : 10
iOS : 12
React native version : 0.55.4

Most helpful comment

after struggling with this for a couple of days. Finally, following resolved this for me

https://github.com/youtube/youtube-ios-player-helper/pull/331
https://github.com/youtube/youtube-ios-player-helper/pull/331/commits/9a0d4eb40991107ab63b0a2aaf8681470f827804

Hope someone found this helpful.

All 11 comments

+1 also have crashes on iOS12 only

+1

Has anyone found a solution to this?

+1 our team is hitting this same issue when users close the full screen YT video player and then try to play the video again, but the crash is intermittent. Please @inProgress-team see if you can address this issue soon, and let me know if our team can help in some way. thanks!

after struggling with this for a couple of days. Finally, following resolved this for me

https://github.com/youtube/youtube-ios-player-helper/pull/331
https://github.com/youtube/youtube-ios-player-helper/pull/331/commits/9a0d4eb40991107ab63b0a2aaf8681470f827804

Hope someone found this helpful.

@manikmahajan65 I made the changes from the PR you linked, but all that renders is a blank white box. Is there a step I'm missing?

@joebochill Simply updating YTPlayerView.h and YTPlayerView.m files, will work

Same as @joebochill I get a blank video replacing YTPlayerView.h and YTPlayerView.m.
@manikmahajan65 if that works for you, could you please create a PR in that repo? I could test that again in my app

@rnowm I didn't completely replace the files but updated all the corresponding references by reading through the git diff he linked to. Did the trick for me.

If you guys like, I will commit the changes to a fork and you all can try implementing that version of the module. If it works, I'll submit a PR.

I have been using this fork GroupXTech/react-native-youtube for a while with no significant issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthiasleitner picture matthiasleitner  路  5Comments

nhcuong95 picture nhcuong95  路  5Comments

ishita-kothari picture ishita-kothari  路  5Comments

serialbandicoot picture serialbandicoot  路  4Comments

RetroPronghorn picture RetroPronghorn  路  3Comments