This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM437X: Issues with wpe webkit

Part Number: PROCESSOR-SDK-AM437X


Tool/software:

Hello Im using TISDK 09.01.00.001 (Oct 2023)

I am trying to include the wpewebkit application into the image.  

Im having issues when launching cog (the web browser).

It seems the problem is related to the PVR driver.  This is the log:

root@am437x-alx:~# cog -P drm http://example.com
MESA: info: Loaded libpvr_dri_support.so

(cog:1115): Cog-DRM-WARNING **: 19:10:30.599: Renderer 'modeset' does not support rotation 0 (0 degrees).

(cog:1115): GLib-GIO-WARNING **: 19:10:30.685: Your application does not implement g_application_activate() and has no handlers connected to the 'activate' signal. It should do one of these.
MESA: info: Loaded libpvr_dri_support.so
Cog-Core-Message: 19:10:31.509: <http://example.com/> Load started.
Cog-Core-Message: 19:10:31.631: <http://example.com/> Loading...
Cog-Core-Message: 19:10:32.404: <http://example.com/> Loaded successfully.
PVR:(Error): PVRDisplayBufferCreateFromFd: Failed to create display buffer from handle (err=22) [0, ]
PVR:(Error): PVRDRIPlaneCreateFromFd: Failed to create display buffer from fd [0, ]
PVR:(Error): PVRDRIBufferCreateFromFds: Failed to create plane from name [0, ]
MESA: error: CreateImageSharedFromDmaBufs: Failed to create buffer for shared image
error in client communication (pid 1115)

On the log you can see that the page loads but it fails when rendering

If I unload the pvrsrvkm.ko driver before running the command it works, it still give an error but I think its defaulting to software rendering.

root@am437x-alx:~# modprobe -r pvrsrvkm
root@am437x-alx:~# cog -P drm http://example.com
MESA: info: Loaded libpvr_dri_support.so
PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
PVR:(Error): Couldn't connect to services [0, ]
PVR:(Error): PVRDRIEGLGlobalDataInit: PVR Services initialisation failed [0, ]
PVR:(Error): PVRDRICreateScreenImpl: Couldn't create EGL global data [0, ]
MESA: info: Unloaded libpvr_dri_support.so
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: zink

(cog:1220): Cog-DRM-WARNING **: 19:13:02.191: Renderer 'modeset' does not support rotation 0 (0 degrees).

(cog:1220): GLib-GIO-WARNING **: 19:13:02.325: Your application does not implement g_application_activate() and has no handlers connected to the 'activate' signal.  It should do one of these.
MESA: info: Loaded libpvr_dri_support.so
PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
PVR:(Error): Couldn't connect to services [0, ]
PVR:(Error): PVRDRIEGLGlobalDataInit: PVR Services initialisation failed [0, ]
PVR:(Error): PVRDRICreateScreenImpl: Couldn't create EGL global data [0, ]
MESA: info: Unloaded libpvr_dri_support.so
libEGL warning: egl: failed to create dri2 screen
Cog-Core-Message: 19:13:06.827: <http://example.com/> Load started.
Cog-Core-Message: 19:13:07.009: <http://example.com/> Loading...
Cog-Core-Message: 19:13:07.762: <http://example.com/> Loaded successfully.


Similarly If I export this variable before the command to force software render it works:
export LIBGL_ALWAYS_SOFTWARE=1

I am adding gles2 and egl package configs to wpewebkit (before that was not running).  I cant find any good hint on the error messages and I really dont want to rely on software rendering  I would appreciate your support.