Client crash on Mac OS

Actual behaviour

Client systematically get a crash when I try to move a file from a shared folder to another shared folder on a mac when the “delete file” rights is disable on owncloud for this account.

Let’s say we have folder A and folder B, both shared. The user can edit, rename, but not delete a file.

I can move the file in the MacOS finder from folder A to folder B, but the owncloud client will crash and stop syncing with an error “no permission to move file”.

I understand that moving a file can by interpreted by the server as “delete file X in folder A” than “create file X in folder B”, but it’s pretty annoying got the the owncloud client crash every time.

The owncloud client use version 2.7.4, and I tested this behaviour on Mac OS 10.13 and 10.15, crash 100% of the time.

Server configuration

Operating system, - CentOS Linux release 7.8.2003 (Core)

Web server, httpd-2.4.6-93.el7.centos.x86_64 (apache)

Database, 10.4.16-MariaDB - (stored on “owncloud” db)

PHP version, php-7.2.34-1.el7.remi.x86_64

ownCloud version: 10.6

Storage backend (external storage): no external storage, files stored on local - ‘datadirectory’ => ‘/var/www/html/owncloud/data’, which is:
/dev/mapper/centos_ricl-root xfs 195G 121G 75G 62% /

Client configuration

Client version: 2.7.4

Operating system: 10.13.6, 10.15.7

Installation path of client: /User

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.

This error not happen on windows 10. Everything work fine.

I just did a third test on a third mac with the same crash.

I can see “Server replied “403 Forbidden” to MOVE” just before the crash.

Did you submit the crash report? Please post the crash ID.

1 Like

I have sent many crash report, but there’s no way to retrieve a crash report number. So I just did another attemps. Here’s the crash :
6027a2ff-4d63-438a-b19c-c5586b291640

Sandbox: owncloud_crash_r(1224) System Policy: deny(2) file-write-unlink /Users/admin/Library/Saved Application State/com.owncloud.desktopclient.savedState/restorecount.plist
Violation: System Policy: deny(2) file-write-unlink /Users/admin/Library/Saved Application State/com.owncloud.desktopclient.savedState/restorecount.plist
Process: owncloud_crash_r [1224]
Path: /Applications/owncloud.app/Contents/MacOS/owncloud_crash_reporter
Load Address: 0x10f6a4000
Identifier: owncloud_crash_reporter
Version: ??? (???)
Code Type: x86_64 (Native)
Parent Process: launchd [1]
Responsible: /Applications/owncloud.app/Contents/MacOS/owncloud_crash_reporter [1224]
User ID: 501

Date/Time: 2021-01-17 07:20:42.692 PST
OS Version: Mac OS X 10.13.6 (17G14042)
Report Version: 8

MetaData: {“process”:“owncloud_crash_r”,“operation”:“file-write-unlink”,“uid”:501,“normalized_target”:[“Users”,“admin”,“Library”,“Saved Application State”,“com.owncloud.desktopclient.savedState”,“restorecount.plist”],“profile”:“platform”,“action”:“deny”,“pid”:1224,“primary-filter”:“path”,“flags”:5,“signing-id”:“owncloud_crash_reporter”,“path”:"/Users/admin/Library/Saved Application State/com.owncloud.desktopclient.savedState/restorecount.plist",“profile-flags”:0,“summary”:“deny(2) file-write-unlink /Users/admin/Library/Saved Application State/com.owncloud.desktopclient.savedState/restorecount.plist”,“hardware”:“Mac”,“platform-binary”:false,“platform-policy”:true,“target”:"/Users/admin/Library/Saved Application State/com.owncloud.desktopclient.savedState/restorecount.plist",“primary-filter-value”:"/Users/admin/Library/Saved Application State/com.owncloud.desktopclient.savedState/restorecount.plist",“platform_binary”:“no”,“build”:“Mac OS X 10.13.6 (17G14042)”,“process-path”:"/Applications/owncloud.app/Contents/MacOS/owncloud_crash_reporter",“errno”:2}

Thread 0 (id: 140704):
0 libsystem_kernel.dylib 0x00007fff6c86b1fa mach_msg_trap + 10
1 HIToolbox 0x00007fff43a3a84f PingEventQueueMachPort + 79
2 HIToolbox 0x00007fff43a1cbc4 Convert1CGEvent(unsigned char) + 227
3 HIToolbox 0x00007fff43a1ca88 MainLoopObserver(unsigned int, OpaqueEventRef*, void*) + 41
4 HIToolbox 0x00007fff439dffa0 _NotifyEventLoopObservers + 154
5 HIToolbox 0x00007fff43a07d57 RunCurrentEventLoopInMode + 223
6 HIToolbox 0x00007fff43a07a0f ReceiveNextEventCommon + 366
7 HIToolbox 0x00007fff43a07884 _BlockUntilNextEventMatchingListInModeWithFilter + 64
8 AppKit 0x00007fff41cb4a3b _DPSNextEvent + 2085
9 AppKit 0x00007fff4244ae34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
10 AppKit 0x00007fff41ca984d -[NSApplication run] + 764
11 libqcocoa.dylib 0x0000000112dc1ac9
12 QtCore 0x0000000110b5bfbe QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 462
13 QtCore 0x0000000110b644d2 QCoreApplication::exec() + 130
14 owncloud_crash_reporter 0x000000010f6a737d
15 libdyld.dylib 0x00007fff6c724015 start + 1
16 owncloud_crash_reporter 0x0000000000000002

