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

Chromium cannot be started from last rebuild #17

Closed
kuroidoruido opened this issue Jul 30, 2018 · 3 comments
Closed

Chromium cannot be started from last rebuild #17

kuroidoruido opened this issue Jul 30, 2018 · 3 comments

Comments

@kuroidoruido
Copy link

kuroidoruido commented Jul 30, 2018

Hi,

From the last rebuild (2018-07-30T10:39:06.251Z), my pipeline (Karma unit test on Angular 6.0 app) is broken with the error :

30 07 2018 13:10:40.395:ERROR [launcher]: Cannot start Chromium
	Error relocating /usr/lib/chromium/chrome: hb_font_set_variations: symbol not found
Error relocating /usr/lib/chromium/chrome: hb_face_get_table_tags: symbol not found
Error relocating /usr/lib/chromium/chrome: hb_font_set_ptem: symbol not found

30 07 2018 13:10:40.395:ERROR [launcher]: Chromium stdout: 
30 07 2018 13:10:40.395:ERROR [launcher]: Chromium stderr: Error relocating /usr/lib/chromium/chrome: hb_font_set_variations: symbol not found
Error relocating /usr/lib/chromium/chrome: hb_face_get_table_tags: symbol not found
Error relocating /usr/lib/chromium/chrome: hb_font_set_ptem: symbol not found

Just to be sure it was not a problem with my new development, I tried to run the pipeline with a branch not modified from some days and with a PASSED status on the last run, and it failed too.

I'm using alpine-node8 image version.

Does someone has the same problem and has fixed it ?

@kuroidoruido
Copy link
Author

It seem the Harfbuzz version installed is not enought higher to let Chromium 68 to work.

https://hub.docker.com/r/weboaks/node-karma-protractor-chrome/builds/bc3ukrfhobyeasjvgta2cri/ :

  ...
(82/116) Installing harfbuzz (1.3.4-r1)
  ...
(96/116) Installing chromium@edge (68.0.3440.75-r0) 
(97/116) Installing chromium-chromedriver@edge (68.0.3440.75-r0)
  ...

and if we check on Harfbuzz site, we can see the functions are available with version 1.3.4 :

https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-variations => since 1.4.2
https://harfbuzz.github.io/harfbuzz-hb-face.html#hb-face-get-table-tags => since 1.6.0
https://harfbuzz.github.io/harfbuzz-hb-font.html#hb-font-set-ptem => since 1.6.0

I also check Chromium build log, it depend on Harfbuzz but it get it from system, so I think we must install it.
From : http://build.alpinelinux.org/buildlogs/build-edge-x86_64/community/chromium/chromium-68.0.3440.75-r0.log

  ...
use_system_harfbuzz=true
  ...

I think and apk add harfbuzz@edge can solve this issue

sylvaindumont added a commit that referenced this issue Jul 30, 2018
sylvaindumont added a commit that referenced this issue Jul 30, 2018
sylvaindumont added a commit that referenced this issue Jul 30, 2018
sylvaindumont added a commit that referenced this issue Jul 30, 2018
sylvaindumont added a commit that referenced this issue Jul 30, 2018
needed to get correct harfbuzz version to fix #17
sylvaindumont added a commit that referenced this issue Jul 30, 2018
sylvaindumont added a commit that referenced this issue Jul 30, 2018
sylvaindumont added a commit that referenced this issue Jul 30, 2018
@sylvaindumont
Copy link
Owner

@kuroidoruido Thanks a lot for the research. I'm glad to see someone use the alpine version :)
harfbuzz is a dependency of gtk and pango and a full upgrade to alpine edge was required to get the correct harfbuzz version. It makes the image 8mo bigger, but everything seems working again.

Let me know if it works on your side.

@kuroidoruido
Copy link
Author

@sylvaindumont Your docker node+karma+protractor+chromium in alpine version save me a lot of time to build the CI/CD of my project :)

Thanks for the reactivity!
Now all works perfectly like before! Thanks a lot! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants