[kde-freebsd] KDE 4 hangs at splash screen when using KMS enabled 10-CURRENT

Oleg Nauman oleg.nauman at gmail.com
Wed Jul 11 07:06:06 UTC 2012


On Thu, Jul 5, 2012 at 1:49 PM, Oleg Nauman <oleg.nauman at gmail.com> wrote:
> On Sat, Jun 30, 2012 at 4:58 AM, Erich Dollansky
> <erich at alogreentechnologies.com> wrote:
>> Hi,
>>
>> On Friday, June 29, 2012 07:47:59 PM Raphael Kubo da Costa wrote:
>>> Nikolay Tychina <niktychina at gmail.com> writes:
>>>
>>> > I freshly built x11/xorg and x11/kde4 on FreeBSD 10-CURRENT and was
>>> > ready to use it with new Intel driver, but
>>> > after I kldloaded i915kms.ko and started X, KDE just hung up at its
>>> > splash screen after displaying its logo (last icon). Then screen got
>>> > blank with only a movable mouse cursor on it.
>>> > Any ideas?
>>>
>>> Do other window managers work? Is anything useful reported on the
>>> console (in case you use startx and log the output of startkde4
>>> somewhere)?
>>
>> KDE started one time for me without problems.
>
> It is 100% reproducable on my 9-STABLE desktop machine:
>
> The steps to reproduce:
> a) rm -rf .kde4 ( mv .kde4 .. )
> b) start KDE4 ( without KDE settings touch )
> c) shutdown KDE ( and reboot your workstation due to current reality )
> d) start KDE4 again ( it hangs )
>
> FreeBSD 9.0-STABLE r238090
>
> My GPU is:
>
> intel(0): Integrated Graphics Chipset: Intel(R) G33
>
>  intel(0): [DRI2] Setup complete
>  intel(0): [DRI2]   DRI driver: i915
>  intel(0): Allocated new frame buffer 1280x1024 stride 8192, tiled
>  UXA(0): Driver registered support for the following operations:
>          solid
>          copy
>          composite (RENDER acceleration)
>          put_image
>          get_image
> ...
> intel(0): direct rendering: DRI2 Enabled
>
> kldstat output:
>
> Id Refs Address    Size     Name
>  1   32 0xc0400000 96e0d8   kernel
>  2    1 0xc0d6f000 68fc     cuse4bsd.ko
>  3    1 0xc7e24000 3000     umodem.ko
>  4    1 0xc7e27000 4000     ucom.ko
>  5    1 0xc7e34000 6000     umass.ko
>  6    1 0xc7e2c000 4000     ums.ko
>  7    1 0xc890a000 64000    i915kms.ko
>  8    1 0xc896e000 2e000    drm2.ko
>
> XOrg intel port driver version:
> xf86-video-intel-2.19.0 from XOrg devel trunk provided by miwi
> XOrg port version:
> xorg-7.5.2
>
> built with WITH_NEW_XORG=YES
>
> I do not load i915kms.ko and drm2.ko manually though - they are loaded
> by intel video driver
>
> At Monday I will try to collect procstat or ktrace output for hanging
> plasma-desktop

 I was unable to reproduce this issue under clean initial KDE4
environment ( i.e. removing .kde4 and two consequent start of KDE )
but very minimal configuration change ( adjusting all fonts to
non-default value ) causes plasma-desktop hang during the next KDE
session restart

procstat -kk output for hanging plasma-desktop:

  PID    TID COMM             TDNAME           KSTACK
 2686 100643 plasma-desktop   -                <running>
 2686 100656 plasma-desktop   -                mi_switch+0x22f
sleepq_switch+0xee sleepq_catch_signals+0x339 sleepq_wait_sig+0x12
_sleep+0x2a4 kern_kevent+0x3d9 sys_kevent+0x112 syscall+0x242
Xint0x80_syscall+0x21
 2686 100657 plasma-desktop   -                mi_switch+0x22f
sleepq_switch+0xee sleepq_catch_signals+0x339 sleepq_wait_sig+0x12
_sleep+0x2a4 do_wait+0x4f0 __umtx_op_wait_uint_private+0x6c
syscall+0x242 Xint0x80_syscall+0x21

procstat -f output for hanging plasma-desktop ( it is important for
ktrace output result  understanding):

  PID COMM               FD T V FLAGS     REF  OFFSET PRO NAME
 2686 plasma-desktop   text v r r--------   -       - -
/usr/local/kde4/bin/plasma-desktop
 2686 plasma-desktop   ctty v c rw-------   -       - -   /dev/pts/0
 2686 plasma-desktop    cwd v d r--------   -       - -   /usr/home/oleg
 2686 plasma-desktop   root v d r--------   -       - -   /
 2686 plasma-desktop      0 v c rw-------  11    2134 -   /dev/pts/0
 2686 plasma-desktop      1 v c rw-------  11    2134 -   /dev/pts/0
 2686 plasma-desktop      2 v c rw-------  11    2134 -   /dev/pts/0
 2686 plasma-desktop      3 p - rw-------   1       0 -   -
 2686 plasma-desktop      4 p - rw-------   1       0 -   -
 2686 plasma-desktop      5 s - rw---n---   1       0 UDS /tmp/dbus-PjXYlJ6xRe
 2686 plasma-desktop      6 p - rw---n---   1       0 -   -
 2686 plasma-desktop      7 p - rw---n---   1       0 -   -
 2686 plasma-desktop      8 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2686 plasma-desktop      9 s - rw---n---   1       0 UDS
