Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] PWA crashes with "Aw, Snap!" (Trace Viewer) #33219

Closed
uzairasa opened this issue Oct 22, 2024 · 2 comments
Closed

[BUG] PWA crashes with "Aw, Snap!" (Trace Viewer) #33219

uzairasa opened this issue Oct 22, 2024 · 2 comments
Assignees
Labels

Comments

@uzairasa
Copy link

uzairasa commented Oct 22, 2024

Hello,

My tests are running fine in headless and headed mode but whenever, i try to open the generated traces, the PWA crashes and I have no logs expect the "Aw snap" Chrome screen.
In the Trace Viewer, the crashes seem to occur when tracer runs for sometime let's say 10 minutes

I have noticed that my CPU load goes quite high in UI mode so I guess it is performance related.

System info
Playwright Version: [v1.48.1]
Operating System: [macOS 14.7]
Browser: [Chromium]

Screenshot : Image

Config file

const { defineConfig, devices } = require("@playwright/test");
const dotenv = require("dotenv");

// Load the correct .env file based on the environment
const ENV = process.env.ENV || "stage"; // Default to 'stage' if ENV is not set
dotenv.config({ path: `.env.${ENV}` });

module.exports = defineConfig({
  testDir: "./tests/e2e",
  retries: 0,
  timeout: 10 * 60 * 1000,
  fullyParallel: true,
  workers: 5,
  globalSetup: require.resolve("./global-setup"),
  globalTeardown: require.resolve("./global-teardown"),
  expect: {
    timeout: 15 * 1000,
  },
  reporter: [
    ["json", { outputFile: "tests/ctrf/ctrf-report.json" }],
    ["list"],
    ["allure-playwright"],
  ],
  use: {
    baseURL: process.env.BASE_URL, // Use the baseURL from the environment
    trace: "on",
    headless: true,
    screenshot: "only-on-failure",
    video: "retain-on-failure",
    ignoreHTTPSErrors: true,
    actionTimeout: 80 * 1000,
    navigationTimeout: 30 * 1000,
  }
});

@uzairasa uzairasa changed the title [BUG] PWA crashes with "aw snap" (Trace Viewer) [BUG] PWA crashes with "Aw, Snap!" (Trace Viewer) Oct 22, 2024
@mxschmitt
Copy link
Member

Thanks for filing, we have a suspicion on whats causing it. After we fixed it in our Canary we'll get back to you so you can test it out and see if it helps. No action needed from your side for now. Thanks!

@dgozman
Copy link
Contributor

dgozman commented Oct 23, 2024

Merging into #33086.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants