meganz / MEGAsync

Easy automated syncing between your computers and your MEGA Cloud Drive
Other
1.58k stars 276 forks source link

MEGAsync crashes for specific folder when trying to start sync: Unable to add filesystem watch #933

Open joachimrs opened 2 months ago

joachimrs commented 2 months ago

If I delete the folder and make a new empty one and "Add" a sync, it crashes, too. Something about Filesystem Watch. Do I need to tweak some kernel parameters as I might have some lots of files here...

MEGAprivate ERROR DUMP
Application: MEGAsync [64 bit]
Hash: 601d70b93249eb45a55944c55914fb51
Version code: 50200.2
Module name: MEGA
Timestamp: 1712938112335
Operating system: Linux
System version:  linuxmint 6/#1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01)
System release:  6.1.0-18-amd64
System arch: x86_64
Error info:
Segmentation fault (11) at address 0x98
Stacktrace:
megasync(+0x489f0b) [0x55649bad9f0b]
megasync(+0x489f0b) [0x55649bad9f0b]
megasync(+0x489f3b) [0x55649bad9f3b]
megasync(+0x492ef3) [0x55649bae2ef3]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931f5) [0x55649bae31f5]
megasync(+0x492ee7) [0x55649bae2ee7]
megasync(+0x4931a9) [0x55649bae31a9]
megasync(+0x4c0116) [0x55649bb10116]
megasync(+0x4c05b9) [0x55649bb105b9]
megasync(+0x511d70) [0x55649bb61d70]
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xd44a3) [0x7f2fcced44a3]
/lib/x86_64-linux-gnu/libc.so.6(+0x89134) [0x7f2fcd0a8134]
/lib/x86_64-linux-gnu/libc.so.6(+0x1097dc) [0x7f2fcd1287dc]

.megaignore

-:Thumbs.db
-:desktop.ini
-:~*
-:._*
-:.DS_Store
-:*~.*
-:*.crdownload
-:*.sb-????????-??????
-:*.tmp
-:*#
-:*.nosync
-s:*
tt-mega commented 2 months ago

Hello joachimrs,

Please email us at support@mega.nz from the affected email address explaining your issue and we will be happy to help you.

Thanks!

joachimrs commented 1 month ago

Check you fs.inotify.max_user_watches via cat /proc/sys/fs/inotify/max_user_watches if it is 65535 it might not be high enough. Changing the value in /etc/sysctl.conf or a /etc/sysctl.d/##-megasync-inotify.conf file will help. There should be a /etc/sysctl.d/99-magesync-inotify-limit.conf which sets fs.inotify.max_user_watches = 524288 which is the max value. sysctl -p loads the new configuration. This works on Linux Mint 21.2. On LMDE6 I had to put the line into /etc/sysctl.conf and it does not seem to persist between reboots. Will investigate further.