wordpress-mobile / wordpress-mobile/WordPress-iOS

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

Open
#22,251 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Crash Posting/Editing
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

Sentry Issue: WORDPRESS-IOS-46M5

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Sentry report and trace RCTVideo playerItemForSource:withCallback: and the setSrc: block shown in the stack trace. Reproduce the nil path condition if possible, then verify that the reported NSInvalidArgumentException no longer occurs for the affected video source.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.