/var/run/dbus/system_bus_socket
 2686 plasma-desktop     10 s - rw-------   1       0 UDS /tmp/fam-oleg/fam-
 2686 plasma-desktop     11 k - rw-------   2       0 -   -
 2686 plasma-desktop     12 p - rw-------   2       0 -   -
 2686 plasma-desktop     13 p - rw-------   1       0 -   -
 2686 plasma-desktop     14 v d r--------   2       0 -
/usr/home/oleg/.kde4/share/config
 2686 plasma-desktop     15 p - rw-------   1       0 -   -
 2686 plasma-desktop     16 p - rw-------   1       0 -   -
 2686 plasma-desktop     17 v r r--------   1       0 -
/var/tmp/kdecache-oleg/ksycoca4
 2686 plasma-desktop     18 v d r--------   2       0 -
/usr/home/oleg/.local/share
 2686 plasma-desktop     19 v d r--------   2       0 -
/usr/home/oleg/.kde4/share/apps/RecentDocuments

ktrace/kump output for hanging plasma-desktop can be found here:
http://oleg.opentransfer.com/plasma.kdump.xz

As I can interpret that output plasma-desktop is very busy
communicating with Xorg through the socket ( fd 8 )

proctat -kk output for Xorg:

  PID    TID COMM             TDNAME           KSTACK
 2333 100443 Xorg             -                mi_switch+0x22f
sleepq_switch+0xee sleepq_catch_signals+0x339
sleepq_timedwait_sig+0x14 _cv_timedwait_sig+0x168 seltdwait+0x7b
kern_select+0x8a0 sys_select+0x62 syscall+0x242 Xint0x80_syscall+0x21

procstat -f output for Xorg:

  PID COMM               FD T V FLAGS     REF  OFFSET PRO NAME
 2333 Xorg             text v r r--------   -       - -
/usr/local/bin/Xorg
 2333 Xorg             ctty v c rw-------   -       - -   /dev/ttyv1
 2333 Xorg              cwd v d r--------   -       - -
/usr/home/oleg
 2333 Xorg             root v d r--------   -       - -   /
 2333 Xorg                0 v r -w-------   1   31751 -   -
 2333 Xorg                1 s - rw-------   1       0 TCP 0.0.0.0:6000 0.0.0.0:0
 2333 Xorg                2 v c rw------- 129  268595 -   /dev/ttyv1
 2333 Xorg                3 s - rw-------   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg                4 v r r--------   1   31246 -
/usr/local/lib/xorg/protocol.txt
 2333 Xorg                5 v c rw-------   1       0 -   /dev/mem
 2333 Xorg                6 v c rw-------   1       0 -   /dev/pci
 2333 Xorg                7 v c rw---n---   1       0 -   /dev/ttyv8
 2333 Xorg                8 v c rw-------   1       0 -   /dev/io
 2333 Xorg                9 v c rw-------   1    2304 -   /dev/dri/card0
 2333 Xorg               10 s - rw---n---   1       0 UDS
/var/run/dbus/system_bus_socket
 2333 Xorg               11 v c rw-s-----   1    3768 -   /dev/sysmouse
 2333 Xorg               12 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               13 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               14 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               15 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               16 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               17 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               18 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               19 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               20 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               21 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               22 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               23 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               24 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               25 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               26 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               27 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               28 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               29 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               30 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               31 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               32 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               33 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               34 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               35 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               36 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               37 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               38 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               39 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               40 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               41 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               42 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               43 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               44 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               45 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               46 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               47 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               48 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               49 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               50 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               51 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               52 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               53 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               54 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               55 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               56 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               57 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               58 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0
 2333 Xorg               59 s - rw---n---   1       0 UDS /tmp/.X11-unix/X0

ktrace/kump output for Xorg can be found here:
http://oleg.opentransfer.com/Xorg.kdump.xz

As far I understand it is not Xorg's hang: it possible to kill hanging
plasma-desktop and start it again manually. Sometimes it is hang
again, sometimes it works ( except the fact that KDE workspace
completely broken: there is no task manager for example )

>
>>
>> Did you upgrade to the latest 10 sources?
>>
>> As I do not use KDE, I did not test it any further.
>>
>> One side note, X does not start always successfully with Intel KMS. My X220 freezes then but I cannot check with a second machine then.
>>
>> I would suggest the same as Nikolay that you start testing with a very simple window manager like blackbox or whatever you like.
>>
>> Erich
>> _______________________________________________
>> freebsd-x11 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
>> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"


More information about the kde-freebsd mailing list