JS script as modules don't work
Bug description
When trying to render a web page which uses javascript, if the javascript code contains import/export directives, or if its type is module, the js code won't work.
Environment
HW : Raspberry Pi 3b+ OS : Yocto built image following meta-webkit RPi guidelines
Built from source
Libwpe-1.16.2
wpebackend-fdo-1.14.4
wpewebkit-2.46.7
Cog (git master or 0.18)
To reproduce
I used three files : index.html, index.js, and to_import.js. The expected behavior is to have a red background.
A working setup on cog :
index.html
<!DOCTYPE html>
<html>
<head>
<title>Layered CSS transforms / Anime.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<script type="text/javascript" src="./index.js"></script>
</body>
</html>
index.js:
document.body.style.background = "green";
// import { a_function } from './to_import.js';
document.body.style.background = "red";
function another_funciton()
{
a_function();
}
another_funciton();
to_import.js:
const a_function = () => {console.log("hello"); };
export {a_function};
In order to have an example that works on non embedded classic browser (such as firefox or chrome) but that doesn't work in embedded cog, change the script type to "module" in index.html and uncomment the import directive of index.js.
Launch command: cog --platform drm index.html
Environment variables:
USER=root
SYSTEMD_PAGER=
LIBGL_DEBUG=verbose
SHLVL=1
HOME=/root
COG_PLATFORM_DRM_CURSOR=1
EGL_LOG_LEVEL=debug
SSH_TTY=/dev/pts/0
PS1=\u@\h:\w\$
LOGNAME=root
G_MESSAGES_DEBUG=all
TERM=xterm-256color
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
LANG=C
SHELL=/bin/sh
MESA_DEBUG=1
PWD=/root
SSH_CONNECTION=::ffff:10.42.0.1 36882 ::ffff:10.42.0.194 22
EDITOR=vi
Debug trace: In case of non working setup:
(process:1358): Cog-Core-DEBUG: 18:13:15.041: ensure_extension_points: Extension points registered.
(process:1358): Cog-Core-DEBUG: 18:13:15.041: ensure_builtin_types: Built-in platform types initialized.
(process:1358): Cog-Core-DEBUG: 18:13:15.041: cog_modules_add_directory: Scanning '/usr/lib/cog/modules'
Cog-INFO: 18:13:15.061: wl - 500/CogWlPlatform
Cog-INFO: 18:13:15.061: drm - 200/CogDrmPlatform
Cog-INFO: 18:13:15.061: fallback - 0/CogFallbackPlatform
(cog:1358): GLib-GIO-DEBUG: 18:13:15.075: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
(cog:1358): Cog-Core-DEBUG: 18:13:15.078: cog_modules_add_directory: Default path already added, skipping.
(cog:1358): Cog-Core-DEBUG: 18:13:15.078: cog_modules_add_directory: Default path already added, skipping.
(cog:1358): Cog-Core-DEBUG: 18:13:15.078: cog_modules_add_directory: Default path already added, skipping.
(cog:1358): Cog-Core-DEBUG: 18:13:15.087: cog_platform_ensure_singleton: drm requested, CogDrmPlatform chosen.
(cog:1358): Cog-DRM-DEBUG: 18:13:15.088: init_config: overriding device_scale value, using 0.00 from shell
(cog:1358): Cog-DRM-DEBUG: 18:13:15.090: init_drm: enumerated device 0x1e496b0, available_nodes 5
(cog:1358): Cog-DRM-DEBUG: 18:13:15.090: init_drm: DRM_NODE_PRIMARY: /dev/dri/card0
(cog:1358): Cog-DRM-DEBUG: 18:13:15.090: init_drm: DRM_NODE_RENDER: /dev/dri/renderD128
(cog:1358): Cog-DRM-DEBUG: 18:13:15.090: init_drm: using device 0x1e496b0, DRM_NODE_PRIMARY /dev/dri/card0
(cog:1358): Cog-DRM-DEBUG: 18:13:15.090: init_drm: 1 connectors available
(cog:1358): Cog-DRM-DEBUG: 18:13:15.117: init_drm: connector id 89, type 11, connected, 52 usable modes
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [0]: '1920x1080', 1920x1080@60, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [1]: '1920x1080', 1920x1080@60, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [2]: '1920x1080', 1920x1080@60, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [3]: '1920x1080i', 1920x1080@60, flags 1048597, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [4]: '1920x1080i', 1920x1080@60, flags 1048597, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [5]: '1920x1080', 1920x1080@50, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [6]: '1920x1080i', 1920x1080@50, flags 1048597, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [7]: '1920x1080i', 1920x1080@48, flags 21, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [8]: '1920x1080', 1920x1080@30, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [9]: '1920x1080', 1920x1080@30, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [10]: '1920x1080', 1920x1080@25, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [11]: '1920x1080', 1920x1080@24, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.118: init_drm: [12]: '1920x1080', 1920x1080@24, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [13]: '1920x1080', 1920x1080@24, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [14]: '1600x1200', 1600x1200@60, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [15]: '1680x1050', 1680x1050@60, flags 9, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [16]: '1400x1050', 1400x1050@60, flags 9, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [17]: '1280x1024', 1280x1024@75, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [18]: '1280x1024', 1280x1024@60, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [19]: '1440x900', 1440x900@60, flags 9, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [20]: '1280x960', 1280x960@60, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [21]: '1280x800', 1280x800@60, flags 9, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [22]: '1152x864', 1152x864@75, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [23]: '1280x720', 1280x720@60, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [24]: '1280x720', 1280x720@60, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [25]: '1280x720', 1280x720@50, flags 1048581, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.119: init_drm: [26]: '1024x768', 1024x768@75, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [27]: '1024x768', 1024x768@70, flags 10, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [28]: '1024x768', 1024x768@60, flags 10, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [29]: '832x624', 832x624@75, flags 10, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [30]: '800x600', 800x600@75, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [31]: '800x600', 800x600@72, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [32]: '800x600', 800x600@60, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [33]: '800x600', 800x600@56, flags 5, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [34]: '720x576', 720x576@50, flags 524298, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [35]: '720x576', 720x576@50, flags 1048586, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [36]: '720x576i', 720x576@50, flags 528410, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [37]: '720x576i', 720x576@50, flags 1052698, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [38]: '720x480', 720x480@60, flags 524298, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [39]: '720x480', 720x480@60, flags 1048586, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.120: init_drm: [40]: '720x480', 720x480@60, flags 524298, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [41]: '720x480', 720x480@60, flags 1048586, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [42]: '720x480i', 720x480@60, flags 528410, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [43]: '720x480i', 720x480@60, flags 1052698, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [44]: '720x480i', 720x480@60, flags 528410, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [45]: '720x480i', 720x480@60, flags 1052698, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [46]: '640x480', 640x480@75, flags 10, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [47]: '640x480', 640x480@73, flags 10, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [48]: '640x480', 640x480@60, flags 524298, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [49]: '640x480', 640x480@60, flags 10, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [50]: '640x480', 640x480@60, flags 524298, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.121: init_drm: [51]: '720x400', 720x400@70, flags 6, type 64
(cog:1358): Cog-DRM-DEBUG: 18:13:15.148: init_drm: using connector id 89, type 11
(cog:1358): Cog-DRM-DEBUG: 18:13:15.149: init_drm: using mode [0] '1920x1080' @ 60Hz
(process:1362): GLib-GIO-DEBUG: 18:13:15.176: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals
(process:1362): GLib-GIO-DEBUG: 18:13:15.185: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
(process:1362): GLib-GIO-DEBUG: 18:13:15.191: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running
(process:1362): GLib-GIO-DEBUG: 18:13:15.192: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor?
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libEGL debug: MESA-LOADER: dlopen(/usr/lib/dri/vc4_dri.so)
libEGL debug: did not find extension DRI_Kopper version 1
libEGL debug: No DRI config supports native format R8
libEGL debug: No DRI config supports native format R16
libEGL debug: No DRI config supports native format GR88
libEGL debug: No DRI config supports native format GR32
libEGL debug: No DRI config supports native format AR15
libEGL debug: No DRI config supports native format XB24
libEGL debug: No DRI config supports native format AB24
libEGL debug: No DRI config supports native format XR30
libEGL debug: No DRI config supports native format AR30
libEGL debug: No DRI config supports native format XB30
libEGL debug: No DRI config supports native format AB30
libEGL debug: No DRI config supports native format XB48
libEGL debug: No DRI config supports native format AB48
libEGL debug: No DRI config supports native format XB4H
libEGL debug: No DRI config supports native format AB4H
(cog:1358): Cog-DRM-DEBUG: 18:13:15.217: cog_drm_modeset_renderer_new: Capability addfb2_modifiers = 0x1
(cog:1358): Cog-DRM-DEBUG: 18:13:15.217: cog_drm_modeset_renderer_new: Using plane #31, crtc #87, connector #89 (atomic).
(cog:1358): Cog-DRM-WARNING **: 18:13:15.217: Renderer 'modeset' does not support rotation 0 (0 degrees).
(cog:1358): Cog-DRM-DEBUG: 18:13:15.224: cog_drm_platform_setup: Renderer 'modeset' initialized.
(cog:1358): Cog-Core-DEBUG: 18:13:15.224: gamepad setup: none
(cog:1358): Cog-Core-DEBUG: 18:13:15.224: _cog_view_get_impl_type_init: using CogCoreView
(cog:1358): Cog-Core-DEBUG: 18:13:15.225: cog_core_view_create_backend: backend 0x6eef8510
libEGL debug: Native platform type: wayland (build-time configuration)
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglQueryDisplayAttribEXT
(cog:1358): Cog-Core-DEBUG: 18:13:15.230: _cog_viewport_get_impl_type_init: using CogViewport
(cog:1358): Cog-Core-DEBUG: 18:13:15.231: cog_viewport_add<0x1e8f158>: adding view 0x1e84d30 as visible
(cog:1358): GLib-GIO-DEBUG: 18:13:15.233: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(process:1362): GLib-GIO-DEBUG: 18:13:15.245: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
libEGL debug: Native platform type: wayland (autodetected)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libEGL debug: using driver vc4 for 12
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libEGL debug: MESA-LOADER: device is not located on the PCI bus
libEGL debug: using driver vc4 for 12
libEGL debug: MESA-LOADER: dlopen(/usr/lib/dri/vc4_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libEGL debug: did not find extension DRI_Kopper version 1
libEGL debug: No DRI config supports native format ABGR16F
libEGL debug: No DRI config supports native format XBGR16F
libEGL debug: No DRI config supports native format XRGB2101010
libEGL debug: No DRI config supports native format ARGB2101010
libEGL debug: No DRI config supports native format XBGR2101010
libEGL debug: No DRI config supports native format ABGR2101010
libEGL debug: No DRI config supports native format ABGR8888
libEGL debug: No DRI config supports native format XBGR8888
libEGL debug: No DRI config supports native format ARGB1555
libEGL debug: No DRI config supports native format XRGB1555
libEGL debug: No DRI config supports native format ARGB4444
libEGL debug: No DRI config supports native format XRGB4444
(WPEWebProcess:1371): GLib-GIO-DEBUG: 18:13:15.393: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals
(WPEWebProcess:1371): GLib-GIO-DEBUG: 18:13:15.400: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor?
(WPEWebProcess:1371): GLib-GIO-DEBUG: 18:13:15.402: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
libEGL debug: eglPrintConfigDebug: nothing to print
libEGL debug: ---------------
libEGL debug: Configurations:
libEGL debug: cho bf lv colourbuffer dp st ms vis cav bi renderable supported
libEGL debug: sen id sz l r g b a th cl ns b id eat nd gl es es2 es3 vg surfaces
libEGL debug: ---------------
libEGL debug: 0x001 32 0 8 8 8 8 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x002 32 0 8 8 8 8 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0 0x003 32 0 8 8 8 8 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x004 32 0 8 8 8 8 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x005 32 0 8 8 8 8 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 1 0x006 32 0 8 8 8 8 24 8 4 1 0x00000000-- y y y win,
libEGL debug: 0x007 24 0 8 8 8 0 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x008 24 0 8 8 8 0 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x009 24 0 8 8 8 0 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x00a 24 0 8 8 8 0 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x00b 24 0 8 8 8 0 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x00c 24 0 8 8 8 0 24 8 4 1 0x00000000-- y y y win,
libEGL debug: 0x00d 16 0 5 6 5 0 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x00e 16 0 5 6 5 0 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x00f 16 0 5 6 5 0 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x010 16 0 5 6 5 0 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x011 16 0 5 6 5 0 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x012 16 0 5 6 5 0 24 8 4 1 0x00000000-- y y y win,
libEGL debug: eglPrintConfigDebug: nothing to print
libEGL debug: ---------------
libEGL debug: Configurations:
libEGL debug: cho bf lv colourbuffer dp st ms vis cav bi renderable supported
libEGL debug: sen id sz l r g b a th cl ns b id eat nd gl es es2 es3 vg surfaces
libEGL debug: ---------------
libEGL debug: 0x001 32 0 8 8 8 8 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x002 32 0 8 8 8 8 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0 0x003 32 0 8 8 8 8 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x004 32 0 8 8 8 8 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x005 32 0 8 8 8 8 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 1 0x006 32 0 8 8 8 8 24 8 4 1 0x00000000-- y y y win,
libEGL debug: 0x007 24 0 8 8 8 0 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x008 24 0 8 8 8 0 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x009 24 0 8 8 8 0 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x00a 24 0 8 8 8 0 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x00b 24 0 8 8 8 0 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x00c 24 0 8 8 8 0 24 8 4 1 0x00000000-- y y y win,
libEGL debug: 0x00d 16 0 5 6 5 0 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x00e 16 0 5 6 5 0 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x00f 16 0 5 6 5 0 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x010 16 0 5 6 5 0 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x011 16 0 5 6 5 0 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x012 16 0 5 6 5 0 24 8 4 1 0x00000000-- y y y win,
Cog-Core-Message: 18:13:15.507: <file:///root/no_disp_anime/index.html> Load started.
Cog-Core-Message: 18:13:15.516: <file:///root/no_disp_anime/index.html> Loading...
Cog-Core-Message: 18:13:15.538: <file:///root/no_disp_anime/index.html> Loaded successfully.
In case of working setup:
Cog-INFO: 18:12:47.251: com.igalia.Cog.Platform:
(process:1312): Cog-Core-DEBUG: 18:12:47.257: ensure_extension_points: Extension points registered.
(process:1312): Cog-Core-DEBUG: 18:12:47.257: ensure_builtin_types: Built-in platform types initialized.
(process:1312): Cog-Core-DEBUG: 18:12:47.257: cog_modules_add_directory: Scanning '/usr/lib/cog/modules'
Cog-INFO: 18:12:47.276: wl - 500/CogWlPlatform
Cog-INFO: 18:12:47.276: drm - 200/CogDrmPlatform
Cog-INFO: 18:12:47.277: fallback - 0/CogFallbackPlatform
(cog:1312): GLib-GIO-DEBUG: 18:12:47.289: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
(cog:1312): Cog-Core-DEBUG: 18:12:47.292: cog_modules_add_directory: Default path already added, skipping.
(cog:1312): Cog-Core-DEBUG: 18:12:47.293: cog_modules_add_directory: Default path already added, skipping.
(cog:1312): Cog-Core-DEBUG: 18:12:47.293: cog_modules_add_directory: Default path already added, skipping.
(cog:1312): Cog-Core-DEBUG: 18:12:47.302: cog_platform_ensure_singleton: drm requested, CogDrmPlatform chosen.
(cog:1312): Cog-DRM-DEBUG: 18:12:47.303: init_config: overriding device_scale value, using 0.00 from shell
(cog:1312): Cog-DRM-DEBUG: 18:12:47.304: init_drm: enumerated device 0xa7a518, available_nodes 5
(cog:1312): Cog-DRM-DEBUG: 18:12:47.304: init_drm: DRM_NODE_PRIMARY: /dev/dri/card0
(cog:1312): Cog-DRM-DEBUG: 18:12:47.304: init_drm: DRM_NODE_RENDER: /dev/dri/renderD128
(cog:1312): Cog-DRM-DEBUG: 18:12:47.304: init_drm: using device 0xa7a518, DRM_NODE_PRIMARY /dev/dri/card0
(cog:1312): Cog-DRM-DEBUG: 18:12:47.305: init_drm: 1 connectors available
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: connector id 89, type 11, connected, 52 usable modes
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [0]: '1920x1080', 1920x1080@60, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [1]: '1920x1080', 1920x1080@60, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [2]: '1920x1080', 1920x1080@60, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [3]: '1920x1080i', 1920x1080@60, flags 1048597, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [4]: '1920x1080i', 1920x1080@60, flags 1048597, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [5]: '1920x1080', 1920x1080@50, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [6]: '1920x1080i', 1920x1080@50, flags 1048597, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [7]: '1920x1080i', 1920x1080@48, flags 21, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [8]: '1920x1080', 1920x1080@30, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [9]: '1920x1080', 1920x1080@30, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [10]: '1920x1080', 1920x1080@25, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.332: init_drm: [11]: '1920x1080', 1920x1080@24, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [12]: '1920x1080', 1920x1080@24, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [13]: '1920x1080', 1920x1080@24, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [14]: '1600x1200', 1600x1200@60, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [15]: '1680x1050', 1680x1050@60, flags 9, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [16]: '1400x1050', 1400x1050@60, flags 9, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [17]: '1280x1024', 1280x1024@75, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [18]: '1280x1024', 1280x1024@60, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [19]: '1440x900', 1440x900@60, flags 9, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [20]: '1280x960', 1280x960@60, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [21]: '1280x800', 1280x800@60, flags 9, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [22]: '1152x864', 1152x864@75, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [23]: '1280x720', 1280x720@60, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [24]: '1280x720', 1280x720@60, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [25]: '1280x720', 1280x720@50, flags 1048581, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [26]: '1024x768', 1024x768@75, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [27]: '1024x768', 1024x768@70, flags 10, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [28]: '1024x768', 1024x768@60, flags 10, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [29]: '832x624', 832x624@75, flags 10, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.333: init_drm: [30]: '800x600', 800x600@75, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [31]: '800x600', 800x600@72, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [32]: '800x600', 800x600@60, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [33]: '800x600', 800x600@56, flags 5, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [34]: '720x576', 720x576@50, flags 524298, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [35]: '720x576', 720x576@50, flags 1048586, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [36]: '720x576i', 720x576@50, flags 528410, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [37]: '720x576i', 720x576@50, flags 1052698, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [38]: '720x480', 720x480@60, flags 524298, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [39]: '720x480', 720x480@60, flags 1048586, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [40]: '720x480', 720x480@60, flags 524298, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [41]: '720x480', 720x480@60, flags 1048586, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [42]: '720x480i', 720x480@60, flags 528410, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [43]: '720x480i', 720x480@60, flags 1052698, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [44]: '720x480i', 720x480@60, flags 528410, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [45]: '720x480i', 720x480@60, flags 1052698, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [46]: '640x480', 640x480@75, flags 10, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [47]: '640x480', 640x480@73, flags 10, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [48]: '640x480', 640x480@60, flags 524298, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.334: init_drm: [49]: '640x480', 640x480@60, flags 10, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.335: init_drm: [50]: '640x480', 640x480@60, flags 524298, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.335: init_drm: [51]: '720x400', 720x400@70, flags 6, type 64
(cog:1312): Cog-DRM-DEBUG: 18:12:47.362: init_drm: using connector id 89, type 11
(cog:1312): Cog-DRM-DEBUG: 18:12:47.362: init_drm: using mode [0] '1920x1080' @ 60Hz
(process:1316): GLib-GIO-DEBUG: 18:12:47.390: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals
(process:1316): GLib-GIO-DEBUG: 18:12:47.399: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
(process:1316): GLib-GIO-DEBUG: 18:12:47.405: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running
(process:1316): GLib-GIO-DEBUG: 18:12:47.405: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor?
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libEGL debug: MESA-LOADER: dlopen(/usr/lib/dri/vc4_dri.so)
libEGL debug: did not find extension DRI_Kopper version 1
libEGL debug: No DRI config supports native format R8
libEGL debug: No DRI config supports native format R16
libEGL debug: No DRI config supports native format GR88
libEGL debug: No DRI config supports native format GR32
libEGL debug: No DRI config supports native format AR15
libEGL debug: No DRI config supports native format XB24
libEGL debug: No DRI config supports native format AB24
libEGL debug: No DRI config supports native format XR30
libEGL debug: No DRI config supports native format AR30
libEGL debug: No DRI config supports native format XB30
libEGL debug: No DRI config supports native format AB30
libEGL debug: No DRI config supports native format XB48
libEGL debug: No DRI config supports native format AB48
libEGL debug: No DRI config supports native format XB4H
libEGL debug: No DRI config supports native format AB4H
(cog:1312): Cog-DRM-DEBUG: 18:12:47.431: cog_drm_modeset_renderer_new: Capability addfb2_modifiers = 0x1
(cog:1312): Cog-DRM-DEBUG: 18:12:47.431: cog_drm_modeset_renderer_new: Using plane #31, crtc #87, connector #89 (atomic).
(cog:1312): Cog-DRM-WARNING **: 18:12:47.431: Renderer 'modeset' does not support rotation 0 (0 degrees).
(cog:1312): Cog-DRM-DEBUG: 18:12:47.437: cog_drm_platform_setup: Renderer 'modeset' initialized.
(cog:1312): Cog-Core-DEBUG: 18:12:47.438: gamepad setup: none
(cog:1312): Cog-Core-DEBUG: 18:12:47.438: _cog_view_get_impl_type_init: using CogCoreView
(cog:1312): Cog-Core-DEBUG: 18:12:47.439: cog_core_view_create_backend: backend 0x6eef8510
libEGL debug: Native platform type: wayland (build-time configuration)
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglQueryDisplayAttribEXT
(cog:1312): Cog-Core-DEBUG: 18:12:47.443: _cog_viewport_get_impl_type_init: using CogViewport
(cog:1312): Cog-Core-DEBUG: 18:12:47.443: cog_viewport_add<0xabff70>: adding view 0xab5b68 as visible
(cog:1312): GLib-GIO-DEBUG: 18:12:47.445: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
(process:1316): GLib-GIO-DEBUG: 18:12:47.456: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
libEGL debug: Native platform type: wayland (autodetected)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libEGL debug: using driver vc4 for 12
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libEGL debug: MESA-LOADER: device is not located on the PCI bus
libEGL debug: using driver vc4 for 12
libEGL debug: MESA-LOADER: dlopen(/usr/lib/dri/vc4_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libEGL debug: did not find extension DRI_Kopper version 1
libEGL debug: No DRI config supports native format ABGR16F
libEGL debug: No DRI config supports native format XBGR16F
libEGL debug: No DRI config supports native format XRGB2101010
libEGL debug: No DRI config supports native format ARGB2101010
libEGL debug: No DRI config supports native format XBGR2101010
libEGL debug: No DRI config supports native format ABGR2101010
libEGL debug: No DRI config supports native format ABGR8888
libEGL debug: No DRI config supports native format XBGR8888
libEGL debug: No DRI config supports native format ARGB1555
libEGL debug: No DRI config supports native format XRGB1555
libEGL debug: No DRI config supports native format ARGB4444
libEGL debug: No DRI config supports native format XRGB4444
(WPEWebProcess:1325): GLib-GIO-DEBUG: 18:12:47.604: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals
(WPEWebProcess:1325): GLib-GIO-DEBUG: 18:12:47.612: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor?
(WPEWebProcess:1325): GLib-GIO-DEBUG: 18:12:47.613: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
libEGL debug: eglPrintConfigDebug: nothing to print
libEGL debug: ---------------
libEGL debug: Configurations:
libEGL debug: cho bf lv colourbuffer dp st ms vis cav bi renderable supported
libEGL debug: sen id sz l r g b a th cl ns b id eat nd gl es es2 es3 vg surfaces
libEGL debug: ---------------
libEGL debug: 0x001 32 0 8 8 8 8 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x002 32 0 8 8 8 8 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0 0x003 32 0 8 8 8 8 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x004 32 0 8 8 8 8 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x005 32 0 8 8 8 8 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 1 0x006 32 0 8 8 8 8 24 8 4 1 0x00000000-- y y y win,
libEGL debug: 0x007 24 0 8 8 8 0 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x008 24 0 8 8 8 0 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x009 24 0 8 8 8 0 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x00a 24 0 8 8 8 0 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x00b 24 0 8 8 8 0 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x00c 24 0 8 8 8 0 24 8 4 1 0x00000000-- y y y win,
libEGL debug: 0x00d 16 0 5 6 5 0 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x00e 16 0 5 6 5 0 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x00f 16 0 5 6 5 0 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x010 16 0 5 6 5 0 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x011 16 0 5 6 5 0 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x012 16 0 5 6 5 0 24 8 4 1 0x00000000-- y y y win,
libEGL debug: eglPrintConfigDebug: nothing to print
libEGL debug: ---------------
libEGL debug: Configurations:
libEGL debug: cho bf lv colourbuffer dp st ms vis cav bi renderable supported
libEGL debug: sen id sz l r g b a th cl ns b id eat nd gl es es2 es3 vg surfaces
libEGL debug: ---------------
libEGL debug: 0x001 32 0 8 8 8 8 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x002 32 0 8 8 8 8 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0 0x003 32 0 8 8 8 8 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x004 32 0 8 8 8 8 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x005 32 0 8 8 8 8 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 1 0x006 32 0 8 8 8 8 24 8 4 1 0x00000000-- y y y win,
libEGL debug: 0x007 24 0 8 8 8 0 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x008 24 0 8 8 8 0 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x009 24 0 8 8 8 0 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x00a 24 0 8 8 8 0 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x00b 24 0 8 8 8 0 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x00c 24 0 8 8 8 0 24 8 4 1 0x00000000-- y y y win,
libEGL debug: 0x00d 16 0 5 6 5 0 0 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x00e 16 0 5 6 5 0 24 0 0 0 0x00000000-- y y y win,
libEGL debug: 0x00f 16 0 5 6 5 0 24 8 0 0 0x00000000-- y y y win,
libEGL debug: 0x010 16 0 5 6 5 0 0 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x011 16 0 5 6 5 0 24 0 4 1 0x00000000-- y y y win,
libEGL debug: 0x012 16 0 5 6 5 0 24 8 4 1 0x00000000-- y y y win,
Cog-Core-Message: 18:12:47.723: <file:///root/working_anime/index.html> Load started.
Cog-Core-Message: 18:12:47.732: <file:///root/working_anime/index.html> Loading...
Cog-Core-Message: 18:12:47.759: <file:///root/working_anime/index.html> Loaded successfully.