Thread 1 (id: 140732):
0 libsystem_kernel.dylib 0x00007fff6c87528a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6ca3bbe9 start_wqthread + 13

Thread 2 (id: 140734):
0 libsystem_kernel.dylib 0x00007fff6c87528a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6ca3bbe9 start_wqthread + 13

Thread 3 (id: 140746):
0 libsystem_kernel.dylib 0x00007fff6c8751a2 __unlink + 10
1 AppKit 0x00007fff41e8d24d -[NSPersistentUICrashHandler clearCrashCountFileIfNecessary] + 74
2 AppKit 0x00007fff4281c25a ___NSPersistentUIDispatchQueueAsync_block_invoke + 28
3 libdispatch.dylib 0x00007fff6c6f25fa _dispatch_call_block_and_release + 12
4 libdispatch.dylib 0x00007fff6c6eadb8 _dispatch_client_callout + 8
5 libdispatch.dylib 0x00007fff6c6ecb2c _dispatch_root_queue_drain + 902
6 libdispatch.dylib 0x00007fff6c6ec755 _dispatch_worker_thread3 + 101
7 libsystem_pthread.dylib 0x00007fff6ca3c169 _pthread_wqthread + 1387
8 libsystem_pthread.dylib 0x00007fff6ca3bbe9 start_wqthread + 13

Thread 4 (id: 140748):
0 libsystem_kernel.dylib 0x00007fff6c87528a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff6ca3bbe9 start_wqthread + 13
2 0x6e496d656d685373

Thread 5 (id: 140755, com.apple.NSEventThread):
0 libsystem_kernel.dylib 0x00007fff6c86b1fa mach_msg_trap + 10
1 CoreFoundation 0x00007fff44728dc5 __CFRunLoopServiceMachPort + 341
2 CoreFoundation 0x00007fff44728117 __CFRunLoopRun + 1783
3 CoreFoundation 0x00007fff44727787 CFRunLoopRunSpecific + 487
4 AppKit 0x00007fff41df1fc4 _NSEventThread + 184
5 libsystem_pthread.dylib 0x00007fff6ca3c661 _pthread_body + 340
6 libsystem_pthread.dylib 0x00007fff6ca3c50d _pthread_body + 0
7 libsystem_pthread.dylib 0x00007fff6ca3bbf9 thread_start + 13

Binary Images:
0x10f6a4000 - 0x10f6adfff owncloud_crash_reporter (0) /Applications/owncloud.app/Contents/MacOS/owncloud_crash_reporter
0x110918000 - 0x110ec7ff7 org.qt-project.QtCore (5.12 - 5.12.9) <3b7fc142-50a8-3da8-a794-ab1c4139811b> /Applications/owncloud.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
0x112d88000 - 0x112ee6ff7 libqcocoa.dylib (0) /Applications/owncloud.app/Contents/PlugIns/platforms/libqcocoa.dylib
0x7fff41c73000 - 0x7fff42ad1fff com.apple.AppKit (6.9 - 1561.61.100) <4e6ea3fa-8c2c-3b21-bff9-6f8c458b7be1> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff439d8000 - 0x7fff43cddfff com.apple.HIToolbox (2.1.1) <8d2ebe85-9af0-38bc-acd3-1ed978643907> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7fff446a6000 - 0x7fff44b42fff com.apple.CoreFoundation (6.9 - 1455.300) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff6c6e9000 - 0x7fff6c722ff7 libdispatch.dylib (913.60.3) <285526b6-a2a6-316d-a1cc-37803b71e203> /usr/lib/system/libdispatch.dylib
0x7fff6c723000 - 0x7fff6c740ff7 libdyld.dylib (551.5) <49aba86d-dd48-3133-9b14-b9a564eebc66> /usr/lib/system/libdyld.dylib
0x7fff6c858000 - 0x7fff6c87eff7 libsystem_kernel.dylib (4570.71.82.8) /usr/lib/system/libsystem_kernel.dylib
0x7fff6ca39000 - 0x7fff6ca44fff libsystem_pthread.dylib (301.50.1) <283e64a7-a2b2-3212-95ba-4d21f9ae36cf> /usr/lib/system/libsystem_pthread.dylib

Just did another test, this time on Big Sur (OS 11)
Crash report : 8e85a6d3-6ae4-4608-9f2b-0bf2708b1f94

It seems that no one is replying to this question. Where’s the community when you need it? ;(

Hey,

i think the community can’t help much if a client is crashing. :slightly_frowning_face:

I think this needs a developer of ownCloud. From what i have read in the past the ownCloud people are accepting such crash reports at https://github.com/owncloud/client/issues where i personally would always report such issues to make the ownCloud people aware of them.

1 Like

Team fixed some evil bugs in the 2.9 branch, which caused crashes, especially around permissions. You can test-drive with the latest 2.9 pre-release builds:

I would be very grateful if anyone could test-drive and verify. In case it still crashes, please report back with the new crash ID, so the team can have another look.

1 Like