Skip to content

"Fatal trace logic error - child cannot end after parent" #16419

@connorjclark

Description

@connorjclark

Seen on cnn.com

artifacts (too large to upload here): https://drive.google.com/file/d/1uKYclXCn3pIC2G8XeW9rylr0fgQg1bq8/view?usp=drive_link&resourcekey=0-6ZT4aLzL_ZjPBHCA-Kie6w

Error: Fatal trace logic error - child cannot end after parent
    at MainThreadTasks._computeRecursiveSelfTime (file:///Users/cjamcl/src/lighthouse/core/lib/tracehouse/main-thread-tasks.js:411:13)
    at file:///Users/cjamcl/src/lighthouse/core/lib/tracehouse/main-thread-tasks.js:415:37
    at Array.map (<anonymous>)
    at MainThreadTasks._computeRecursiveSelfTime (file:///Users/cjamcl/src/lighthouse/core/lib/tracehouse/main-thread-tasks.js:415:8)
    at file:///Users/cjamcl/src/lighthouse/core/lib/tracehouse/main-thread-tasks.js:415:37
    at Array.map (<anonymous>)
    at MainThreadTasks._computeRecursiveSelfTime (file:///Users/cjamcl/src/lighthouse/core/lib/tracehouse/main-thread-tasks.js:415:8)
    at file:///Users/cjamcl/src/lighthouse/core/lib/tracehouse/main-thread-tasks.js:415:37
    at Array.map (<anonymous>)
    at MainThreadTasks._computeRecursiveSelfTime (file:///Users/cjamcl/src/lighthouse/core/lib/tracehouse/main-thread-tasks.js:415:8)

throw new Error('Fatal trace logic error - child cannot end after parent');

task.event

{
  args: {
    data: {
      contextType: "default",
      frame: "D90A4C181D6B123AE39530B80ADA1E03",
      frameType: "page",
      isDefault: true,
      isolate: 791638396297437300,
      origin: "https://www.cnn.com",
      scriptId: 52,
      url: "https://www.cnn.com/",
      v8context: "6EA119136A425248946B8A9E26DA5391",
    },
  },
  cat: "disabled-by-default-devtools.target-rundown",
  dur: 140449,
  name: "ScriptCompiled",
  ph: "X",
  pid: 21241,
  tdur: 139884,
  tid: 18729056,
  ts: 181415935839,
  tts: 1275591,
}

parent.event

{
  args: {
    data: {
      columnNumber: 34,
      frame: "D90A4C181D6B123AE39530B80ADA1E03",
      lineNumber: 14304,
      sampleTraceId: 8822623432508724,
      url: "https://www.cnn.com/",
    },
  },
  cat: "devtools.timeline",
  dur: 173641,
  name: "EvaluateScript",
  ph: "X",
  pid: 21241,
  tdur: 173005,
  tid: 18729056,
  ts: 181415902647,
  tts: 1242470,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions