Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When trying to record a voice message, the tab crashes #333

Open
wolfsilver00 opened this issue Oct 20, 2024 · 0 comments
Open

When trying to record a voice message, the tab crashes #333

wolfsilver00 opened this issue Oct 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wolfsilver00
Copy link

wolfsilver00 commented Oct 20, 2024

As of 5.4 (and with the new option to allow the tab to record audio) when clicking on the microphone button, the app freezes for a sec then goes gray

image

Altus: 5.4.0
Electron: 28.3.3
Chrome: 120.0.6099.291
V8: 12.0.267.19-electron.0
OS: Linux x64 6.11.3-arch1-1:

Logs when running from console:

[96595:1020/165802.551856:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
(electron) 'crashed event' is deprecated and will be removed. Please use 'render-process-gone event' instead.
[96595:1020/165810.624735:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[96595:1020/165818.054334:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
[96561:1020/165848.472211:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source:  (0)
[96561:1020/165849.944743:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source:  (0)
[96561:1020/165900.781409:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source:  (0)
[96561:1020/165901.944046:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source:  (0)
[96561:1020/165908.271405:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source:  (0)
(electron) 'crashed event' is deprecated and will be removed. Please use 'render-process-gone event' instead.
[96561:1020/165921.484933:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source:  (0)
[96561:1020/170139.259176:ERROR:browser_main_loop.cc(276)] GLib-GObject: ../glib/gobject/gsignal.c:2684: instance '0x21a0020f2540' has no handler with id '2314'

The 'crashed event' pops up when the screen goes gray. After that I force reloaded the tab and tried again (second crashed event line)

As a note, the camera works perfectly. Also the microphone works perfectly on the rest of my applications (including other whatsapp clients)

More information: When running the app from an appimage, it works no problem. Its when I install from code that this happens. This is my source info:

pkgbase = altus
        pkgdesc = Desktop client for WhatsApp Web with themes, notifications and multiple account support
        pkgver = 5.4.0
        pkgrel = 1
        url = https://github.com/amanharwara/altus
        arch = any
        license = GPL-3.0-only
        makedepends = yarn
        makedepends = npm
        makedepends = nvm
        makedepends = gendesk
        makedepends = curl
        makedepends = git
        depends = electron28
        depends = nodejs
        conflicts = altus
        options = !strip
        options = !emptydirs
        source = altus.git::git+https://github.com/amanharwara/altus.git#tag=5.4.0
        source = altus.sh
        sha256sums = cbaac42fd6477a8d46f24a0b814ae058370e92cd5d87c6f0213472ddaf71c90a
        sha256sums = 291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980

pkgname = altus

And this my build config:

pkgname=altus
_pkgname=Altus
pkgver=5.4.0
_electronversion=28
_nodeversion=18
pkgrel=1
pkgdesc="Desktop client for WhatsApp Web with themes, notifications and multiple account support"
arch=('any')
url="https://github.com/amanharwara/altus"
license=('GPL-3.0-only')
conflicts=("${pkgname}")
depends=(
    "electron${_electronversion}"
    'nodejs'
)
makedepends=(
    'yarn'
    'npm'
    'nvm'
    'gendesk'
    'curl'
    'git'
)
options=(
    '!strip'
    '!emptydirs'
)
source=(
    "${pkgname}.git::git+${url}.git#tag=${pkgver}"
    "${pkgname}.sh"
)
sha256sums=('cbaac42fd6477a8d46f24a0b814ae058370e92cd5d87c6f0213472ddaf71c90a'
            '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
_ensure_local_nvm() {
    export NVM_DIR="${srcdir}/.nvm"
    source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
    nvm install "${_nodeversion}"
    nvm use "${_nodeversion}"
}
build() {
    sed -e "s|@electronversion@|${_electronversion}|" \
        -e "s|@appname@|${pkgname}|g" \
        -e "s|@runname@|app|g" \
        -e "s|@cfgdirname@|${_pkgname}|g" \
        -e "s|@options@|env ELECTRON_OZONE_PLATFORM_HINT=auto|g" \
        -i "${srcdir}/${pkgname}.sh"
    _ensure_local_nvm
    gendesk -q -f -n --pkgname="${pkgname}" --pkgdesc="${pkgdesc}" --categories="Network" --name="${_pkgname}" --exec="${pkgname} %U"
    cd "${srcdir}/${pkgname}.git"
    export ELECTRON_SKIP_BINARY_DOWNLOAD=1
    export SYSTEM_ELECTRON_VERSION="$(electron${_electronversion} -v | sed 's/v//g')"
    HOME="${srcdir}/.electron-gyp"
    mkdir -p "${srcdir}/.electron-gyp"
    if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
        echo 'registry "https://registry.npmmirror.com"' > "${srcdir}/.electron-gyp/.yarnrc"
        echo 'disturl "https://registry.npmmirror.com/-/binary/node/"' >> "${srcdir}/.electron-gyp/.yarnrc"
        echo 'electron_mirror "https://registry.npmmirror.com/-/binary/electron/"' >> "${srcdir}/.electron-gyp/.yarnrc"
        echo 'electron_builder_binaries_mirror "https://registry.npmmirror.com/-/binary/electron-builder-binaries/"' >> "${srcdir}/.electron-gyp/.yarnrc"
        echo "cacheFolder "${srcdir}"/.yarn/cache" >> "${srcdir}/.electron-gyp/.yarnrc"
        echo "pluginsFolder "${srcdir}"/.yarn/plugins" >> "${srcdir}/.electron-gyp/.yarnrc"
        echo "globalFolder "${srcdir}"/.yarn/global" >> "${srcdir}/.electron-gyp/.yarnrc"
        echo 'useHardlinks true' >> "${srcdir}/.electron-gyp/.yarnrc"
        echo 'buildFromSource true' >> "${srcdir}/.electron-gyp/.yarnrc"
        echo 'linkWorkspacePackages true' >> "${srcdir}/.electron-gyp/.yarnrc"
        echo 'fetchRetries 3' >> "${srcdir}/.electron-gyp/.yarnrc"
        echo 'fetchRetryTimeout 10000' >> "${srcdir}/.electron-gyp/.yarnrc"
    else
        echo "Your network is OK."
    fi
    sed "s|\"electron\": \"\([^\"]*\)\"|\"electron\": \"${SYSTEM_ELECTRON_VERSION}\"|g" -i package.json
    NODE_ENV=development    yarn install --cache-folder "${srcdir}/.yarn_cache"
    NODE_ENV=production     yarn run package
}
package() {
    install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
    install -Dm755 -d "${pkgdir}/usr/lib/${pkgname}"
    cp -r "${srcdir}/${pkgname}.git/out/${_pkgname}-linux-"*/resources/app "${pkgdir}/usr/lib/${pkgname}"
    install -Dm644 "${srcdir}/${pkgname}.git/public/assets/icons/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
    install -Dm644 "${srcdir}/${pkgname}.git/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
    install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
}
@wolfsilver00 wolfsilver00 added the bug Something isn't working label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant