Desktop: Nextcloud Desktop crashes almost daily on Mac Systems (Catalina)

Created on 8 Jun 2020  路  9Comments  路  Source: nextcloud/desktop

Expected behaviour

Nextcloud desktop client should be running in the background without crashing

Actual behaviour

Every day or so the desktop client crashes

ls -l ./Library/Logs/DiagnosticReports/nextcloud_2020-06-0*
-rw-------@ 1 vaimale  staff  1067087 Jun  4 08:27 ./Library/Logs/DiagnosticReports/nextcloud_2020-06-03-185245_Desktops-MacBook-Pro-3.crash
-rw-------@ 1 vaimale  staff  1068059 Jun  7 09:51 ./Library/Logs/DiagnosticReports/nextcloud_2020-06-05-083458_Desktops-MacBook-Pro-3.crash
-rw-------@ 1 vaimale  staff  1066992 Jun  7 09:51 ./Library/Logs/DiagnosticReports/nextcloud_2020-06-05-193921_Desktops-MacBook-Pro-4.crash

Steps to reproduce

  1. Run nextcloud Desktop normally (autostart login item)
  2. wait a few days
  3. Verify that it has crashed

Client configuration

Client version: Version 2.6.4stable (build 20200303)

Operating system: Mac OSX 10.15.5 Catalina

OS language: En

Qt version used by client package (Linux only, see also Settings dialog):

Client package (From Nextcloud or distro) (Linux only):

Installation path of client:
/Applications/nextcloud.app

Server configuration


Nextcloud version: Nextcloud 18.0.4

Storage backend (external storage):

Logs

In one of the Max OSX crash log, there are 1270 QNetworkAccessManager thread being spawned. It crashes on the 1271th attempt to spawn a new QNetworkAccessManager thread

Thread 4:: QNetworkAccessManager thread
0   libsystem_kernel.dylib              0x00007fff6c4c23d6 poll + 10
1   org.qt-project.QtCore               0x00000001104f191a qt_safe_poll(pollfd*, unsigned int, timespec const*) + 90
2   org.qt-project.QtCore               0x00000001104f3317 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 903
3   org.qt-project.QtCore               0x0000000110496ddf QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
4   org.qt-project.QtCore               0x00000001102d352c QThread::exec() + 140
5   org.qt-project.QtCore               0x00000001102d44a3 0x1102b2000 + 140451
6   libsystem_pthread.dylib             0x00007fff6c57f109 _pthread_start + 148
7   libsystem_pthread.dylib             0x00007fff6c57ab8b thread_start + 15

...
Thread 1274:: QNetworkAccessManager thread
0   org.qt-project.QtCore               0x00000001102ea56d QByteArray::fromBase64(QByteArray const&, QFlags<QByteArray::Base64Option>) + 205
1   org.qt-project.QtCore               0x00000001102ea490 QByteArray::fromBase64(QByteArray const&) + 16
2   org.qt-project.QtNetwork            0x000000010f6bf7b4 QSslDiffieHellmanParameters::defaultParameters() + 84
3   org.qt-project.QtNetwork            0x000000010f6bdf82 0x10f5f2000 + 835458
4   org.qt-project.QtNetwork            0x000000010f6bbeaf QSslConfiguration::QSslConfiguration() + 31
5   org.qt-project.QtNetwork            0x000000010f6d79c2 0x10f5f2000 + 940482
6   org.qt-project.QtNetwork            0x000000010f6d3262 0x10f5f2000 + 922210
7   org.qt-project.QtNetwork            0x000000010f6d3f57 0x10f5f2000 + 925527
8   org.qt-project.QtNetwork            0x000000010f6c5d01 QSslSocket::startClientEncryption() + 209
9   org.qt-project.QtNetwork            0x000000010f6c7b9c 0x10f5f2000 + 875420
10  org.qt-project.QtCore               0x00000001104ccb1c QMetaObject::activate(QObject*, int, int, void**) + 3132
11  org.qt-project.QtNetwork            0x000000010f69a643 0x10f5f2000 + 689731
12  org.qt-project.QtNetwork            0x000000010f699a68 0x10f5f2000 + 686696
13  org.qt-project.QtNetwork            0x000000010f6af107 0x10f5f2000 + 774407
14  org.qt-project.QtWidgets            0x000000010f7b276d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
15  org.qt-project.QtWidgets            0x000000010f7b3b72 QApplication::notify(QObject*, QEvent*) + 594
16  org.qt-project.QtCore               0x000000011049b7c4 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
17  org.qt-project.QtCore               0x00000001104f2793 QEventDispatcherUNIXPrivate::activateSocketNotifiers() + 99
18  org.qt-project.QtCore               0x00000001104f33fa QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1130
19  org.qt-project.QtCore               0x0000000110496ddf QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
20  org.qt-project.QtCore               0x00000001102d352c QThread::exec() + 140
21  org.qt-project.QtCore               0x00000001102d44a3 0x1102b2000 + 140451
22  libsystem_pthread.dylib             0x00007fff6c57f109 _pthread_start + 148
23  libsystem_pthread.dylib             0x00007fff6c57ab8b thread_start + 15

