Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
failed to initialize VAAPI connection - Firefox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
dxwil
n00b
n00b


Joined: 05 Aug 2024
Posts: 7

PostPosted: Mon Aug 05, 2024 10:52 am    Post subject: failed to initialize VAAPI connection - Firefox Reply with quote

Hi all,

Two days ago Firefox compiled fine with both pgo and lto but now it doesn't compile.
Code:

Portage 3.0.65 (python 3.12.4-final-0, default/linux/arm64/23.0/desktop, gcc-13, glibc-2.40, 6.9.12-p1-asahi-dist aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.9.12-p1-asahi-dist-aarch64-with-glibc2.40
KiB Mem:     7710736 total,   1400560 free
KiB Swap:   16777200 total,  16514032 free
Timestamp of repository gentoo: Sun, 04 Aug 2024 08:00:00 +0000
Head commit of repository gentoo: 43acbb815f73ce85ddbcd5bc84fcfc0a77a5d1bc
Timestamp of repository asahi: Sun, 04 Aug 2024 07:50:57 +0000
Head commit of repository asahi: 5cc2fc136c597d8f5a3bf9849a4f0ddd86ef2ca4

Timestamp of repository electron: Tue, 23 Jul 2024 14:19:07 +0000
Head commit of repository electron: 19e5bdfb27ec106439519913305228f36df08b60

Timestamp of repository guru: Sun, 04 Aug 2024 07:50:56 +0000
Head commit of repository guru: 9eb66082bc7f006afe1593a04e893fe0b162b2ec

Timestamp of repository wayland-desktop: Sun, 28 Jul 2024 17:03:54 +0000
Head commit of repository wayland-desktop: a3b24dd585c5c4ba4b22e3249413b946bfb08628

sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.11.9_p1::gentoo, 3.12.4_p3::gentoo
dev-lang/rust-bin:         1.79.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           18.1.8::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             18.1.8::gentoo
sys-devel/llvm:            18.1.8-r1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

asahi
    location: /var/db/repos/asahi
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/asahi.git
    masters: gentoo
    volatile: False

electron
    location: /var/db/repos/electron
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/electron.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

wayland-desktop
    location: /var/db/repos/wayland-desktop
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/arm64/binpackages/23.0/arm64

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask --jobs=3 --load-average=7"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=armv8.5-a+fp16+simd+crypto+i8mm -mtune=native -O2 -pipe"
GENTOO_MIRRORS="https://ftp.fau.de/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j7 -l7"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/bash"
USE="X aac acl acpi alsa arm64 bluetooth branding bzip2 cairo crypt cups dbus dri elogind encode exif gdbm gif gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp sound spell ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="aes asimddp crc32 edsp sha1 sha2 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="asahi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

[ebuild  N    ] www-client/firefox-115.13.0  USE="clang dbus geckodriver gmp-autoupdate hwaccel lto openh264 pgo pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland -X -debug (-eme-free) (-hardened) -jack -libproxy -screencast (-selinux) -sndio -system-png (-system-python-libs) -wifi" CPU_FLAGS_ARM="(-neon)" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"


Last 200 lines of the build
https://pastebin.com/xGN3PXAQ

In the meantime I'll try compiling without pgo and lto to see what error code I get, because I tried yesterday and I remember it failed as well.

EDIT: So firefox did compile without lto and pgo, but I now get the error that made me try to recompile Firefox again.

Code:

Crash Annotation GraphicsCriticalError: |[0][GFX1-]: vaapitest: ERROR (t=2.40186) [GFX1-]: vaapitest: ERROR
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: vaapitest: ERROR (t=2.40186) |[1][GFX1-]: vaapitest: VA-API test failed: failed to initialise VAAPI connection.
 (t=2.40188) [GFX1-]: vaapitest: VA-API test failed: failed to initialise VAAPI connection.

Crash Annotation GraphicsCriticalError: |[0][GFX1-]: vaapitest: ERROR (t=4.94025) [GFX1-]: vaapitest: ERROR
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: vaapitest: ERROR (t=4.94025) |[1][GFX1-]: vaapitest: VA-API test failed: failed to initialise VAAPI connection.
 (t=4.94028) [GFX1-]: vaapitest: VA-API test failed: failed to initialise VAAPI connection.

Segmentation fault


Code:

dxwil@gentoo ~ $ vainfo
Trying display: wayland
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/va/drivers/asahi_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit


I disabled hardware acceleration and now Firefox doesnt show all the vaapi related errors, only gives me a 'Segmentation fault' but still only launches in safemode. How can I get more debug info from Firefox?


Last edited by dxwil on Mon Aug 05, 2024 1:10 pm; edited 2 times in total
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1730
Location: Germany

PostPosted: Mon Aug 05, 2024 11:27 am    Post subject: Reply with quote

Please provide, as told in the output:

Quote:
If you need support, post the output of `emerge --info '=www-client/firefox-115.13.0::gentoo'`,
the complete build log and the output of `emerge -pqv '=www-client/firefox-115.13.0::gentoo'`.
The complete build log is located at '/var/tmp/portage/www-client/firefox-115.13.0/temp/build.log'.

_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
dxwil
n00b
n00b


Joined: 05 Aug 2024
Posts: 7

PostPosted: Mon Aug 05, 2024 4:20 pm    Post subject: Reply with quote

Banana wrote:
Please provide, as told in the output:

Quote:
If you need support, post the output of `emerge --info '=www-client/firefox-115.13.0::gentoo'`,
the complete build log and the output of `emerge -pqv '=www-client/firefox-115.13.0::gentoo'`.
The complete build log is located at '/var/tmp/portage/www-client/firefox-115.13.0/temp/build.log'.


I did, it's all there, but for the build log I could only post the last 200 lines as it was too long.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1730
Location: Germany

PostPosted: Mon Aug 05, 2024 6:22 pm    Post subject: Reply with quote

my bad, didn't saw the [ebuild N ] www-client/firefox-1 at the end.

try https://wiki.gentoo.org/wiki/Wgetpaste for an alternative to upload the complete build log.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
dxwil
n00b
n00b


Joined: 05 Aug 2024
Posts: 7

PostPosted: Mon Aug 05, 2024 7:33 pm    Post subject: Reply with quote

Also, looking back at the emerge history, it's looks like that day I only installed firefoxpwa and followed this guide https://gist.github.com/filips123/29fb511a01ee8016a927a614f32979d3, which mounts the default Firefox runtime to be used by firefoxpwa. I then rebooted without following the command to unmount that runtime after which Firefox wouldn't launch anymore. I have since reinstalled Firefox multiple times, removed firefoxpwa and removed my profile to try a fresh one.

Moderator note: Fixed url --Banana
Back to top
View user's profile Send private message
dxwil
n00b
n00b


Joined: 05 Aug 2024
Posts: 7

PostPosted: Tue Aug 06, 2024 11:30 am    Post subject: Reply with quote

I installed Firefox with the debug use flag and this is the backtrace I get when launching:
Code:

[Parent 2466, Main Thread] WARNING: Last startup was detected as a crash.: file /var/tmp/portage/www-client/firefox-115.13.0/work/firefox-115.13.0/toolkit/components/startup/nsAppStartup.cpp:965
Assertion failure: IsExtensionSupported(EGLLibExtension::ANGLE_platform_angle_d3d), at /var/tmp/portage/www-client/firefox-115.13.0/work/firefox-115.13.0/gfx/gl/GLLibraryEGL.cpp:649
#01: ???[/usr/lib64/firefox/libxul.so +0x9120014]
#02: ???[/usr/lib64/firefox/libxul.so +0x9119f50]
#03: ???[/usr/lib64/firefox/libxul.so +0x9119860]
#04: ???[/usr/lib64/firefox/libxul.so +0x911b950]
#05: ???[/usr/lib64/firefox/libxul.so +0x911e898]
#06: ???[/usr/lib64/firefox/libxul.so +0x97d62e8]
#07: ???[/usr/lib64/firefox/libxul.so +0x97cb7d0]
#08: ???[/usr/lib64/firefox/libxul.so +0x97cac80]
#09: ???[/usr/lib64/firefox/libxul.so +0x97c1a04]
#10: ???[/usr/lib64/firefox/libxul.so +0x97e2ed4]
#11: ???[/usr/lib64/firefox/libxul.so +0x97e2e48]
#12: ???[/usr/lib64/firefox/libxul.so +0x97e2e18]
#13: ???[/usr/lib64/firefox/libxul.so +0x97e2dec]
#14: ???[/usr/lib64/firefox/libxul.so +0x97e2d98]
#15: ???[/usr/lib64/firefox/libxul.so +0x97e2d68]
#16: ???[/usr/lib64/firefox/libxul.so +0x97e2c24]
#17: ???[/usr/lib64/firefox/libxul.so +0x97e2bd4]
#18: ???[/usr/lib64/firefox/libxul.so +0x88e6ec4]
#19: ???[/usr/lib64/firefox/libxul.so +0x7cb6694]
#20: ???[/usr/lib64/firefox/libxul.so +0x7cbe184]
#21: ???[/usr/lib64/firefox/libxul.so +0x89e0704]
#22: ???[/usr/lib64/firefox/libxul.so +0x890c170]
#23: ???[/usr/lib64/firefox/libxul.so +0x890c0e4]
#24: ???[/usr/lib64/firefox/libxul.so +0x890c098]
#25: ???[/usr/lib64/firefox/libxul.so +0x7cb103c]
#26: ???[/usr/lib64/libnspr4.so +0x2aa7c]
#27: ???[/usr/lib64/libc.so.6 +0x836d4]
#28: ???[/usr/lib64/libc.so.6 +0xe538c]
#29: ??? (???:???)
Segmentation fault
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum