-
Notifications
You must be signed in to change notification settings - Fork 9
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
[BUG] crash on iOS with new arch #48
Comments
Hey @chriszs, I'll be on PTO from today until the end of the month. The rest of my team is aware of this and will look into it. I'm just giving you a heads-up if you don't see any motion for a bit. This may become a larger issue as supporting the architecture will require some major refactoring of our classes (or at least that was my understanding the last time I read through the docs). |
@Jmilham21 That may no longer be the case with the Interop Layer, which in some cases requires almost no changes at all (see this five line change to enable it for Auth0, for instance), and those docs have evolved a ton, but I haven't yet confirmed that for JWPlayer. For me, this is not a priority, because in order to enable new arch multiple third party libraries would have to fix issues. But new arch will be the default when scaffolding new projects in the next major release of React Native (release date: TBA), and I suspect this particular crash could be relatively straightforward to address (though there can always be unforeseen complications). |
Describe the bug
App crashes with
Attempted to dereference null pointer.
when new arch/bridgeless is enabled and JWPlayer is viewed.The crash appears to be in a string length check called indirectly by
parseExportedMethods
with a method selector ofsetUpCastController
, a method signature ofnil
and a return type ofv
(void?), when attempting to call the signature. See below for screenshot.If I had to guess, this may be because the cast methods are conditionally defined by
#if USE_GOOGLE_CAST
but the exported React Native method signatures may not be.To Reproduce
Steps to reproduce the behavior:
Expected behavior
No crash.
Screenshots / Visual evidence
![Screenshot 2024-06-12 at 2 11 54 AM](https://private-user-images.githubusercontent.com/1103467/338843248-d449fceb-05a0-49d3-859d-3caa39e6688c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MzUxMDQsIm5iZiI6MTczODgzNDgwNCwicGF0aCI6Ii8xMTAzNDY3LzMzODg0MzI0OC1kNDQ5ZmNlYi0wNWEwLTQ5ZDMtODU5ZC0zY2FhMzllNjY4OGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMDk0MDA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmVhNTdjODRjYmMwNjVjYTEwODVkODE2ODg1MTVhOGJmNTU0ZTJjMzYyMTk2M2VlZjc1ODgzZTJmNzIzNDk1MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.x6niiukkC_QXwYyAHOyATI71TI-3WiJf2a4L-5o4Ia4)
Error occurs during a call on line 126 in the screenshot above.
The text was updated successfully, but these errors were encountered: