Chromium browser crash - failed to connect display

Description

The Chromium browser crashes with this message:

Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: [/var/local/lib/afm/applications/browser/-b1d3489/runxdg.toml] parsed
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: params[--in-process-gpu]
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: params[--user-data-dir=/opt/chromium68/workdir]
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: params[--no-sandbox]
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: id=[browser@-b1d3489], name=[browser], path=[/opt/chromium68/chrome], port=31028, token=[HELLO]
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: Failed to connect display in libilmCommon
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: Not initialized
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: RunXDG created.
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: SIGTERM being defaulted.
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: waiting for notification: surafce created
Jul 08 07:08:03 intel-corei7-64 afbd-browser@-b1d3489[1018]: DEBUG: find surfpid by rid(1039)
Jul 08 07:08:04 intel-corei7-64 afbd-browser@-b1d3489[1018]: [1039:1039:0708/070804.701608:ERROR:wayland_connection.cc(62)] Failed to connect to Wayland display
Jul 08 07:08:04 intel-corei7-64 afbd-browser@-b1d3489[1018]: [1039:1039:0708/070804.701685:FATAL:ozone_platform_wayland.cc(148)] Failed to initialize Wayland platform
Jul 08 07:08:04 intel-corei7-64 kernel: traps: chrome[1039] trap int3 ip:7f8bfd35a22b sp:7ffcaaebf550 error:0 in libcbe.so[7f8bfb362000+6e01000]
Jul 08 07:08:04 intel-corei7-64 kernel: audit: type=1701 audit(1562569684.711:41): auid=4294967295 uid=1001 gid=1001 ses=4294967295 subj=User::App::browser pid=1039 comm="chrome" exe="/opt/chromium68/chrome" sig=5 res=1

Environment

None

Activity

Show:

Walt Miner 
July 30, 2019 at 9:38 PM

Close for HH 8.0.0 release

Antia Puentes 
July 12, 2019 at 2:12 PM
(edited)

Recipe update was merged. Marking as fixed.

Jacobo Aragunde Pérez 
July 11, 2019 at 10:07 AM

Pull request merged into newly created halibut branch: https://github.com/webosose/chromium-browser-service/pull/3

Patch for meta-agl-devel has been sent, to bump source revision: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-devel/+/21847

Antia Puentes 
July 10, 2019 at 1:10 PM

Antia Puentes 
July 10, 2019 at 12:21 PM

Tested the --user-data-dir flag removal. Without that flag passed to the xdg-launcher the workdir defaults to /home/1001/app-data/browser which it is what we want. With this change and the 'display' permission  request, the crash is gone and the browser usable. Both patches are available here: https://github.com/Igalia/chromium-browser-service/commits/apuentes/display

Journalctl output shows messages worth investigating:

Jul 10 12:12:09 m3ulcb afbd-browser@-22975ad[3925]: [3934:3934:0710/121209.521733:ERROR:wayland_connection.cc(107)] StartProcessingEvents - glib

Jul 10 12:12:09 m3ulcb afbd-browser@-22975ad[3925]: [2519226.290] [libwm ERROR] [libwindowmanager.cpp, onEvent(), Line:156] >>> Not found key "data"

Jul 10 12:12:10 m3ulcb afbd-browser@-22975ad[3925]: [3934:3949:0710/121210.379283:ERROR:nss_util.cc(83)] Failed to create /home/1001/.pki/nssdb directory.

 

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Affects versions

Priority

Created July 8, 2019 at 7:17 AM
Updated September 19, 2019 at 12:06 PM
Resolved July 12, 2019 at 2:12 PM