Thread 1275 Crashed:
0   libsystem_kernel.dylib              0x00007fff6c4c233a __pthread_kill + 10
1   libsystem_pthread.dylib             0x00007fff6c57ee60 pthread_kill + 430
2   libsystem_c.dylib                   0x00007fff6c449808 abort + 120
3   org.qt-project.QtCore               0x00000001102ca5e9 0x1102b2000 + 99817
4   org.qt-project.QtCore               0x00000001102cbd34 QMessageLogger::fatal(char const*, ...) const + 202
5   org.qt-project.QtCore               0x00000001104f1eb7 QEventDispatcherUNIXPrivate::QEventDispatcherUNIXPrivate() + 215
6   org.qt-project.QtCore               0x00000001104f2905 QEventDispatcherUNIX::QEventDispatcherUNIX(QObject*) + 37
7   org.qt-project.QtCore               0x00000001102d433a 0x1102b2000 + 140090
8   org.qt-project.QtCore               0x00000001102d2d4f 0x1102b2000 + 134479
9   org.qt-project.QtCore               0x00000001102d44c9 0x1102b2000 + 140489
10  libsystem_pthread.dylib             0x00007fff6c57f109 _pthread_start + 148
11  libsystem_pthread.dylib             0x00007fff6c57ab8b thread_start + 15

nextcloud_2020-06-03-185245_Desktops-MacBook-Pro-3.crash.zip

bug os macOS

All 9 comments

Some extra information.

If I run nextcloud desktop from the command line, here what I see:

/Applications/nextcloud.app/Contents/MacOS/nextcloud --logfile log.txt
QThreadPipe: Unable to create pipe: Too many open files
Abort trap: 6

