Repository navigation
Closed
Description
Expected behaviour
The ownCloud client should not use 100% of a CPU core without actually seeming to do anything.
Actual behaviour
It does exactly that.
Steps to reproduce
Unfortunately, I did not find easy steps to 100% reproduce this:
- Start ownCloud client
- Wait a while
- See how it completely uses one CPU core
I have seen the issue usually after no more than 10h (accumulated time, i.e. the machine may have been in stand-by which does not count to the 10h above).
Client configuration
Client version: 2.2.2
Operating system: Debian testing
OS language: English
Installation path of client: /usr (?)
Logs
I have not managed to catch a log yet, but here is a backtrace from when it freezes:
(gdb) thread apply all bt
Thread 7 (Thread 0x7f2df8f84700 (LWP 25071)):
#0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1 0x00007f2e0fb615f6 in QWaitConditionPrivate::wait_relative (time=30000, this=0x7f2de4004ff0) at thread/qwaitcondition_unix.cpp:126
#2 QWaitConditionPrivate::wait (time=30000, this=0x7f2de4004ff0) at thread/qwaitcondition_unix.cpp:134
#3 QWaitCondition::wait (this=this@entry=0x7f2de40046e0, mutex=mutex@entry=0x7f2de4004d80, time=30000) at thread/qwaitcondition_unix.cpp:208
#4 0x00007f2e0fb5ce2a in QThreadPoolThread::run (this=0x7f2de40046d0) at thread/qthreadpool.cpp:127
#5 0x00007f2e0fb60808 in QThreadPrivate::start (arg=0x7f2de40046d0) at thread/qthread_unix.cpp:341
#6 0x00007f2e0e36b464 in start_thread (arg=0x7f2df8f84700) at pthread_create.c:333
#7 0x00007f2e0e6c230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 6 (Thread 0x7f2de3dda700 (LWP 4163)):
#0 0x00007f2e0e6b919d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f2e0c5e439c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f2e0c5e44ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f2e0fd8a1cb in QEventDispatcherGlib::processEvents (this=0x7f2ddc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:419
#4 0x00007f2e0fd32e4a in QEventLoop::exec (this=this@entry=0x7f2de3dd9cc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5 0x00007f2e0fb5b9e4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#6 0x00007f2e0fb60808 in QThreadPrivate::start (arg=0x55d01ef770e0) at thread/qthread_unix.cpp:341
#7 0x00007f2e0e36b464 in start_thread (arg=0x7f2de3dda700) at pthread_create.c:333
#8 0x00007f2e0e6c230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 5 (Thread 0x7f2df9785700 (LWP 4161)):
#0 0x00007f2e0e6b919d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f2e0c5e439c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f2e0c5e44ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f2e0fd8a1af in QEventDispatcherGlib::processEvents (this=0x7f2de40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#4 0x00007f2e0fd32e4a in QEventLoop::exec (this=this@entry=0x7f2df9784cc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5 0x00007f2e0fb5b9e4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#6 0x00007f2e0fb60808 in QThreadPrivate::start (arg=0x55d01ee5f040) at thread/qthread_unix.cpp:341
#7 0x00007f2e0e36b464 in start_thread (arg=0x7f2df9785700) at pthread_create.c:333
#8 0x00007f2e0e6c230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 4 (Thread 0x7f2dfb7fe700 (LWP 4151)):
#0 0x00007f2e0c5e3fb4 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007f2e0c5e4400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f2e0c5e44ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f2e0fd8a1af in QEventDispatcherGlib::processEvents (this=0x7f2dec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#4 0x00007f2e0fd32e4a in QEventLoop::exec (this=this@entry=0x7f2dfb7fdc90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5 0x00007f2e0fb5b9e4 in QThread::exec (this=this@entry=0x7f2e13600d40 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:500
#6 0x00007f2e1358d515 in QDBusConnectionManager::run (this=0x7f2e13600d40 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:189
#7 0x00007f2e0fb60808 in QThreadPrivate::start (arg=0x7f2e13600d40 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:341
#8 0x00007f2e0e36b464 in start_thread (arg=0x7f2dfb7fe700) at pthread_create.c:333
#9 0x00007f2e0e6c230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 3 (Thread 0x7f2dfbfff700 (LWP 4150)):
#0 0x00007f2e0e6b919d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f2e0c5e439c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f2e0c5e44ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007f2e0fd8a1af in QEventDispatcherGlib::processEvents (this=0x7f2df40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#4 0x00007f2e0fd32e4a in QEventLoop::exec (this=this@entry=0x7f2dfbffecc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5 0x00007f2e0fb5b9e4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#6 0x00007f2e0fb60808 in QThreadPrivate::start (arg=0x55d01ee01db0) at thread/qthread_unix.cpp:341
#7 0x00007f2e0e36b464 in start_thread (arg=0x7f2dfbfff700) at pthread_create.c:333
#8 0x00007f2e0e6c230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 2 (Thread 0x7f2e010e3700 (LWP 4149)):
#0 0x00007f2e0e6b919d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f2e0935e382 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2 0x00007f2e0935fff7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3 0x00007f2e0301ba89 in QXcbEventReader::run (this=0x55d01ede6c60) at qxcbconnection.cpp:1325
#4 0x00007f2e0fb60808 in QThreadPrivate::start (arg=0x55d01ede6c60) at thread/qthread_unix.cpp:341
#5 0x00007f2e0e36b464 in start_thread (arg=0x7f2e010e3700) at pthread_create.c:333
#6 0x00007f2e0e6c230d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
Thread 1 (Thread 0x7f2e134a3900 (LWP 4148)):
#0 0x00007f2e0e6b919d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007f2e0c5e439c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f2e0c5e44ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#3 0x00007f2e0fd8a1af in QEventDispatcherGlib::processEvents (this=0x55d01ee306c0, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#4 0x00007f2e0fd32e4a in QEventLoop::exec (this=this@entry=0x7ffc5f275c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5 0x00007f2e0fd3b50c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#6 0x000055d01df6af1e in main ()
Potentially related: #4990, but for me, the CPU is attributed to the owncloud client.
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36263029-lxqt-2-2-2-linux-freezes-at-100-of-one-cpu-core?utm_campaign=plugin&utm_content=tracker%2F216457&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F216457&utm_medium=issues&utm_source=github).
Activity
[-]ownCloud client uses freezes at 100% of one CPU core[/-][+][2.2.2.] [Linux] freezes at 100% of one CPU core[/+]guruz commentedon Jul 22, 2016
Those thread backtraces look OK to me, not like if anything is wrong..
FYI @ogoffart
guruz commentedon Jul 25, 2016
Maybe you can try to catch a few more backtraces and also run the client with
owncloud --logfile -to see what it is doing?RalfJung commentedon Jul 25, 2016
Yeah, I am trying to -- but of course, once I am watching it, it stops doing this :/
RalfJung commentedon Jul 26, 2016
It happened again -- of course after a reboot, so I didn't get any log... the UI is still responding, but I could not find any way to get a log there, either.
This time, I caught the output of
perf top, indicating which functions use up all CPU:and here's another backtrace:
RalfJung commentedon Jul 27, 2016
And another one:
I have a logfile, too, this time -- but it contains lots of filenames and things which I'd not like to post publicly. Any email address I could post that to? The log goes on until I killed the client; I don't know when the high load started.
guruz commentedon Jul 29, 2016
@RalfJung The interesting thing is that it is not doing anything in your backtraces but still you say there is high load.
About the log: You can just pick a few lines and remove the filenames, that's no problem.
ogoffart commentedon Jul 29, 2016
In all cases, the only thread that is not waiting, is the QDBUS thread that runs QDBusConnectionManager::run but the backtrace show only some low level processing of events.
Is there lots of dbus communication hapenning?
Normaly owncloud does not use dbus at all.
guruz commentedon Jul 29, 2016
Maybe related to DBUS menu? @ckamm
Let's wait for more info/logs from @RalfJung
Could also try to move the Qt DBUS plugin(?) out of the Qt installation and check if that changes anything..
RalfJung commentedon Jul 29, 2016
Okay, here's a censored log:
That would cripple all other Qt-based applications -- as in, my entire desktop -- wouldn't it?
jturcotte commentedon Jul 29, 2016
Could you try getting a trace with linux perf? The right command line is always a pain to remember, but something like this should give a better idea than individual stack traces:
And then:
guruz commentedon Jul 29, 2016
This is a temporary quick idea to find out the cause, not to cripple your desktop for ever:)
RalfJung commentedon Jul 29, 2016
Well, the bug appears roughly every 2 to 3 days, and this is my main work machine -- crippling it for 3 days is not an option. ;)
Will do that next time the bug happens.
36 remaining items
guruz commentedon Feb 15, 2017
Forgot to mention the link to 2.3.0beta1: https://owncloud.org/changelog/desktop/
mvdw commentedon Jun 27, 2017
I have this same problem already for months on KDE, on a laptop and a desktop.
Both my systems have OpenSuse Leap 42.2.
I recorded a logfile and waited until the CPU got to 100%.
This is the log contents when one of the CPUs was at 100%:
mvdw commentedon Jun 27, 2017
This bug is not LXQt related.
This duplicate also proves this: #5839
This bug is also present in ownCloud client version 2.3.2.
Please adapt the title for these two facts.
ckamm commentedon Jun 28, 2017
@mvdw Further up it sounded like this issue may be fixed upstream with Qt 5.7. Any chance you can test that?
I also wonder whether setting the environment variable
OWNCLOUD_MINIMAL_TRAY_MENU=1makes a difference.[-][LXQt] [2.2.2.] [Linux] freezes at 100% of one CPU core[/-][+][2.2.2 - 2.3.2] [Linux] freezes at 100% of one CPU core[/+][-][2.2.2 - 2.3.2] [Linux] freezes at 100% of one CPU core[/-][+][Linux] freezes at 100% of one CPU core[/+]mvdw commentedon Jun 28, 2017
Testing with Qt 5.7 will have to wait until it comes with the (next?) OpenSuse Leap version.
Setting an environment variable for ownCloud client is possible, if only I would know where.
I found this:
https://doc.owncloud.org/desktop/latest/advancedusage.html
but it does not tell in what section of the owncloud.cfg to put this OWNCLOUD_MINIMAL_TRAY_MENU=1 - if that is the correct file.
ckamm commentedon Jun 28, 2017
@mvdw Quit the client, open a shell and try something like
Check the tray menu (should only have "Quit") to verify it worked.
guruz commentedon Oct 6, 2017
https://central.owncloud.org/t/desktop-client-2-4-0-alpha1-released/9837
Can you check if the situation is better with this?
@RalfJung @mvdw @lemmy04 @michitux
lemmy04 commentedon Oct 6, 2017
I'm on Leap 42.3 and QT 5.9 by now, and I haven't seen this kind of behaviour for quite some time...
ckamm commentedon Oct 9, 2017
@lemmy04 Great, thanks for the report. I'm closing this for now. Feel free to reopen if it still affects anyone.