Skip to content

Start the Fantom tester's inspector only for --inspectorPort - #59711

Open
lazerg wants to merge 1 commit into
react:mainfrom
lazerg:fix/fantom-tester-inspector
Open

lazerg wants to merge 1 commit into
react:mainfrom
lazerg:fix/fantom-tester-inspector

Conversation

@lazerg

@lazerg lazerg commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Summary:

Fantom's tester is a Debug build, and in Debug ReactInstanceConfig turns the inspector on by default, so every tester starts one even without --inspectorPort. With an inspector, the runtime scheduler's tasks wait until the inspector thread registers the runtime. If that thread is late, loadScript drains an empty queue, runtime_ stays null, and loadScriptAndRunTests crashes with SIGSEGV. It shows up when many testers run at once.

This sets enableInspector = false in the tester's config, so the inspector only starts for --inspectorPort, as the code below it already expects.

Fixes #59695

Changelog:

[INTERNAL] [FIXED] - Start the Fantom tester's inspector only for --inspectorPort

Test Plan:

Built the tester locally (macOS, M1 Pro), ran View-itest.js once through yarn fantom to get its bundle, then started 16 testers at once on that bundle with --featureFlags '{}' --minLogLevel error:

  • main: 29 of 640 testers exited with SIGSEGV and no output
  • this change: 0 of 1600 failed

yarn fantom packages/react-native/Libraries also passes (124 suites, 2149 tests).

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 31, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 31, 2026

This branch has not been deployed

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

1 participant