Skip to content

[BUG] Using libsoup2 and libsoup3 in the same process is not supported. #27313

@lunika

Description

@lunika

System info

  • Playwright Version: [v1.38.0]
  • Operating System: Docker image mcr.microsoft.com/playwright:v1.38.0-jammy
  • Browser: [WebKit]
  • Other info: The image is ran on circle-ci. The same image as no problem with firefox and chrome browser. We don't have any issue running the same code locally.

A similar issue exists and is closed : #26653
This issue should be fixed with Playwright 1.38.0 but we still have it but only with the safari browser.

If you clone the repo, you should not have any error locally, you can test by running the following command :

$ make bootstrap
$ make e2e

You can also check the result on circle-ci with the following link : https://app.circleci.com/pipelines/github/openfun/marsha/14253/workflows/28f88761-d423-43c1-b4c1-4702c879a09f/jobs/421630

Both libsoup 2 and 3 are indeed installed in this image:

$ docker run --rm -it mcr.microsoft.com/playwright:v1.38.0-jammy /bin/bash -c "dpkg -l | grep libsoup"
ii  libsoup-3.0-0:amd64                  3.0.7-0ubuntu1                          amd64        HTTP library implementation in C -- Shared library
ii  libsoup-3.0-common                   3.0.7-0ubuntu1                          all          HTTP library implementation in C -- Common files
ii  libsoup2.4-1:amd64                   2.74.2-3                                amd64        HTTP library implementation in C -- Shared library
ii  libsoup2.4-common                    2.74.2-3                                all          HTTP library implementation in C -- Common files

If libsoup2 is removed (just for testing), it also deletes gstreamer plugins that seems used by webkit.

Source code

Link to the GitHub repository with the repro

https://github.com/openfun/marsha/blob/804a873683fa650623e0c48e92313b072d31f3bf/.circleci/config.yml#L620-L747

This commit is part of this PR: openfun/marsha#2433

Expected

The test suite should run without issue with libsoup. Libsoup compatibility issue is fixed with version 1.38.0 and we don't have this issue with firefox and chrome browsers.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions