Skip to content

Infrequent Headless Aborted #3769

@nathan-ahn

Description

@nathan-ahn

Description

Hey William! I have another fun headless edge case to report. We're seeing intermittent headless crashes for the past few weeks. If I were to ballpark, these are on the scale of 1 in 10,000 renders. We've just recently upgraded to v2.5.3 (from v2.2.14) and now have a somewhat more useful error message to report.

Before this upgrade, we've been seeing vague error messages of [RuntimeError: memory access out of bounds] { componentStack: '\nu8t' } and table index is out of bounds (which may or may not be related to this new issue). The most recent errors that we've been seeing are Aborted(). Build with -sASSERTIONS for more info. and Cannot read properties of null (reading 'getCanvas').

These are running on AWS Lambda infrastructure, which is likely where the safeguards are coming from to prevent out of bounds memory access.

I apologize bringing this issue up with such little reproducibility. I'm open to any hints as to where we can experiment, or steps we can take to improve future debugging. Totally understandable if this issue is out of scope considering the lack of reproducibility here.

React Native Skia Version

2.5.3

React Native Version

N/A

Using New Architecture

  • Enabled

Steps to Reproduce

Large-scale rendering on AWS Lambda. Unfortunately, this issue is so intermittent and infrequent that I don't think it'd be feasible to reproduce. We'll likely need a few days of production deployment to validate any potential solutions here.

Snack, Code Example, Screenshot, or Link to Repository

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions