cog icon indicating copy to clipboard operation
cog copied to clipboard

Debugging renderer crash

Open vnd opened this issue 6 months ago • 1 comments

We're using cog 0.18.4 on an embedded i.MX6 board with wayland backend, provided by yocto scarthgap.

The problem is that occasionally there's the following: (cog:924): Cog-Core-WARNING **: 15:21:59.504: Renderer process terminated, restarting (attempt 1/5)

Happens in a very specific scenario, quite infrequently, so hard to reproduce.

The problem is that there are no details in cog logs (also nothing in dmesg).

I'm wondering if it's possible to enable more debug logs? Tried "G_MESSAGES_DEBUG=all" so far, but still nothing preceding the crash.

FWIW in the past we also got the same error in case of OOM condition, but then it was easy since it also showed up in dmesg.

Or perhaps any info as to what kind of error in principle might result in this specific error would be helpful.

vnd avatar Jun 27 '25 15:06 vnd

I know you can get a little more debug info with the following env variables:

LIBGL_DEBUG=verbose
EGL_LOG_LEVEL=debug
G_MESSAGES_DEBUG=all
MESA_DEBUG=1

grybouilli avatar Jun 30 '25 06:06 grybouilli

Okay, so what worked is installing debug symbols, attaching to WPEWebProcess with GDB, and getting a backtrace.

Closing this, will open another issue in WPEWebKit repo.

vnd avatar Jul 01 '25 09:07 vnd

Okay, so what worked is installing debug symbols, attaching to WPEWebProcess with GDB, and getting a backtrace.

Closing this, will open another issue in WPEWebKit repo.

How did you install the debug symbols ?

grybouilli avatar Jul 01 '25 13:07 grybouilli

Debug symbols are built together with wpewebkit by yocto, so I just installed wpewebkit-dbg package.

However for some reason gdb wasn't able to find them automatically, so had to point them out explicitly:

symbol-file /usr/libexec/wpe-webkit-2.0/.debug/WPEWebProcess

vnd avatar Jul 01 '25 13:07 vnd