Open ecustic opened 6 years ago
@eCustic I think you can set the WEBKIT_INSPECTOR_SERVER
to something like 0.0.0.0:9998
to have a remote inspector running on all IPs, port 9998
Accessing the remote inspector url returns a 404
status code with the following error
Error: 0, The resource at “/org/wpe/inspector/UserInterface/inspectorPageIndex.html” does not exist occurred during fetching inspector resource files.
@LucianBuzzo I found this related issue https://bugs.webkit.org/show_bug.cgi?id=172966 that seems to imply that this inspector doesn't have a UI but you can connect to it using the chrome tools for example.
It also looks like there is another env var called WEBKIT_LEGACY_INSPECTOR_SERVER
with the same parameter format that seems to support a UI
@petrosagg I set both WEBKIT_LEGACY_INSPECTOR_SERVER
and WEBKIT_INSPECTOR_SERVER
into Device Variables
but seem it didn't work.
@petrosagg I've tried WEBKIT_LEGACY_INSPECTOR_SERVER
but that doesn't seem to open a port, using with the latest build.
Enabling WEBKIT_INSPECTOR_SERVER
does open a port. Trying to connect to it with Epiphany browser, which seems to support remote inspector as inspector://ip:port
. That connection is made, and crashes WPE with segmentation fault.
@imrehg is that variable service variable? I've attempted to set that but without any success...
In my case it was related to https://github.com/balena-io-projects/balena-wpe/issues/13.
So adding IMAGE_INSTALL_append = " wpewebkit-web-inspector-plugin"
made it working.
Here is line which decide about adding libWPEWebInspectorResources.so
binary to image.
In my case it was related to #13. So adding
IMAGE_INSTALL_append = " wpewebkit-web-inspector-plugin"
made it working. Here is line which decide about addinglibWPEWebInspectorResources.so
binary to image.
@d21d3q Any chance you have pushed the image anywhere?
anybody made this working? @d21d3q could you elaborate a bit more on what you've done to make it work?
@mwl, no I haven't pushed image anywhere. Isn't config deterministic enough in yocto world? :)
Just added that line to config.
Can you elaborate more about your issue?
Quick howto as a primo user of yocto:
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm
base-image/meta-resin-wpe/conf/samples/local.conf.sample
:
Add anywhere:
# Enable web inspector
IMAGE_INSTALL_append = " wpewebkit-web-inspector-plugin"
(then on first build.sh
it generates conf/local.conf from samples (in build/conf/local.conf))
To limit memory usage on my machine with 16 cores I also edited parallelism options:
# Parallelism Options
-BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
-PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
+BB_NUMBER_THREADS ?= "8"
+PARALLEL_MAKE ?= "-j 8"
Then just build:
./build.sh
... After 75min:
#####################################
Created docker image: resin-wpe:raspberrypi3-v0.0.3-dirty
#####################################
The file is in the docker image: /usr/lib/wpe-webkit-0.1/libWPEWebInspectorResources.so
But I'm still failing to connect to it using chrome://inspect
...
I don think that it works with chrome://inspect, it is enough just to navigate to http://
I'll try to reproduce that over weekend.
by the time you can make sure if it is in build env with something like this:
bitbake -e resin-wpe-image | grep "wpewebkit-web-inspector-plugin"
I tried direct call but it doesn't work from my browser, and neither with curl:
$ curl -vvv 127.0.0.1:9224
* Rebuilt URL to: 127.0.0.1:9224/
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 9224 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1:9224
> User-Agent: curl/7.58.0
> Accept: */*
>
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
curl: (52) Empty reply from server
(I do have WEBKIT_INSPECTOR_SERVER=0.0.0.0:9224
, and trying a different port gives a different error: someone is listening on 9224)
As for the bitbake -e
tip, thanks!
Is it possible to use the remote inspector for WPE with this build? And if so how?
Front conversations