-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running WPELaunch segfaults #131
Comments
Please try with latest bump of wpewebkit. |
Hm, I just realised I hadn't done this step from the README:
I'm not sure if it's significant. I'll re-run the build. |
Rebuilding with those changes in my But is it correct that I symlink the backend lib? Will the new wpe version you added pick up the correct backend automatically? |
Correct, latest WPEWebKit bump should correct that. There was a typo in the linking part, you cant work around that with ln's. If you pull in the latest and rebuild it should be fine. |
I rebuilt the image using the latest commit of this repo with the westeros image and it still segfaults. Here are the precise steps I do:
I can see the yellow mouse cursor of the westeros which works fine. But wpe doesn't seem to start |
I'm running all of these on a RaspberryPi 3 |
Make sure you tell WPE and Westeros to share the same displayid through exports. The whole launching of westors together with WPE is something we're working on to make it a little easier. E.g. by setting the correct exports before launching westeros, if not set al ready: And same before WPE Launcher: |
secondly make sure that you use Thumb2 to compile WPE |
Hm, my build still segfaults. The @kraj Thumb2 is automatically set by the recipe in this repo. I verified that this is the case in my build, wpewebkit is under I'm currently rebuilding with Do you guys reproduce this issue on your machines or is it only on my side? I'm trying to follow the README as closely as possible with the only difference being that I remove Here are all the commits of the layers I'm using. If you have a known working set of commits I could try with those:
|
I can confirm the crash as well. here is a backtrace it happening in /usr/bin/WPEWebProcess
|
I think the problem is that the wpewebkit recipe is still using the USE_WPE_BACKEND_* configuration options, which were renamed to USE_WPEWEBKIT_BACKEND_*. https://github.com/WebPlatformForEmbedded/meta-wpe/blob/master/recipes-wpe/wpewebkit/wpewebkit_0.1.bb#L51 That way no backend is selected at compile-time, and the loader facility returns null that leads to the crash. As mentioned in the first comment, the symlink is also necessary, unless the WPEBackend library has the libWPEBackend-rdk library name enforced at compile-time. |
Thanks for spotting that @zdobersek ! |
@zdobersek we have have USE_WPE_INPUT_UDEV, USE_WPE_BUFFER_MANAGEMENT_GBM USE_WPE_BUFFER_MANAGEMENT_BCM_NEXUS and USE_WPE_BUFFER_MANAGEMENT_BCM_RPI as well. Should they also be renamed ? |
I don't know about USE_WPE_INPUT_UDEV -- I don't see it in the current code under Source/ThirdParty/WPE-platform/, but it was added recently to the standalone library as USE_INPUT_DEV. USE_WPE_BUFFER_MANAGEMENT_* options aren't used anymore in libWPEBackend-rdk, so you can remove them. |
I built the image after #133 and it seems to be working nicely! Thanks a lot for the quick response :) he one thing that doesn't seem to be working and might be related to @zdobersek's comment is the mouse. I can move the westeros cursor but any clicks or mouse moves are not registered by WPE. |
USE_INPUT_DEV is set if USE_WPEWEBKIT_INPUT_LIBINPUT is set in the version thats being used with OE, its on 3ba32633268e76631849564c5eb576aa007937a0 of wpewebkit |
Thanks for fixing the issue. WPE no longer segfaults |
After creating an SD image using the instructions provided in the README and after making the modifications suggested in #1, the Pi is unable to run WPE.
With the clean image on a Raspberrypi 2 running
WPELauncher
fails withwpa: could not load the impl library. Is there any backend installed?: libWPEBackend-default.so: cannot open shared object file: No such file or directory
.I tried creating a symlink of
/usr/lib/libWPEBackend-default.so -> libWPEBackend-rdk.so
but that didn't help. What is the correct way of running this project?The text was updated successfully, but these errors were encountered: