Repository navigation
Description
Expected behaviour
ownCloud icon displayed constantly
Actual behaviour
ownCloud icon causes all icons to blinks few times per minute (like slow re-rendering of all icons) and eventually unity-panel-service crashes multiple times per day (once it didn't crash for a long time and its memory consumption grown to ridiculous 2.4 GiB). As a side effect, when I click on icon and wait few seconds, menu will be closed on menu re-rendering, so it is not always easy to even open settings.
Steps to reproduce
- Install ownCloud client nightly 2.1.1+
- Open it
- Observe tray icons
80 seconds video shows how icons blink, how memory consumption of unity-panel-service grows and it crashes eventually: https://owncloud.mokrynskyi.com/index.php/s/GWDpN3lexMgSOUG
Client configuration
Client version: 2.2.1~nightly2016617-1.1
Operating system: Ubuntu 16.04 x64 (Unity)
OS language: Ukrainian
Logs
Output of owncloud --logfile log.txt during blinking:
06-20 04:44:43:051 0xad87b0 csync_reconcile: Reconciliation for remote replica took 1,03 seconds visiting 329 files.
06-20 04:44:43:052 0xad87b0 csync_statedb_close: sqlite3_close=0
06-20 04:44:43:053 9675 OCC::SyncEngine::slotDiscoveryJobFinished: <<#### Reconcile end #################################################### 7070
06-20 04:44:43:054 9675 OCC::SyncEngine::slotDiscoveryJobFinished: Permissions of the root folder: "RDNVCK"
06-20 04:44:43:055 9675 OCC::SyncJournalDb::commitInternal: void OCC::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "post treewalk" and starting new transaction
06-20 04:44:43:057 9675 OCC::SyncJournalDb::commitInternal: void OCC::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "post stale entry removal" and starting new transaction
06-20 04:44:43:058 9675 OCC::OwncloudPropagator::start: Using QNAM/HTTP parallel code path
06-20 04:44:43:059 9675 OCC::SyncEngine::slotDiscoveryJobFinished: <<#### Post-Reconcile end #################################################### 7076
06-20 04:44:43:069 9675 OCC::SyncEngine::slotItemCompleted: void OCC::SyncEngine::slotItemCompleted(const OCC::SyncFileItem&, const OCC::PropagatorJob&) "" INSTRUCTION_NONE 4 ""
06-20 04:44:43:073 9675 OCC::SyncJournalDb::walCheckpoint: void OCC::SyncJournalDb::walCheckpoint() took 0 msec
06-20 04:44:43:074 9675 OCC::SyncJournalDb::commitInternal: void OCC::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "All Finished."
06-20 04:44:43:076 9675 OCC::SyncJournalDb::close: void OCC::SyncJournalDb::close() "/home/nazar-pc/***/.csync_journal.db"
06-20 04:44:43:076 9675 OCC::SyncJournalDb::commitTransaction: No database Transaction to commit
06-20 04:44:43:078 9675 OCC::SyncEngine::finalize: CSync run took 7095
06-20 04:44:43:078 9675 OCC::BandwidthManager::~BandwidthManager: virtual OCC::BandwidthManager::~BandwidthManager()
06-20 04:44:43:080 9675 OCC::Folder::slotSyncFinished: - client version 2.2.1nightly2016617 (build 1697) Qt 5.5.1 SSL OpenSSL 1.0.2g-fips 1 Mar 2016
06-20 04:44:43:085 9675 OCC::Folder::slotSyncFinished: -> SyncEngine finished without problem.
06-20 04:44:43:086 9675 OCC::Folder::bubbleUpSyncResult: Processing result list and logging took 0 Milliseconds.
06-20 04:44:43:087 9675 OCC::Folder::bubbleUpSyncResult: OO folder slotSyncFinished: result: 2
06-20 04:44:43:089 9675 OCC::SyncJournalDb::checkConnect: sqlite3 version "3.13.0"
06-20 04:44:43:750 9675 OCC::SyncJournalDb::checkConnect: sqlite3 journal_mode= "wal"
06-20 04:44:43:751 9675 OCC::SyncJournalDb::commitInternal: void OCC::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "checkConnect" and starting new transaction
06-20 04:44:43:752 9675 OCC::SyncJournalDb::tableColumns: Columns in the current journal: ("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid", "remotePerm", "filesize", "ignoredChildrenRemote", "contentChecksum", "contentChecksumTypeId")
06-20 04:44:43:754 9675 OCC::SyncJournalDb::commitInternal: void OCC::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "update database structure: add inode index" and starting new transaction
06-20 04:44:43:755 9675 OCC::SyncJournalDb::commitInternal: void OCC::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "update database structure: add path index" and starting new transaction
06-20 04:44:43:756 9675 OCC::SyncJournalDb::tableColumns: Columns in the current journal: ("path", "lastTryEtag", "lastTryModtime", "retrycount", "errorstring", "lastTryTime", "ignoreDuration", "renameTarget")
06-20 04:44:43:757 9675 OCC::SyncJournalDb::commitInternal: void OCC::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit "checkConnect End"
Activity
guruz commentedon Jun 20, 2016
But this is a bug in Ubuntu then? @sil2100
@jnweiger @ckamm @ogoffart This might be when the tray menu is re-created?
ckamm commentedon Jun 20, 2016
@nazar-pc Do you see the "Enabled QDBusPlatformMenu workaround" string in your log output? In that case we hide and re-show the tray menu regularly, as a workaround for some other bugs.
nazar-pc commentedon Jun 20, 2016
Yes, I see following in log file:
ckamm commentedon Jun 21, 2016
@nazar-pc Could you check if running the client like this
is a workaround?
nazar-pc commentedon Jun 21, 2016
No, there is still the same message in log file and the same behavior.
ckamm commentedon Jun 22, 2016
@nazar-pc What happens when you pause all syncs or log out of the account? In that case the tray menu shouldn't be updated as frequently.
nazar-pc commentedon Jun 22, 2016
I've paused all synchronization for half an our and haven't seen any blinking during this period of time. Also, memory consumption of
unity-panel-servicedidn't grow during this time (before I paused it's memory was 1.7 GiB).ckamm commentedon Jun 23, 2016
@nazar-pc My current guess is that the problem appears with
setupContextMenucalls. When you unpause one of the folders and then just wait for a bit without triggering synchronization, do you observe abnormal CPU use and memory growth?nazar-pc commentedon Jun 23, 2016
CPU use was always low.
Now I unpaused just one directory and opened log window.
As soon as first lines appeared, memory consumption of
unity-panel-servicegrown a bit, and with every new synchronization it grows further.Here are first lines that appeared and when memory growth happened:
2 minutes - memory consumption grown by ~3 MiB.
Tray: Add minimal mode as workaround and testing tool #4985 #4990
33 remaining items
nazar-pc commentedon Aug 31, 2016
They already are since yesterday I guess.
I'm not using Unity right now, so I'll install it and then reply if it helped.
nazar-pc commentedon Sep 11, 2016
Looks good, memory doesn't leak, but I can't use menu anymore. When I click on icon it feels like I've clicked twice - menu closes in a fraction of second.
However, as I click to open menu I see that memory consumption of
unity-panel-serviceis constantly growing by 0.7-1 MiBguruz commentedon Sep 13, 2016
Closing in favour of #5164 (comment)
guruz commentedon Sep 15, 2016
@nazar-pc Do you also want to try the PR?
#5179
nazar-pc commentedon Sep 15, 2016
Will it be in Nighly? I'm not using Unity anymore, so I need to install it and reboot to try.
Compile ownCloud client from source in addition to that is quite a lot of an effort:)
kichooo commentedon Oct 27, 2016
Same problem. Running that for some time, and I get 1GB consumed.
syzer commentedon Oct 27, 2016
Is RAM issue resolved?
guruz commentedon Oct 31, 2016
1GB consumed where? This is the ownCloud client bugtracker, if the memory is consumed in other software please try there.
kichooo commentedon Oct 31, 2016
Hello guruz - it is the ubuntu-panel-service. I didn't have a problem before. It happens only with owncloud client. I will try to report it on ubuntu tracker as well.
Also, I got redirected here from Ubuntu: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1199877
IvarSnaaijer commentedon Dec 22, 2016
The problem is currently closed on both sides. The problem seems to only happen with the owncloud app. After a day (screen is locked most of the time) unity has racked up 10Gb of data in the unity-panel-service. This does not happen when the client is paused. Blaming it on the other guy will not solve the problem.
mitya57 commentedon Dec 23, 2016
@IvarSnaaijer The fix for Ubuntu package is in progress, tracked at LP: #1636677.
guruz commentedon Jan 2, 2017
2.3 nightly might improve this, please try.
mabkenar commentedon Feb 17, 2017
According to this report, this problem is fixed in 2.3.0git.
kichooo commentedon Feb 20, 2017
I have a clean install with apt-get versions of both programs and it doesn't reproduce, whereas I had it happening on every single one of the deployments I did before, irregardless of hardware. Looks like this bug is killed.