nextcloud / desktop

💻 Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.07k stars 804 forks source link

[Bug]: Crash (std::bad_alloc) when opening settings on current Arch Linux #7311

Closed nursoda closed 1 month ago

nursoda commented 1 month ago

⚠️ Before submitting, please verify the following: ⚠️

Bug description

The desktop client crashes upon opening its settings. When starting from a terminal, I see this:

QGuiApplication::setDesktopFileName: the specified desktop file name ends with .desktop. For compatibility reasons, the .desktop suffix will be removed. Please specify a desktop file name without .desktop suffix
nextcloud.gui.application: Migrating old config …
…
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Abgebrochen (Speicherabzug geschrieben)

Steps to reproduce

  1. the desktop client has multiple clouds configured and used to work up until now, no changes except for OS updates
  2. Have a fully updated Arch Linux (2024-10-12)
  3. Start the desktop client (pacman -Q: 2:3.14.1-1)
  4. Right-Click on Tray Icon, select "Settings"
  5. 1-2 seconds later, the client crashes

Expected behavior

Should not crash – yet: Is this an application or a system issue? Used to work fine before the latest updates.

Which files are affected by this bug

Operating system

Linux

Which version of the operating system you are running.

Arch Linux

Package

Distro package manager

Nextcloud Server version

28.0.11

Nextcloud Desktop Client version

3.14.1

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

Nextcloud Server logs

n/a

Additional info

Re-Installing the distro-package did not help.

Here's the latest Arch packages that were installed: 2024-10-05: composer gdk-pixbuf2 gtk-update-icon-cache libproxy gtk4 libwebp libgphoto2 libngtcp2 libwnck3 pandoc-cli python-shtab python-validate-pyproject webkit2gtk-4.1 xz device-mapper haveged libnftnl lvm2 nftables python-pycryptodome 2024-10-06: glib2 (2.82.1-1 -> 2.82.1-2) glib2-devel hwdata linux (6.11.1.arch1-1 -> 6.11.2.arch1-1) linux-headers mesa spirv-llvm-translator opencl-clover-mesa opencl-rusticl-mesa vulkan-radeon jasper libwmf libyuv ppp python-numpy qt6-declarative imagemagick pandoc-cli python-cffi 2024-10-07: gperftools libmanette pandoc-cli vim-runtime vim libnghttp3 pandoc-cli git libqalculate 2024-10-09: cmake libnm networkmanager npm pandoc-cli pdfarranger perl-image-exiftool rebuild-detector systemd-libs systemd chromium cifs-utils eos-bash-shared libblockdev libblockdev-crypto libblockdev-fs libblockdev-loop libblockdev-mdraid libblockdev-nvme libblockdev-part libblockdev-swap libimobiledevice-glue libupnp systemd-resolvconf systemd-sysvcompat firefox firefox-i18n-de python-async-timeout python-zeroconf cmake libnm networkmanager npm pandoc-cli pdfarranger perl-image-exiftool rebuild-detector systemd-libs systemd chromium cifs-utils eos-bash-shared libblockdev libblockdev-crypto libblockdev-fs libblockdev-loop libblockdev-mdraid libblockdev-nvme libblockdev-part libblockdev-swap libimobiledevice-glue libupnp systemd-resolvconf systemd-sysvcompat firefox firefox-i18n-de python-async-timeout python-zeroconf 2024-10-10: python-charset-normalizer signal-desktop ark baloo-widgets plasma-activities libplasma bluedevil kdecoration breeze breeze-gtk libkexiv2 kio-extras dolphin dolphin-plugins ffmpegthumbs libkcddb k3b signon-kwallet-extension kaccounts-integration kactivitymanagerd kate kcalc kcharselect kde-cli-tools kde-gtk-config kdegraphics-mobipocket libkdcraw kdegraphics-thumbnailers kirigami-addons kglobalacceld layer-shell-qt libkscreen kscreenlocker kwayland kwin kpipewire libksysguard ksystemstats milou ocean-sound-theme plasma-activities-stats plasma5support qqc2-breeze-style xdg-desktop-portal-kde plasma-integration plasma-workspace kdeplasma-addons kdesdk-thumbnailers kgamma systemsettings kinfocenter kmenuedit konsole kpmcore kscreen ksshaskpass kwallet-pam kwalletmanager okular partitionmanager polkit-kde-agent powerdevil plasma-desktop plasma-disks plasma-nm plasma-pa plasma-systemmonitor plasma5-integration print-manager sddm-kcm spectacle 2024-10-11: linux (6.11.2.arch1-1 -> 6.11.3.arch1-1) linux-headers js128 webkit2gtk-4.1 lib2geom python inkscape eos-bash-shared gmic libuv dracut libcups cups xorg-xwayland
nursoda commented 1 month ago

Downgrading to 3.13.4 and re-installing 3.14.1 though a system update solved the issue, not sure why:

pacman -U https://archive.archlinux.org/packages/n/nextcloud-client/nextcloud-client-2%3A3.13.4-1-x86_64.pkg.tar.zst
pacman -Suy