Skip to content

Electron 34.x mysteriously crashes with Invoke in DisallowJavascriptExecutionScope #45416

Closed

Description

@Nantris

Preflight Checklist

Electron Version

34.0.2

What operating system(s) are you using?

Ubuntu

Operating System Version

Linux ubuntu 6.8.0-52-generic #53-Ubuntu SMP PREEMPT_DYNAMIC Sat Jan 11 00:06:25 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

What arch are you using?

x64

Last Known Working Electron version

33.3.x (Which we can't even roll back to due to #43400)

Expected Behavior

Using IPC does not mysteriously lead to this untraceable crash.

Actual Behavior

Following printed in console, followed by renderer-process-gone and no attributable cause:

# Fatal error in , line 0
# Invoke in DisallowJavascriptExecutionScope

Testcase Gist URL

No response

Additional Information

Suspected related to this change: #45229

Activity

  1. moved this to 👀 Unsorted Items in 34-x-yon Feb 1, 2025
  2. added
    blocked/need-repro
    on Feb 1, 2025
  3. electron-issue-triage commented on Feb 1, 2025

    @electron-issue-triage

    Hello @Nantris. Thanks for reporting this and helping to make Electron better!

    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.

    Now adding the blocked/need-repro Needs a test case to reproduce the bug label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

  4. Nantris commented on Feb 1, 2025

    @Nantris
    ContributorAuthor

    It's not remotely clear what causes this issue so it's not remotely clear how a repro could be produced.

  5. removed
    blocked/need-repro
    on Feb 1, 2025
  6. Nantris commented on Feb 2, 2025

    @Nantris
    ContributorAuthor

    Seems like this only occurs when devtools is open during certain IPC calls? But I haven't the faintest clue how I'd track it down more than that since the renderer crashes.

  7. Nantris commented on Feb 2, 2025

    @Nantris
    ContributorAuthor

    @samuelmaddock any thoughts on how this might occur? It seems quite probable this is related to #45229 but truly understanding how that leads to this effect is way beyond my pay grade.

  8. nikwen commented on Feb 2, 2025

    @nikwen
    Member

    It's not remotely clear what causes this issue so it's not remotely clear how a repro could be produced.

    Maintainers need a simple code example to trigger the issue. Otherwise, they have no way of fixing it.

    The best way is to create one via Electron Fiddle.

  9. added
    blocked/need-repro
    on Feb 2, 2025
  10. samuelmaddock commented on Feb 2, 2025

    @samuelmaddock
    Member

    @samuelmaddock any thoughts on how this might occur? It seems quite probable this is related to #45229 but truly understanding how that leads to this effect is way beyond my pay grade.

    It's unlikely this is related as it's scheduled for release in Electron v35.

    If you're able to capture a full native call stack, that could help determine what code is causing this. As @nikwen said, an Electron Fiddle gist is the best way for us to determine the cause.

  11. nikwen commented on Mar 1, 2025

    @nikwen
    Member

    Without a way to reproduce this issue, maintainers are unfortunately unable to take action.

    Please open a new issue when you have a way to reproduce the issue.

  12. removed
    blocked/need-repro
    on Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions