Skip to content

Camera plugin on iOS is not thread-safe and susceptible to data races and crashes. #52578

@chinmaygarde

Description

@chinmaygarde

The camera plugin dispatches all method call handling to a dispatch queue. However, one the operations that may happen on the dispatch queue is to register a camera texture with the engine. This operation is only safe on the platform thread (the UIKit main thread). Data races arising from this may cause instability in the engine as it manages its internal texture registry or crashes if a registration is in progress when the engine is shutting down.

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consolec: fatal crashCrashes that terminate the processp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions