InSync crashing on Fedora 25

Since quite some time ago InSync started to crash with various frequency. Cannot find any correlation between actions and crashes, sometimes during the sync, sometimes during standby.

I can see following lines in out.txt:

X Error: RenderBadPicture (invalid Picture parameter) 141
Extension: 138 (RENDER)
Minor opcode: 7 (RenderFreePicture)
Resource id: 0x4200004
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 18 (X_ChangeProperty)
Resource id: 0x4200003
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 4 (X_DestroyWindow)
Resource id: 0x4200003
*** Error in `./insync’: malloc(): memory corruption (fast): 0x00000000033cd1d1 ***

Also there are errors in Problem Reporting tool, with lines like:

reason: insync killed by SIGABRT

and details:

User Logs:
– Logs begin at Mon 2017-01-30 10:20:20 IST, end at Sun 2017-04-02 11:29:47 IDT. –
Apr 02 11:29:45 Wasp-T460p.tlv audit[2242]: ANOM_ABEND auid=29435 uid=29435 gid=29435 ses=2 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=2242 comm=“insync” exe="/usr/lib/insync/insync" sig=6

Sometimes I don’t see this issue for days, sometimes it crashes throughout the days dozens of times. Finally found time to report it and happy to help in finding root cause.

Tagging our engineer @lpugoy :slight_smile:

@Lord_Phoenix: Please try disabling notifications as a workaround.

Okay, I’ve disabled it, lets see if that helps.

That didn’t help at all, already had it crashed 3 times in 2 days with notifications disabled. Unfortunately there are no timestamps in out.txt logs and it’s polluted with icon issues, so hard to pin point the issue.

I have a similar issue:

Thread 0x00007f1372c0c700:
File “main__insync.py”, line 117 in main
File “main__insync.py”, line 180 in
File “main.py”, line 128 in
File “”, line 6 in
*** Error in `./insync’: malloc(): memory corruption (fast): 0x00000000042f6881 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fe0535d37e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x81d61)[0x7fe0535ddd61]
/lib/x86_64-linux-gnu/libc.so.6(__libc_malloc+0x54)[0x7fe0535df5d4]
/usr/lib/insync/libQtCore.so.4(_ZN7QStringC1EPK5QChari+0x2a)[0x7fe050e1f69a]
/usr/lib/insync/libQtCore.so.4(_ZNK7QString3midEii+0x5b)[0x7fe050e20b5b]
/usr/lib/insync/libQtCore.so.4(_ZNK7QString5splitERK5QCharNS_13SplitBehaviorEN2Qt15CaseSensitivityE+0x7b)[0x7fe050e25e5b]
/usr/lib/insync/libQtDBus.so.4(_ZN9QDBusUtil17isValidObjectPathERK7QString+0xe2)[0x7fe049ec5f92]
/usr/lib/insync/libQtDBus.so.4(_ZN15QDBusObjectPath5checkEv+0x10)[0x7fe049ee2030]
/usr/lib/insync/libQtDBus.so.4(+0x53050)[0x7fe049edb050]
/usr/lib/insync/libQtDBus.so.4(+0x2e92b)[0x7fe049eb692b]
/usr/lib/insync/libQtDBus.so.4(+0x26b14)[0x7fe049eaeb14]
/usr/lib/insync/libdbus-1.so.3(dbus_connection_dispatch+0x336)[0x7fe0489459d6]
/usr/lib/insync/libQtDBus.so.4(+0x1b489)[0x7fe049ea3489]
/usr/lib/insync/libQtDBus.so.4(+0x1b617)[0x7fe049ea3617]
/usr/lib/insync/libQtDBus.so.4(+0x5ec8b)[0x7fe049ee6c8b]
/usr/lib/insync/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2da)[0x7fe050ef287a]
/usr/lib/insync/libQtCore.so.4(_ZN15QSocketNotifier9activatedEi+0x2e)[0x7fe050f3d2ae]
/usr/lib/insync/libQtCore.so.4(_ZN15QSocketNotifier5eventEP6QEvent+0x13b)[0x7fe050efb64b]
/usr/lib/insync/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x8c)[0x7fe04e75ee2c]
/usr/lib/insync/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x270)[0x7fe04e7654a0]
/usr/lib/insync/PySide.QtGui.so(+0x1e8c5e)[0x7fe04f430c5e]
/usr/lib/insync/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x6d)[0x7fe050ede4dd]
/usr/lib/insync/libQtCore.so.4(+0x1ab4a8)[0x7fe050f0c4a8]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2a7)[0x7fe050580197]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4a3f0)[0x7fe0505803f0]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7fe05058049c]
/usr/lib/insync/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x71)[0x7fe050f0b7a1]
/usr/lib/insync/libQtGui.so.4(+0x26bbe6)[0x7fe04e800be6]
/usr/lib/insync/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x2f)[0x7fe050edd0af]
/usr/lib/insync/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x175)[0x7fe050edd3a5]
/usr/lib/insync/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x89)[0x7fe050ee2b79]
/usr/lib/insync/PySide.QtGui.so(+0x1e556d)[0x7fe04f42d56d]
./insync(PyEval_EvalFrameEx+0x1054)[0x4a76d4]
./insync(PyEval_EvalCodeEx+0x2b1)[0x4ace51]
./insync(PyEval_EvalFrameEx+0x7c1)[0x4a6e41]
./insync(PyEval_EvalCode+0xfc)[0x4adaac]
./insync(PyEval_EvalFrameEx+0x3cfe)[0x4aa37e]
./insync(PyEval_EvalCode+0xfc)[0x4adaac]
./insync(PyEval_EvalFrameEx+0x3cfe)[0x4aa37e]
./insync(PyEval_EvalCode+0xfc)[0x4adaac]
./insync(PyRun_StringFlags+0x1cd)[0x4cdf6d]
./insync(main+0x125)[0x465c85]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fe05357c830]
./insync[0x541554]

@lightoze: Are you using Fedora 25 also? If you’re using Arch Linux there is a fix for Insync crashing there: Insync Arch Linux Not Starting: Segfault at 730 “error 14”.

I’m using Kubuntu 16.04

@lightoze: I see. Have you tried disabling notifications?

I did it now, no crashes so far, but sometimes it takes weeks to crash. I’ll report back if it happens again.
If this is caused by notifications, do you have any ETA for the fix?

@lightoze: We are planning a change in our build process that might address this, but there’s no ETA for that yet.