Skip to content

🎥 Make videos programmatically with React

document "target closed" error message

Jonny Burger609c9d8dc81b
diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsx
index 815649239b..fa378aa9b9 100644
--- a/packages/cli/src/render.tsx
+++ b/packages/cli/src/render.tsx
@@ -70,6 +70,8 @@ export const render = async () => {
chromiumOptions,
} = await getCliOptions('series');
+ Log.verbose('Browser executable: ', browserExecutable);
+
await checkAndValidateFfmpegVersion({
ffmpegExecutable: Internals.getCustomFfmpegExecutable(),
});
diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.ts
index b18a469dcb..2bfa86d96a 100644
--- a/packages/cli/src/still.ts
+++ b/packages/cli/src/still.ts
@@ -51,6 +51,8 @@ export const still = async () => {
chromiumOptions,
} = await getCliOptions('still');
+ Log.verbose('Browser executable: ', browserExecutable);
+
if (imageFormat === 'none') {
Log.error(
'No image format was selected - this is probably an error in Remotion - please post your command on Github Issues for help.'
diff --git a/packages/docs/docs/getting-started.md b/packages/docs/docs/getting-started.md
index 7908255de5..09abcb7bf2 100644
--- a/packages/docs/docs/getting-started.md
+++ b/packages/docs/docs/getting-started.md
@@ -14,7 +14,7 @@ The only dependencies for Remotion are FFMPEG and Node.js.
Please read these guides to install them in case you haven't yet.
-- [Installing FFMPEG](https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg) - Minimum: Version 4.1.0
+- [Installing FFMPEG](https://github.com/adaptlearning/adapt_authoring/wiki/Installing-FFmpeg) - Supported: >=4.1.0, >5.0.0
- [Installing Node.js](https://nodejs.org/en/download/) - Minimum: Version 12.10.0
## Installation
diff --git a/packages/docs/docs/target-closed.md b/packages/docs/docs/target-closed.md
new file mode 100644
index 0000000000..1e66538304
--- /dev/null
+++ b/packages/docs/docs/target-closed.md
@@ -0,0 +1,28 @@
+---
+id: target-closed
+title: "'Target closed' error message"
+sidebar_label: Target closed
+---
+
+This error message **comes up when a Chromium Tab crashes**. Read on for possible reasons for this message.
+
+## Missing dependencies (Linux users)
+
+Make sure that you [installed the necessary dependencies](/docs/#additional-step-for-linux-users) in Linux for running Chrome.
+
+## Out of memory or CPU overload
+
+A Chrome tab can crash if the process runs out of memory, or if the website stops responding because it uses the CPU too heavily.
+
+- [Decrease the concurrency so each tab has more resources](/docs/cli#--concurrency)
+- In Remotion Lambda, increase the memory size.
+
+## Corrupt Google Chrome binary
+
+Locate the binary that you are using to render the video. Run a test whether you can open Google Chrome / Chromium normally on this machine. Potentially reinstall the browser to fix the problem.
+
+:::note
+Add `--log=verbose` during a render to print the browser executable that is being used (from Remotion v2.6.7 on).
+:::
+
+Did none of these tips help? File an issue in the Remotion repository.
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 4d8ef5776f..2a0cfc1b7a 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -131,6 +131,7 @@ module.exports = {
collapsed: false,
items: [
"timeout",
+ "target-closed",
"media-playback-error",
"performance",
"webpack-dynamic-imports",