meganz / MEGAsync

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

Crashes on KDE Plasma 6 #909

Open infinitnet opened 3 months ago

infinitnet commented 3 months ago

The distro I use (CachyOS) rolled out KDE Plasma 6 a few days ago and I can't get megasync to start anymore. This should be reproducible on any Arch distro with KDE Plasma 6 on wayland and I've also seen reports in Fedora forums about this happening with KDE Plasma 6 on a Fedora base, so it should be distro agnostic and be directly related to Qt6/Plasma 6.

Stacktrace:

MEGAprivate ERROR DUMP
Application: MEGAsync [64 bit]
Hash: 3a10b0ce1bcd3e2a16b2fc979091cac0
Version code: 41202.1
Module name: MEGA
Timestamp: 1709791641199
Operating system: Linux
System version:  cachyos rolling/#1 SMP PREEMPT_DYNAMIC Thu, 07 Mar 2024 00:28:58 +0000
System release:  6.7.9-2-cachyos-lto
System arch: x86_64
Error info:
Segmentation fault (11) at address 0
Stacktrace:
/usr/lib/libxcb.so.1(xcb_send_request_with_fds64+0x15) [0x7a3e0e4e91b5]
/usr/lib/libxcb.so.1(xcb_send_request_with_fds64+0x15) [0x7a3e0e4e91b5]
/usr/lib/libxcb.so.1(xcb_send_request+0xe) [0x7a3e0e4e99ce]
/usr/lib/libxcb.so.1(xcb_intern_atom+0x89) [0x7a3e0e4eb1c9]
/usr/bin/megasync(+0x6306f6) [0x57c7d9e736f6]
/usr/bin/megasync(+0x630824) [0x57c7d9e73824]
/usr/bin/megasync(+0x63268a) [0x57c7d9e7568a]
/usr/bin/megasync(+0x652dcd) [0x57c7d9e95dcd]
/usr/bin/megasync(+0x644f2b) [0x57c7d9e87f2b]
/usr/bin/megasync(+0x5660a4) [0x57c7d9da90a4]
/usr/lib/libQt5Core.so.5(_ZN7QObject5eventEP6QEvent+0x1d5) [0x7a3e0bed12f5]
/usr/lib/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x8f) [0x7a3e0d75984f]
/usr/lib/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x128) [0x7a3e0bea7f28]
/usr/lib/libQt5Core.so.5(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x197) [0x7a3e0bead297]
/usr/lib/libQt5Core.so.5(+0x2f7018) [0x7a3e0bef7018]
/usr/lib/libglib-2.0.so.0(+0x59f69) [0x7a3e08a07f69]
/usr/lib/libglib-2.0.so.0(+0xb83a7) [0x7a3e08a663a7]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x32) [0x7a3e08a06162]
/usr/lib/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x6c) [0x7a3e0befb78c]
/usr/lib/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x134) [0x7a3e0bea6c34]
/usr/lib/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x93) [0x7a3e0bea8113]
/usr/bin/megasync(+0x270f23) [0x57c7d9ab3f23]
/usr/lib/libc.so.6(+0x26010) [0x7a3e0b426010]
/usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7a3e0b4260ca]
/usr/bin/megasync(+0x274c35) [0x57c7d9ab7c35]
infinitnet commented 3 months ago

Same on v5.2.0 @mfm-mega @vtmateos

image

cihe13375 commented 3 months ago

fyi, v5.2.0 works for me on KDE neon 6.0 (plasma 6.0.2, framework 6.0.0, qt 6.6.2, wayland) except common xwayland issues.

infinitnet commented 3 months ago

I also posted about this issue in the CachyOS forums and someone confirmed the bug is related to Wayland:

"I have just built v. 5.2.0 to test.

Yes, the problem seems to be wayland.

It works with the QT_QPA_PLATFORM=xcb environment variable (edit the kde menu application, or start it like this: QT_QPA_PLATFORM=xcb megasync)"

zemiret commented 1 week ago

Well, I am getting exactly the same issue, stating with QT_QPA_PLATFORM=xcb doesn't make any difference.

I am running arch linux.