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

NSInvalidArgumentException: *** -[NSURL initFileURLWithPath:]: nil string parameter #6233

Closed
sentry-io bot opened this issue Sep 26, 2023 · 0 comments · Fixed by WordPress/gutenberg#54834

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 26, 2023

Sentry Issue: JETPACK-IOS-1521

NSInvalidArgumentException: *** -[NSURL initFileURLWithPath:]: nil string parameter
  ?, in -[RCTVideo playerItemForSource:withCallback:]
  ?, in __19-[RCTVideo setSrc:]_block_invoke
  File "main.swift", line 7, in main
...
(12 additional frame(s) were not displayed)

Description

The associated UI test uncovered this crash because the rate at which it types a valid URL results in lost characters. I.e. http://valid.com/url.mp4 is typed, but h://valid.com/url.mp4 is captured.

So, there are two issue:

  1. Characters are dropped when typing rapidly.
  2. Invalid URLs result in crashes.

Steps to Reproduce

  1. Add a Video block.
  2. Choose "Insert from URL."
  3. Type h://bogus.com/v.mp4.
  4. Dismiss the bottom sheet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant