You are not logged in.

#1 2018-12-28 19:36:27

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Plasma freeze when user use right click on favourite item in launcher

Got plasmashell freeze and following errors  when pressing on favorites item in Application Dashboard:

(process:16067): GLib-GObject-WARNING **: 21:22:40.892: cannot register existing type 'AsLaunchable'

(process:16067): GLib-GObject-WARNING **: 21:22:40.892: cannot add private field to invalid (non-instantiatable) type '<invalid>'

(process:16067): GLib-CRITICAL **: 21:22:40.892: g_once_init_leave: assertion 'result != 0' failed

(process:16067): GLib-GObject-CRITICAL **: 21:22:40.892: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

CPU usage of plasmashell process is 0 according KSysGuard. Search bar(Alt+F2) and other processes works well. Only plasmashell freeze.

This issue is similar with https://bbs.archlinux.org/viewtopic.php?id=242832.
It is not critical issues for me so I am not going to reset all settings and reinstall KDE packages(according fix from comments https://bbs.archlinux.org/viewtopic.php?id=242832) and I am able to provide more information.
Plasma shell is not responsible after 10 minutes and CPU usage still 0.

Last edited by LaRusCat (2018-12-28 19:48:53)

Offline

#2 2018-12-28 22:36:50

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: Plasma freeze when user use right click on favourite item in launcher

What's the output of

printenv | grep QT

?

What if you kill plasmashell and restart it

QT_STYLE_OVERRIDE=Fusion plasmashell

?

Offline

#3 2018-12-29 09:27:39

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

$ printenv | grep QT
QT_AUTO_SCREEN_SCALE_FACTOR=0

Restarting plasmashell helps but it freeze again after right click on favorite item.
And looks like "QT_STYLE_OVERRIDE=Fusion" option doesn't change anything. Issue still reproducible.

Offline

#4 2018-12-29 14:28:43

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: Plasma freeze when user use right click on favourite item in launcher

Try to "strace plasmashell" after killing it and see where it lingers around when the menu doesn't show up. Might provide better a better lead on the issue.

Offline

#5 2018-12-29 14:37:59

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

Result of "strace plasmashell":

...
read(51, "\361\313\35\303\355\n\177E\341\237?\312\3767\343\322v\360\317\17J\362M\221;F\16\202\203\210\33\16"..., 32768) = 32768
read(51, "\264\240\20Q\361\20G\371gZ\320M2wv\223#\6?\251\251z\315\313(\347\317\262\\\277S\373"..., 32768) = 32768
read(51, "\20\31\36\1\307\260\10\230S#`\32\31\201\r9\21\270\267 \2oX\"\220S\31\201\227\252#p"..., 32768) = 3854
read(51, "", 32768)                     = 0
futex(0x7f1b8072ba28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f1b8072ba28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f1b8072ba28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
getpeername(2, 0x7ffead7b3c60, [128])   = -1 ENOTSOCK (Socket operation on non-socket)
futex(0x7f1b8072ba28, FUTEX_WAKE_PRIVATE, 2147483647) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
getpid()                                = 9479
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2088, ...}) = 0
write(2, "\n(process:9479): GLib-GObject-\33["..., 121
(process:9479): GLib-GObject-WARNING **: 16:34:24.127: cannot register existing type 'AsLaunchable'
) = 121
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
getpid()                                = 9479
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2088, ...}) = 0
write(2, "\n(process:9479): GLib-GObject-\33["..., 150
(process:9479): GLib-GObject-WARNING **: 16:34:24.127: cannot add private field to invalid (non-instantiatable) type '<invalid>'
) = 150
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
getpid()                                = 9479
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2088, ...}) = 0
write(2, "\n(process:9479): GLib-\33[1;35mCRI"..., 119
(process:9479): GLib-CRITICAL **: 16:34:24.128: g_once_init_leave: assertion 'result != 0' failed
) = 119
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
getpid()                                = 9479
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2088, ...}) = 0
write(2, "\n(process:9479): GLib-GObject-\33["..., 157
(process:9479): GLib-GObject-CRITICAL **: 16:34:24.128: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
) = 157
futex(0x7f1b8072ba28, FUTEX_WAIT_PRIVATE, 241, NULL

Last edited by LaRusCat (2018-12-29 14:39:04)

Offline

#6 2018-12-29 15:44:31

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: Plasma freeze when user use right click on favourite item in launcher

So it's waiting for some futex, maybe on the theme or icon cache.

strace plasmashell 2>&1 | grep -i cache

to see what's opened or mmap'd - try to move suspicious files in /var/cache and ~/.cache/ away until the problem disappears. Log your efforst and ultimately place back the main contender for a cross-check.

Offline

#7 2018-12-29 23:57:09

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

Log for "strace plasmashell 2>&1 | grep -i cache" command after moving all content away from cache folders:

statx(AT_FDCWD, "/home/ruslan/.cache/ksycoca5_en_VY_DyBn+emCjra6EqrD24acPnao=", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1552197, ...}) = 0
statx(AT_FDCWD, "/home/ruslan/.local/share/mime/mime.cache", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=2096, ...}) = 0
statx(AT_FDCWD, "/usr/share/mime/mime.cache", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=154536, ...}) = 0
stat("/var/cache/app-info/gv/en_US.gvz", 0x7ffdecc75a50) = -1 ENOENT (No such file or directory)
stat("/var/cache/app-info", 0x7ffdecc75a10) = -1 ENOENT (No such file or directory)
stat("/home/ruslan/.local/share//mime/mime.cache", {st_mode=S_IFREG|0644, st_size=2096, ...}) = 0
stat("/home/ruslan/.local/share//mime/mime.cache", {st_mode=S_IFREG|0644, st_size=2096, ...}) = 0
openat(AT_FDCWD, "/home/ruslan/.local/share//mime/mime.cache", O_RDONLY) = 54
stat("/home/ruslan/.local/share/flatpak/exports/share/mime/mime.cache", 0x7ffdecc74550) = -1 ENOENT (No such file or directory)
stat("/var/lib/flatpak/exports/share/mime/mime.cache", 0x7ffdecc74550) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/mime/mime.cache", 0x7ffdecc74550) = -1 ENOENT (No such file or directory)
stat("/usr/share/mime/mime.cache", {st_mode=S_IFREG|0644, st_size=154536, ...}) = 0
openat(AT_FDCWD, "/usr/share/mime/mime.cache", O_RDONLY) = 54

