KWin in docker container for Plasma Mobile Emulator

Bhavisha Dhruve bhavishadhruve at gmail.com
Wed May 11 10:36:37 UTC 2016


Hello,

I am Bhavisha Dhruve a participant of gsoc.  My project is to Devise the
Plasma-Mobile Emulator.  The link for the same is:
https://summerofcode.withgoogle.com/projects/#4529407473483776

I've started with initial Dockerfile that can run kwin_wayland, it displays
the window however it doesn't render anything in window, I am not sure what
is wrong, can anyone help me, please.

I am pasting my Dockerfile contents over here:

FROM ubuntu:xenial
RUN apt update
RUN apt install -y wget software-properties-common
RUN add-apt-repository -y 'deb http://mobile.neon.pangea.pub xenial main'
RUN wget -qO - 'http://mobile.neon.pangea.pub/Pangea%20CI.gpg.key' |
apt-key add -
RUN apt-get -y update && apt-get install -y kwin-wayland
kwin-wayland-backend-x11
RUN apt-get install -y libgl1-mesa-glx libgl1-mesa-dri
RUN export uid=1000 gid=1000 && \
    mkdir -p /home/developer && \
    echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash"
>> /etc/passwd && \
    echo "developer:x:${uid}:" >> /etc/group && \
    chown ${uid}:${gid} -R /home/developer

RUN gpasswd -a developer video
RUN apt-get -y update && apt-get install -y gdb
RUN apt-get -y update && apt-get install -y kwin-dbg

USER developer
ENV HOME /home/developer
CMD kwin_wayland --xwayland

Command for running the docker container:

docker run -ti -e DISPLAY --device=/dev/dri/card0:/dev/dri/card0 -v
/tmp/.X11-unix:/tmp/.X11-unix -v
$HOME/.Xauthority:/home/developer/.Xauthority --net=host plasma-emulator

And here is the backtrace of Kwin while it is not rendering anything:

#0  0x00007ffff5767d13 in select () at
../sysdeps/unix/syscall-template.S:84

#1  0x00007ffff62a8cff in qt_safe_select (nfds=33,
fdread=fdread at entry=0x644108,
fdwrite=fdwrite at entry=0x644398, fdexcept=fdexcept at entry=0x644628,
orig_timeout=orig_timeout at entry=0x0)
    at kernel/qcore_unix.cpp:75
#2  0x00007ffff62aa73e in QEventDispatcherUNIX::select (timeout=0x0,
exceptfds=0x644628, writefds=0x644398, readfds=0x644108, nfds=<optimized
out>, this=0x641950)
    at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this at entry=0x643f70,
flags=..., flags at entry=..., timeout=timeout at entry=0x0) at
kernel/qeventdispatcher_unix.cpp:196
#4  0x00007ffff62aac52 in QEventDispatcherUNIX::processEvents
(this=0x641950, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007fffe0f1586d in
QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/KWinQpaPlugin.so
#6  0x00007ffff625615a in QEventLoop::exec (this=this at entry=0x7fffffffe7d0,
flags=..., flags at entry=...) at kernel/qeventloop.cpp:204
#7  0x00007ffff625e81c in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:1285
#8  0x00007fffef9d2cbc in QGuiApplication::exec () at
kernel/qguiapplication.cpp:1598
#9  0x00007ffff6600215 in QApplication::exec () at
kernel/qapplication.cpp:2973
#10 0x000000000040885f in main (argc=2, argv=<optimized out>) at
/var/lib/jenkins-slave/mci/workspace/xenial_unstable_plasma_kwin_bin_amd64/build/main_wayland.cpp:710
(gdb)

Awaiting for your earliest reply.

Thanking in you advance.

With Regards,
Bhavisha Dhruve.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160511/eb37accf/attachment-0001.html>


More information about the Plasma-devel mailing list