Automattic / Automattic/studio

Importing .wpress backup >2GB crashes Studio with Node fs.read Int32 assertion

Closed
#4,387 1 comment 0 reactions 0 assignees View on GitHub
[Status] Auto-allocated Bug YOLO
Dominant language
TypeScript
Stars
517
Forks
95
Avg merge
1d 22h
Merged PRs (30d)
162

Description

### Quick summary

Unable to import a .wpress backup file that's more than 2GB because it crashes the import process

### Steps to reproduce

Steps done:

1. Create a WordPress site in Studio
2. Select Import
3. Import a `.wpress` backup file larger than 2 GB
4. Wait for the import process

### What you expected to happen

Studio should import the `.wpress` backup successfully or provide a user-facing error explaining that the file size is unsupported.

### What actually happened

The import process crashed:

it showed an error involving "[stderr]
Assertion failed: args[3]->IsInt32()"

### App or CLI?

Studio App

### Version

1.17.0

### Impact

One

### Available workarounds?

No but the app is still usable

### Platform

_No response_

### Architecture

None

### Logs or notes

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Studio App import with a .wpress backup larger than 2 GB and capture the Node fs.read assertion. Trace the import path that handles the backup and determine whether the app can complete the import or present a user-facing unsupported-size error. Done means the crash no longer occurs and the expected outcome is covered by a suitable test or reproduction check.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, node.js, typescript, wordpress
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.