Bug still reproducible.
Log for this command after moving files back to cache folder.

openat(AT_FDCWD, "/home/ruslan/.cache/icon-cache.kcache", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 51
openat(AT_FDCWD, "/home/ruslan/.cache/mesa_shader_cache/35/e74f07ead2491e7ca59a70d65e0cd612236c00", O_RDONLY|O_CLOEXEC) = 18
openat(AT_FDCWD, "/home/ruslan/.cache/mesa_shader_cache/42/3e7e1e35287fc6862e5e5f38cb3c12123ec5f2", O_RDONLY|O_CLOEXEC) = 54
openat(AT_FDCWD, "/home/ruslan/.cache/mesa_shader_cache/42/3e7e1e35287fc6862e5e5f38cb3c12123ec5f2", O_RDONLY|O_CLOEXEC) = 54
statx(AT_FDCWD, "/home/ruslan/.cache/ksycoca5_en_VY_DyBn+emCjra6EqrD24acPnao=", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=1552197, ...}) = 0
openat(AT_FDCWD, "/home/ruslan/.cache/mesa_shader_cache/42/3e7e1e35287fc6862e5e5f38cb3c12123ec5f2", O_RDONLY|O_CLOEXEC) = 54
stat("/var/cache/app-info/gv/en_US.gvz", {st_mode=S_IFREG|0644, st_size=790286, ...}) = 0
stat("/var/cache/app-info", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/var/cache/app-info/xml", 0x7fffe6207720) = -1 ENOENT (No such file or directory)
stat("/var/cache/app-info/xmls", 0x7fffe6207720) = -1 ENOENT (No such file or directory)
stat("/var/cache/app-info/yaml", 0x7fffe6207720) = -1 ENOENT (No such file or directory)
stat("/var/cache/app-info/icons", 0x7fffe6207720) = -1 ENOENT (No such file or directory)
access("/var/cache/app-info/gv/en_US.gvz", F_OK) = 0
openat(AT_FDCWD, "/var/cache/app-info/gv/en_US.gvz", O_RDONLY) = 54

Offline

#8 2018-12-30 00:01:47

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

Looks like there is problem in /usr/share/mime/mime.cache file but I am not completely sure.

Offline

#9 2018-12-30 10:09:09

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: Plasma freeze when user use right click on favourite item in launcher

Is that a tail or were the mime.cache's not opened in the second output?

Offline

#10 2018-12-30 10:37:44

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

There is following message about "en_US.gvz" in middle of first log(after moving cache from cache folders):

stat("/var/cache/app-info/gv/en_US.gvz", 0x7ffdecc75a50) = -1 ENOENT (No such file or directory)

Message about mime.cache is last in first log and plasmashell freeze after this message:

openat(AT_FDCWD, "/usr/share/mime/mime.cache", O_RDONLY) = 54

Message about en_US.gvz is last in second log(with my cache) so plasmashell freeze after this message:

openat(AT_FDCWD, "/var/cache/app-info/gv/en_US.gvz", O_RDONLY) = 54

So look like I need to cleaup all caches (including /usr/share/mime/mime.cache) correctly (I am not sure how) to fix this issue. Unfortunately I am not linux expert).
Looks like this issue is reproducible not only on my system according https://bbs.archlinux.org/viewtopic.php?id=242832 topic. So I can try to provide more information if you would like to find cause of this problem.

