Skip to content

[bug] Built AppImage is seemingly broken due to libgstreamer not being included #4092

@xTVaser

Description

@xTVaser

Describe the bug

I've ran into this issue using an AppImage built via GitHub actions (Ubuntu 20.04) as well as reproduced it on a fresh Ubuntu 22.04 VM. It was also discussed in the discord and I was also able to fix the issue by using the same workaround - https://discord.com/channels/616186924390023171/731495064508825731/968988490769526794

I'm making this issue because it's still a consistent problem on my end and I didn't see a proper issue get made -- just want something to track.

Without the workaround running the AppImage results in the following logs and the App does not startup properly:

GStreamer element autoaudiosink not found. Please install it

(WebKitWebProcess:20067): GLib-GObject-WARNING **: 19:28:11.131: invalid (NULL) pointer instance

(WebKitWebProcess:20067): GLib-GObject-CRITICAL **: 19:28:11.131: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Manually including libgstreamer with the workaround:

# Add `-f` to symlink creation commands so they will work even if they already exist
sed -i 's/ln -s/ln -s -f/g' build_appimage.sh
sed -i 's/wget -q -4 -O linuxdeploy-plugin-gtk.sh/# wget -q -4 -O linuxdeploy-plugin-gtk.sh/g' build_appimage.sh
sed -i 's/ln $verbose -s/ln $verbose -s -f/g' linuxdeploy-plugin-gtk.sh
# Manually Add GStreamer (for ubuntu 22.04):
sed -i 's/chmod +x AppRun/cp -rf \/usr\/lib\/x86_64-linux-gnu\/gstreamer-1.0 usr\/lib \&\& chmod +x AppRun/g' build_appimage.sh
# Disable this line
sed -i 's/cp -r ..\/appimage_deb/# cp -r ..\/appimage_deb/g' build_appimage.sh
# Recreate the AppImage
./build_appimage.sh

Results in an AppImage that works and has no similar error/warning logs

WebKit wasn't able to find a WebVTT encoder. Subtitles handling will be degraded unless gst-plugins-bad is installed.

Reproduction

No response

Expected behavior

No response

Platform and versions

`npm run tauri info`

tauri "info"

Environment
› OS: Ubuntu 22.04 X64
› Node.js: 16.15.0
› npm: 8.5.5
› pnpm: Not installed!
› yarn: Not installed!
› rustup: Not installed!
› rustc: 1.58.1
› cargo: 1.57.0
› Rust toolchain:

Packages
› @tauri-apps/cli [NPM]: 1.0.0-rc.10
› @tauri-apps/api [NPM]: 1.0.0-rc.5
› tauri [RUST]: 1.0.0-rc.8,
› tauri-build [RUST]: 1.0.0-rc.7,
› tao [RUST]: 0.8.3,
› wry [RUST]: 0.15.1,

App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:3000/
› framework: Svelte

App directory structure
├─ public
├─ .github
├─ src
├─ scripts
├─ node_modules
├─ docs
├─ third-party
├─ dist
├─ src-tauri
├─ .vscode
├─ backup
├─ .git
├─ .tauri
└─ bundle-test

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

priority: 1 highHigh priority bugs/missing features or non-crashing regressionstype: bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions