Open DoodlesEpic opened 2 years ago
Hello, We are not able to reproduce the problem with the same desktop configuration. However, we see you installed the MEGAsync package from "RPM Fusion" repository, which is not maintained by us. Please try to install the package from our repository, block MEGAsync from RPM fusion, install our official build and test again. Please remove your currently installed MEGAsync, then block MEGAsync from RPM Fusion with the following instructions:
Edit /etc/yum.repos.d/rpmfusion-nonfree-updates.repo Right before group [rpmfusion-nonfree-updates-debuginfo] add exclude=megasync
That will leave something like:
**[rpmfusion-nonfree-updates] name=RPM Fusion for Fedora $releasever - Nonfree - Updates
metalink=https://mirrors.rpmfusion.org/metalink?repo=nonfree-fedora-updates-released-$releasever&arch=$basearch enabled=1 enabled_metadata=1 type=rpm-md gpgcheck=1 repo_gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever exclude=megasync [rpmfusion-nonfree-updates-debuginfo] <················>**
Then download MEGAsync from our website: http://mega.nz/desktop Pay attention to choose the corresponding Linux version.
I have uninstalled and cleaned my local environment, restarted the machine, and reinstalled from the Megasync website selecting Fedora 36 (as I did originally, rpmfusion took over as the repo once an update was released) and the same error persists, the application opens and just a few seconds later crashes when theoretically the option to "Show status" window would appear.
User logs
Avoiding wayland
QSocketNotifier: Can only be used with threads started with QThread
QSocketNotifier: Can only be used with threads started with QThread
QSocketNotifier: Can only be used with threads started with QThread
QSocketNotifier: Can only be used with threads started with QThread
Installation
Installed Packages
megasync.x86_64 4.6.7-2.1 @@commandline
Notes I should note that setting this environment variable on your shell profile or rc won't be enough as these are not sourced by Wayland the same way it happens on X11 since there is no display server, instead you have to define them in your .config/environment.d/envvars.conf file for the display manager to load these such as:
XDG_SESSION_TYPE=wayland
MOZ_ENABLE_WAYLAND=1
_JAVA_AWT_WM_NONREPARENTING=1
GTK_THEME_VARIANT=dark
QT_QPA_PLATFORM=wayland-egl
More information about this
If you are still not able to reproduce then it's possible that it might be something else + this environment variable (as using the XWayland backend works), I have documentation on how I set up my systems here in the README if it's of any interest to reproduce the issue: https://github.com/DoodlesEpic/Dotfiles
By the way just something else I should note is that after changing environment variables on envrionment.d you should really restart the computer and not just log out as for some reason these are only sourced on boot (even though they are per user).
I have made some tests with another machine that does not have a NVIDIA graphics card and the problem persists. This time however instead of setting the environment variables on environment.d I just set them just before running megasync and I was still able to reproduce the problems. I also enabled Wayland debugging if that could be useful for debugging this in any way.
I have also determined that setting the QT_QPA_PLATFORM environment variable to wayland
or really anything other than xcb
or eglfs
reproduces the issue.
User logs
i want to use mega so much, please make it run on wayland
Issue still persists
Bump. I get:
Avoiding wayland
Error unsetting QT_QPA_PLATFORMTHEME vble
No GUI starts, but it does show up in the system tray and is not crashing.
Same issue here
Avoiding wayland Error unsetting QT_QPA_PLATFORMTHEME vble
I got a same issue :Error unsetting QT_QPA_PLATFORMTHEME vble $ megasync Avoiding wayland Error unsetting QT_QPA_PLATFORMTHEME vble
Same problem here with flatpack on nixOS
$ flatpak run nz.mega.MEGAsync Avoiding wayland Qt: Session management error: Could not open network socket Error unsetting QT_QPA_PLATFORMTHEME vble Qt: Session management error: Could not open network socket
I tried like below and it works for me on my Arch on Hyprland QT_SCALE_FACTOR=1 QT_QPA_PLATFORM=xcb megasync
I tried like below and it works for me on my Arch on Hyprland QT_SCALE_FACTOR=1 QT_QPA_PLATFORM=xcb megasync
Thanks! How do I log in now? nothing happens when I press the button
I have just switched to using the mega-cmd
tool instead of the GUI.
mega-cmd
> login myemail@example.com
# It will prompt you for password and 2FA code
> sync /local/path /mega-remote/path
# e.g. /BACKUP/MEGA /
You can add mega-sync
to be started after boot.
https://github.com/meganz/MEGAcmd/blob/master/UserGuide.md#sync-example
same Issue as everyone else here: Arch + Hyprland.
Icon shows up in tray, but impossible to perform anything else (login, settings, etc...)
@xavier-sanna -- @bonesbe's suggestion to use QT_SCALE_FACTOR=1 QT_QPA_PLATFORM=xcb megasync
is working just fine for me on Arch + Hyprland; is it still giving you problems?
@xavier-sanna -- @bonesbe's suggestion to use
QT_SCALE_FACTOR=1 QT_QPA_PLATFORM=xcb megasync
is working just fine for me on Arch + Hyprland; is it still giving you problems?
unfortunately, yes.
I cannot interact with anything (as said above: login, settings, etc).
Just for information, I'm using the megasync-bin
package.
I use Hyprland and have same issues but i find the way to fix it
sudo pacman -S xhost
then
xhost si:localuser:root
sudo -E megasync
it will start megasync with root but as normal user you already logged in. Gui will start then you will be able log in to your mega. after that skip first comfiguration and then gui will close also say that it cant start icon in tray but its not matter. after that just close your terminal window. Start terminal again and write QT_SCALE_FACTOR=1 QT_QPA_PLATFORM=xcb megasync
mega will start mormaly in tray but you will be already loged in and when you go to settings all will be working and you will be able to add your folders etc and all will sync etc.
If your environment uses Wayland and you set the QT_QPA_PLATFORM environment variable to
wayland-egl
then MegaSync is going to crash when it tries to load the window (although the app indicator does appear for some moments).User Logs:
Context:
Backtrace
``` { "signal": 11 , "executable": "/usr/bin/megasync" , "stacktrace": [ { "crash_thread": true , "frames": [ { "address": 140013961116895 , "build_id": "200fe5bc6e395606abf9dde7589ce24312d6a0d7" , "build_id_offset": 85215 , "function_name": "xcb_send_request_with_fds64" , "file_name": "/lib64/libxcb.so.1" } , { "address": 140013961118925 , "build_id": "200fe5bc6e395606abf9dde7589ce24312d6a0d7" , "build_id_offset": 87245 , "function_name": "xcb_send_request" , "file_name": "/lib64/libxcb.so.1" } , { "address": 140013961124872 , "build_id": "200fe5bc6e395606abf9dde7589ce24312d6a0d7" , "build_id_offset": 93192 , "function_name": "xcb_intern_atom" , "file_name": "/lib64/libxcb.so.1" } , { "address": 94120980778808 , "build_id": "df5aa0a2d0f5efba688a55ef09da44d38450f665" , "build_id_offset": 3694392 , "function_name": "getAtom(xcb_connection_t*, char const*) [clone .lto_priv.0]" , "file_name": "/usr/bin/megasync" } , { "address": 94120980881716 , "build_id": "df5aa0a2d0f5efba688a55ef09da44d38450f665" , "build_id_offset": 3797300 , "function_name": "MegaApplication::createInfoDialog()" , "file_name": "/usr/bin/megasync" } , { "address": 94120980839832 , "build_id": "df5aa0a2d0f5efba688a55ef09da44d38450f665" , "build_id_offset": 3755416 , "function_name": "MegaApplication::loggedIn(bool)" , "file_name": "/usr/bin/megasync" } , { "address": 94120981036469 , "build_id": "df5aa0a2d0f5efba688a55ef09da44d38450f665" , "build_id_offset": 3952053 , "function_name": "MegaApplication::onRequestFinish(mega::MegaApi*, mega::MegaRequest*, mega::MegaError*)" , "file_name": "/usr/bin/megasync" } , { "address": 140013922764069 , "build_id": "282d201724e22bb2b66ebdacd4a84f231572abfa" , "build_id_offset": 2954533 , "function_name": "QObject::event(QEvent*)" , "file_name": "/lib64/libQt5Core.so.5" } , { "address": 140013936364674 , "build_id": "7c6ea6e60ebfdc8daa951f2e7bd0897c086b0346" , "build_id_offset": 1764482 , "function_name": "QApplicationPrivate::notify_helper(QObject*, QEvent*)" , "file_name": "/lib64/libQt5Widgets.so.5" } , { "address": 140013922592344 , "build_id": "282d201724e22bb2b66ebdacd4a84f231572abfa" , "build_id_offset": 2782808 , "function_name": "QCoreApplication::notifyInternal2(QObject*, QEvent*)" , "file_name": "/lib64/libQt5Core.so.5" } , { "address": 140013922605492 , "build_id": "282d201724e22bb2b66ebdacd4a84f231572abfa" , "build_id_offset": 2795956 , "function_name": "QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)" , "file_name": "/lib64/libQt5Core.so.5" } , { "address": 140013922924551 , "build_id": "282d201724e22bb2b66ebdacd4a84f231572abfa" , "build_id_offset": 3115015 , "function_name": "postEventSourceDispatch(_GSource*, int (*)(void*), void*)" , "file_name": "/lib64/libQt5Core.so.5" } , { "address": 140013872619439 , "build_id": "28db949e96e0a76c593d4a30e8104576a0c3da62" , "build_id_offset": 348079 , "function_name": "g_main_context_dispatch" , "file_name": "/lib64/libglib-2.0.so.0" } , { "address": 140013872968392 , "build_id": "28db949e96e0a76c593d4a30e8104576a0c3da62" , "build_id_offset": 697032 , "function_name": "g_main_context_iterate.constprop.0" , "file_name": "/lib64/libglib-2.0.so.0" } , { "address": 140013872609600 , "build_id": "28db949e96e0a76c593d4a30e8104576a0c3da62" , "build_id_offset": 338240 , "function_name": "g_main_context_iteration" , "file_name": "/lib64/libglib-2.0.so.0" } , { "address": 140013922923258 , "build_id": "282d201724e22bb2b66ebdacd4a84f231572abfa" , "build_id_offset": 3113722 , "function_name": "QEventDispatcherGlib::processEvents(QFlagsDSO list
``` /usr/bin/megasync megasync-4.6.7.0-1.fc36.x86_64 (RPM Fusion) 1657129476 /usr/lib64/qt5/plugins/bearer/libqnmbearer.so qt5-qtbase-5.15.3-3.fc36.x86_64 (Fedora Project) 1655958869 ```OS info
``` NAME="Fedora Linux" VERSION="36 (Workstation Edition)" ID=fedora VERSION_ID=36 VERSION_CODENAME="" PLATFORM_ID="platform:f36" PRETTY_NAME="Fedora Linux 36 (Workstation Edition)" ANSI_COLOR="0;38;2;60;110;180" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora:36" HOME_URL="https://fedoraproject.org/" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f36/system-administrators-guide/" SUPPORT_URL="https://ask.fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=36 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=36 PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy" VARIANT="Workstation Edition" VARIANT_ID=workstation ```Environment variables
``` SHELL=/usr/bin/zsh SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/3296,unix/unix:/tmp/.ICE-unix/3296 HISTCONTROL=ignoredups XDG_MENU_PREFIX=gnome- HOSTNAME=desktop-fedora HISTSIZE=1000 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh XMODIFIERS=@im=ibus DESKTOP_SESSION=gnome EDITOR=/usr/bin/nano PWD=/home/doodles XDG_SESSION_DESKTOP=gnome LOGNAME=doodles SYSTEMD_EXEC_PID=3296 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.R34YO1 GDM_LANG=en_US.UTF-8 HOME=/home/doodles USERNAME=doodles LANG=en_US.UTF-8 _JAVA_AWT_WM_NONREPARENTING=1 XDG_CURRENT_DESKTOP=GNOME WAYLAND_DISPLAY=wayland-0 INVOCATION_ID=49a3e62c8b4c4843b5c0b4024e1d812c MANAGERPID=3193 QT_QPA_PLATFORM=wayland-egl MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed GNOME_SETUP_DISPLAY=:1 XDG_SESSION_CLASS=user LESSOPEN=||/usr/bin/lesspipe.sh %s USER=doodles DISPLAY=:0 MOZ_ENABLE_WAYLAND=1 QT_IM_MODULE=ibus DESKTOP_AUTOSTART_ID=105cdd465b2b959899165720606244346300000032960017 XDG_RUNTIME_DIR=/run/user/1000 DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/ which_declare=typeset -f JOURNAL_STREAM=8:31656 XDG_DATA_DIRS=/home/doodles/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/ GDK_BACKEND=wayland,x11 PATH=/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin GDMSESSION=gnome DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus MAIL=/var/spool/mail/doodles GIO_LAUNCHED_DESKTOP_FILE_PID=3786 GIO_LAUNCHED_DESKTOP_FILE=/home/doodles/.config/autostart/megasync.desktop OLDPWD=/home/doodles QT_WAYLAND_DECORATION=gnome XCURSOR_SIZE=24 XCURSOR_THEME=Adwaita ```