Last edited by LaRusCat (2018-12-30 10:41:42)

Offline

#11 2018-12-30 11:50:00

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: Plasma freeze when user use right click on favourite item in launcher

The tail of desg is less important wrt. the opened files since this is more of a race condition, the question is whether the mime cache is opened before this happens in all cases (since the appstream cache is not - you moved it away, thus the ENOENT)

Offline

#12 2018-12-30 23:11:01

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

I moved mime.cache and some other cache files... but it doesn't help. Received following messages on right click:

statx(AT_FDCWD, "/home/ruslan/.local/share/mime/mime.cache", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=2228, ...}) = 0
stat("/var/cache/app-info/gv/en_US.gvz", 0x7fff37c7ca10) = -1 ENOENT (No such file or directory)
stat("/var/cache/app-info", 0x7fff37c7c9d0) = -1 ENOENT (No such file or directory)
stat("/home/ruslan/.local/share//mime/mime.cache", {st_mode=S_IFREG|0644, st_size=2228, ...}) = 0
stat("/home/ruslan/.local/share//mime/mime.cache", {st_mode=S_IFREG|0644, st_size=2228, ...}) = 0
openat(AT_FDCWD, "/home/ruslan/.local/share//mime/mime.cache", O_RDONLY) = 54
stat("/home/ruslan/.local/share/flatpak/exports/share/mime/mime.cache", 0x7fff37c7b510) = -1 ENOENT (No such file or directory)
stat("/var/lib/flatpak/exports/share/mime/mime.cache", 0x7fff37c7b510) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/mime/mime.cache", 0x7fff37c7b510) = -1 ENOENT (No such file or directory)
stat("/usr/share/mime/mime.cache", 0x7fff37c7b510) = -1 ENOENT (No such file or directory)

Offline

#13 2018-12-30 23:12:59

seth
Member
Registered: 2012-09-03
Posts: 50,009

Re: Plasma freeze when user use right click on favourite item in launcher

stat("/home/ruslan/.local/share//mime/mime.cache", {st_mode=S_IFREG|0644, st_size=2228, ...}) = 0
openat(AT_FDCWD, "/home/ruslan/.local/share//mime/mime.cache", O_RDONLY) = 54

Offline

#14 2018-12-31 15:08:17

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

Moved /home/ruslan/.local/share//mime/mime.cache and got following log https://pastebin.com/ZHVhz1Tz (look at ###my comment at the end of log)

"/home/ruslan/.cache/ksycoca5_en_VY_DyBn+emCjra6EqrD24acPnao=" file was created automatically after moving away. Bug still reproducible.

Offline

#15 2019-01-01 02:14:26

Potomac
Member
Registered: 2011-12-25
Posts: 526

Re: Plasma freeze when user use right click on favourite item in launcher

you can try to create a new user, then connect to plasma with this new user account, the idea is to see if the bug is still present with a new plasma profile and the default settings of plasma,

you may have a corrupt plasma/kde directory in your home

Last edited by Potomac (2019-01-01 02:19:47)

Offline

#16 2019-01-02 13:13:35

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

Created new user. Bug still reproducible in new user session.
Also I have changed pacman mirror list a few days before this bug because my previous mirrors stopped working(server timeout or something like this error). Unfortunately I don't remember my previous URLs and I didn't save it.
Possible it caused this issue. But it is (almost) impossible to verify.

Last edited by LaRusCat (2019-01-02 13:13:50)

Offline

#17 2019-01-07 12:52:29

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

Found bug for this issue.
https://bugs.archlinux.org/task/61284?ids=61284
I have installed flatpak 1.1.2-1.

Offline

#18 2019-01-07 13:48:21

LaRusCat
Member
Registered: 2018-12-28
Posts: 11

Re: Plasma freeze when user use right click on favourite item in launcher

Issue isn't reproducible after removing flatpak 1.1.2-1

Offline

Board footer

Powered by FluxBB