Skip to content

[Bug]: takeHeapSnapshot failed without reasons #28758

Closed

Description

@ervinewell

Preflight Checklist

Electron Version

11.4.2

What operating system are you using?

macOS

Operating System Version

macOS big sur 11.2.3

What arch are you using?

x64

Last Known Working Electron version

11.4.2

Expected Behavior

Contents.takeHeapSnapshot works well

window.require('electron').remote.getCurrentWindow().webContents.takeHeapSnapshot('/Users/weirusong/Desktop/snapshot').then(console.log).catch(console.log)

Actual Behavior

Error: takeHeapSnapshot failed
at electron/js2c/browser_init.js:213
at IpcMainImpl. (electron/js2c/browser_init.js:213)
at IpcMainImpl.emit (events.js:315)
at Object. (electron/js2c/browser_init.js:157)
at Object.emit (events.js:315)

Uploading image.png…

Testcase Gist URL

No response

Activity

  1. mlaurencin commented on Apr 27, 2021

    @mlaurencin
    Member

    Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

    Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

    I'm setting the blocked/need-repro label for the above reasons. After you've responded, please @ me in a follow-up comment.

    Thanks in advance! Your help is appreciated.

  2. added
    blocked/need-repro
    on Apr 27, 2021
  3. codebytere commented on Jun 21, 2021

    @codebytere
    Member

    Closing as no response was provided. However, we can always re-open this should more information come to light.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    11-x-yblocked/need-reprobug 🪲platform/macOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions