cog icon indicating copy to clipboard operation
cog copied to clipboard

WPEWebProcess Constant 80-90% CPU Usage

Open pclass-sensonix opened this issue 2 years ago • 0 comments

I am working on porting my existing chromium based project to use cog on an embedded linux device. I successfully built cog and its dependencies using the latest meta-webkit from yesterday:

commit 9039111619e02ce853f23aa2b68ff3c544c90e07 (HEAD -> main, origin/master, origin/main, 
origin/HEAD)
Author: Pablo Saavedra <[email protected]>
Date:   Sun Oct 23 10:31:42 2022 +0200

    Update close_stale_issues_and_pr.yml

I am using Weston on my device and chromium's performance is adequate. However, when I try to use cog, it does render in full screen the display, and the virtual Weston keyboard works, but the performance suffers badly due to a constant 80-90% CPU utilization by the 'WPEWebProcess' process:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                                           
 1750 root      19  -1  792036  96884  19776 S  95.3  39.3   9:08.17 WPEWebProcess 

I am starting cog with the following commands:

export COG_PLATFORM_WL_VIEW_FULLSCREEN=1
export COG_PLATFORM_WL_VIEW_MAXIMIZE=1
cog --ignore-tls-errors -P wl https://google.com

I must be doing something wrong... What can cause the CPU to be constantly taking 80-90% when I am not interacting with the page, just rendering Google? Thank you very much for any help.

pclass-sensonix avatar Oct 24 '22 21:10 pclass-sensonix