the last line of the log.txt file (the only one with an error is:

[unknown    QEventDispatcherUNIXPrivate(): Can not continue without a thread pipe

Seeing the same behavior. Is the client leaking pipes? :P

This is also happening on macOS High Sierra 10.13.6 with NextCloud 2.6.4stable (build 20200303). It was also happening with the previous version of NextCloud (I updated it thinking that may resolve the issue), but unfortunately I forget to note which version I was running before the update.

+1

Since I've updated Nextcloud desktop to version 2.6.5, it has not crashed for me

Seeing this continuously on my wife's machine from 2.6.4 or so through the current release (3.something).

Confirmed: the problem reappeared for me again with version 3.0.1

Seeing this continuously on my wife's machine from 2.6.4 or so through the current release (3.something).

Like @valerioa can you confirm if 2.6.5 was affected or not? A bit surprised it skipped a version.

Mac 1: (High Sierra)
I have installed 3.0.1 on September 15:

ls -l /Applications/nextcloud.app/Contents/
total 8
drwxr-xr-x  30 root  admin   960 Sep 15 11:36 Frameworks
-rw-r--r--   1 root  admin  1456 Aug 28 03:50 Info.plist
drwxr-xr-x  10 root  admin   320 Sep 15 11:36 MacOS
drwxr-xr-x  13 root  admin   416 Sep 15 11:36 PlugIns
drwxr-xr-x   7 root  admin   224 Sep 15 11:36 Resources
drwxr-xr-x   3 root  admin    96 Sep 15 11:36 _CodeSignature

Crashed restarted promptly on September 16:

achilles:~ valerio$ ls -l ./Library/Logs/DiagnosticReports/*nextcloud*
-rw-------@ 1 valerio  staff  1144578 Sep 16 11:47 ./Library/Logs/DiagnosticReports/nextcloud_2020-09-16-114703_achilles.crash
-rw-------@ 1 valerio  staff  1149075 Sep 20 11:33 ./Library/Logs/DiagnosticReports/nextcloud_2020-09-20-113336_achilles.crash
-rw-------@ 1 valerio  staff  1147773 Sep 22 10:44 ./Library/Logs/DiagnosticReports/nextcloud_2020-09-22-104411_achilles.crash
-rw-------@ 1 valerio  staff  1146112 Sep 26 10:50 ./Library/Logs/DiagnosticReports/nextcloud_2020-09-26-105007_achilles.crash
-rw-------@ 1 valerio  staff  1144266 Sep 27 18:57 ./Library/Logs/DiagnosticReports/nextcloud_2020-09-27-185732_achilles.crash
-rw-------@ 1 valerio  staff  1144729 Sep 28 21:19 ./Library/Logs/DiagnosticReports/nextcloud_2020-09-28-211902_achilles.crash

Mac 2: (Catalina)
installed on 9/15

ls -l /Applications/nextcloud.app/Contents/
total 8
drwxr-xr-x  30 root  admin   960 Sep 15 11:35 Frameworks
-rw-r--r--   1 root  admin  1456 Aug 28 03:50 Info.plist
drwxr-xr-x  10 root  admin   320 Sep 15 11:35 MacOS
drwxr-xr-x  13 root  admin   416 Sep 15 11:35 PlugIns
drwxr-xr-x   7 root  admin   224 Sep 15 11:35 Resources
drwxr-xr-x   3 root  admin    96 Sep 15 11:35 _CodeSignature
ls -l ./Library/Logs/DiagnosticReports/*nextcloud*
-rw-------@ 1 vaimale  staff  1062738 Sep 25 07:40 ./Library/Logs/DiagnosticReports/nextcloud_2020-09-23-121901_Desktops-MacBook-Pro-4.crash



md5-3033af1c80e644b3761fc1d520e692cd



ls -l /Applications/nextcloud.app/Contents/
total 8
drwxr-xr-x  30 root  admin   960 Sep 15 17:19 Frameworks
-rw-r--r--   1 root  admin  1456 Aug 28 03:50 Info.plist
drwxr-xr-x  10 root  admin   320 Sep 15 17:19 MacOS
drwxr-xr-x  13 root  admin   416 Sep 15 17:19 PlugIns
drwxr-xr-x   7 root  admin   224 Sep 15 17:19 Resources
drwxr-xr-x   3 root  admin    96 Sep 15 17:19 _CodeSignature



md5-b9dd92ca11ab7716c00d9961b4f34a26



ls -l ./Library/Logs/DiagnosticReports/*nextcloud*
-rw-------@ 1 valerio  staff  1062811 Sep 25 10:12 ./Library/Logs/DiagnosticReports/nextcloud_2020-09-25-072719_tintoretto.crash

Mac 1 is always on, it never goes to sleep. Maybe one has to leave a Mac on for days, preventing it from going to sleep to see multiple crashes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Germano0 picture Germano0  路  60Comments

tabp0le picture tabp0le  路  119Comments

anatekar picture anatekar  路  53Comments

unix0r picture unix0r  路  43Comments

vitaliis picture vitaliis  路  48Comments