Debugging renderer crash
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.
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
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.
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 ?
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