You are not logged in.

#1 2023-07-04 18:20:45

CircleCode
Member
Registered: 2016-05-19
Posts: 13

[SOLVED] /usr/lib/libgstreamer-1.0.so.0: undefined symbol

Hi, I'm trying to make playwright work on my arch linux installation.

playwright requires you to download precompiled browsers that it stores in `.cache/ms-playwright/`

tree ~/.cache/ms-playwright/ -d -L 2
~/.cache/ms-playwright/
├── chromium-1060
│   └── chrome-linux
├── ffmpeg-1008
├── firefox-1403
│   └── firefox
└── webkit-1837
    ├── minibrowser-gtk
    └── minibrowser-wpe

9 directories

Unfortunately, trying to run tests with playwright went through a lot of installation issues, the last one I was not able to solve:

  1. (Solved) I had to install flite and compile additional flite libraries
    The error was

    Error: browserType.launch: 
        ╔══════════════════════════════════════════════════════╗
        ║ Host system is missing dependencies to run browsers. ║
        ║ Missing libraries:                                   ║
        ║     libflite_cmu_grapheme_lang.so.1                  ║
        ║     libflite_cmu_grapheme_lex.so.1                   ║
        ║     libflite_cmu_time_awb.so.1                       ║
        ║     libflite_cmu_us_awb.so.1                         ║
        ║     libflite_cmu_us_kal.so.1                         ║
        ║     libflite_cmu_us_rms.so.1                         ║
        ╚══════════════════════════════════════════════════════╝

    and the fix was

    yay -S flite
    
    git clone https://github.com/festvox/flite.git
    cd flite
    ./configure --enable-shared
    make
    make get_voices
    
    cd build/x86_64-linux-gnu/lib
    for file in libflite_cmu_grapheme_lang.so.1 libflite_cmu_grapheme_lex.so.1 libflite_cmu_time_awb.so.1 libflite_cmu_us_awb.so.1 libflite_cmu_us_kal.so.1 libflite_cmu_us_rms.so.1; do
    sudo cp $(pwd)/$file /usr/lib/
    done
  2. (Still not solved) now that it finds flite libs, I face the following error:

    ~/.cache/ms-playwright/webkit-1837/minibrowser-wpe/MiniBrowser --inspector-pipe --headless --no-startup-window
    ~/.cache/ms-playwright/webkit-1837/minibrowser-wpe/bin/MiniBrowser: symbol lookup error: /usr/lib/libgstreamer-1.0.so.0: undefined symbol: g_string_free_and_steal

    and I have abolutely no clue on how to find the problem and solve it…

    Any advice?

Last edited by CircleCode (2023-07-07 08:36:20)

Offline

#2 2023-07-04 23:08:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] /usr/lib/libgstreamer-1.0.so.0: undefined symbol

set LD_DEBUG=files before running the command, I'd bet you find a bad glib2 library somewhere.

As for flite, you'll want to package that if you want it installed globally.

Last edited by Scimmia (2023-07-05 02:11:13)

Offline

#3 2023-07-07 08:34:40

CircleCode
Member
Registered: 2016-05-19
Posts: 13

Re: [SOLVED] /usr/lib/libgstreamer-1.0.so.0: undefined symbol

Thanks @Scimmia,

I had to delete the following libs from playwright custom browsers to fallback on system versions:

#glib2
./webkit-1837/minibrowser-wpe/sys/lib/libglib-2.0.so.0.7000.0
./webkit-1837/minibrowser-wpe/sys/lib/libglib-2.0.so.0
./webkit-1837/minibrowser-gtk/sys/lib/libglib-2.0.so.0.7000.0
./webkit-1837/minibrowser-gtk/sys/lib/libglib-2.0.so.0
#gio
webkit-1837/minibrowser-gtk/sys/lib/libgio-2.0.so.0
./webkit-1837/minibrowser-wpe/sys/lib/libgio-2.0.so.0.7000.0
./webkit-1837/minibrowser-wpe/sys/lib/gio
./webkit-1837/minibrowser-wpe/sys/lib/gio/libgiolibproxy.so
./webkit-1837/minibrowser-wpe/sys/lib/gio/libgiognomeproxy.so
./webkit-1837/minibrowser-wpe/sys/lib/gio/libgiognutls.so
./webkit-1837/minibrowser-wpe/sys/lib/libgio-2.0.so.0
./webkit-1837/minibrowser-gtk/sys/lib/libgio-2.0.so.0.7000.0
./webkit-1837/minibrowser-gtk/sys/lib/gio
./webkit-1837/minibrowser-gtk/sys/lib/gio/libgiolibproxy.so
./webkit-1837/minibrowser-gtk/sys/lib/gio/libgiognomeproxy.so
./webkit-1837/minibrowser-gtk/sys/lib/gio/libgiognutls.so

Offline

Board footer

Powered by FluxBB