critical

Error: page.goto: Page crashed!

The browser page crashed during execution. This is typically caused by out-of-memory conditions or browser bugs.

Common Causes

  1. 1Page consumes too much memory (large images, data sets, or memory leaks)
  2. 2Browser version incompatibility
  3. 3Running too many browser contexts in parallel
  4. 4Corrupted browser installation
  5. 5GPU-related crash in headless mode

How to Fix

Increase available memory and disable GPU

const browser = await chromium.launch({
  args: ['--disable-gpu', '--no-sandbox', '--disable-dev-shm-usage'],
});

Common fix for Docker/CI environments where /dev/shm is too small.

Reduce parallelism

// playwright.config.ts
export default defineConfig({
  workers: 2, // reduce from default
  fullyParallel: false,
});

Fewer parallel workers means less memory consumption.

How ObserveOne Helps

ObserveOne tracks browser resource usage during test execution and alerts when memory thresholds are approaching critical levels.

Start Monitoring Free

Related Errors