Skip to content

Fatal crash: NSFileHandleOperationException in MediaFileHandle.append(data:) (line 74) #38

Description

@hayden-cantina

Overview

We’re seeing a production crash on CachingPlayerItem 2.2.0 (cc00381e252ac9b2a7b691e1da6a598bd7517bdc):

Fatal Exception: NSFileHandleOperationException
at -[NSConcreteFileHandle writeData:]

The crash resolves to:

Called from:

Request

Would you consider handling NSFileHandleOperationException from this write path and routing it through the existing failure flow (downloadFailed(with:)) instead of crashing the process?

A minimal approach would be an Objective-C safe-write wrapper (@try/@catch) around seekToEndOfFile + writeData, returning an NSError to Swift, then calling downloadFailed(with:) when write fails.

Thank you for your consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions