I found the 'fix' of updating Cargo.toml to use the current wasm-bindgen was breaking things rather than fixing them at this point. I was able to resolve this by manually adding the correct source (currently 0.2.101) and locking to Threema's chosen versions. If anyone else is encountering the __wbindgen_externref_table_dealloc error, this is my temporary PKGBUILD diff which should fix it:
48,51c48,49
> source=("https://releases.threema.ch/desktop/${_pkgver}/threema-desktop-v${_pkgver}-source.7z"
> "https://github.com/wasm-bindgen/wasm-bindgen/releases/download/0.2.101/wasm-bindgen-0.2.101-x86_64-unknown-linux-musl.tar.gz")
> b2sums=('e1a050d99f361b81601bbadf89a2a7f98f077cf2eb044bbc2c43d498621d974df203efcfc89c23fcd598a5effe9c811dcdfb40f55eab3d540d918b0c234429cf'
> '94fd8bf565157f1ad057d39aed323d11be45a83a24e397992bc0a3f38eef766ee882e5bc39d00dc50d41454f3a51a4fcd72708a715e9aa1cd2b73242645cfe18') # Use get-checksum.sh to update
---
< source=("https://releases.threema.ch/desktop/${_pkgver}/threema-desktop-v${_pkgver}-source.7z")
< b2sums=('e1a050d99f361b81601bbadf89a2a7f98f077cf2eb044bbc2c43d498621d974df203efcfc89c23fcd598a5effe9c811dcdfb40f55eab3d540d918b0c234429cf') # Use get-checksum.sh to update
86,87c84,85
> #sed -i '/^wasm-bindgen[ =]/s/version = "=.*"/version = "='$BINDGEN_VERSION'"/' Cargo.toml
> cargo fetch --locked
---
< sed -i '/^wasm-bindgen[ =]/s/version = "=.*"/version = "='$BINDGEN_VERSION'"/' Cargo.toml
< cargo fetch
111d108
> export PATH="${srcdir}/wasm-bindgen-0.2.101-x86_64-unknown-linux-musl:$PATH"
Pinned Comments
dbrgn commented on 2025-05-13 14:58 (UTC) (edited on 2025-07-08 08:01 (UTC) by dbrgn)
[Pinned comment]
XDG_CURRENT_DESKTOP=GNOMEenv variable (potentially by copying the .desktop file to~/.local/share/applications/and adjusting it).