desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Desktop client fills all available memory and crashes after Steam client is launched

Open roundoutandabout opened this issue 2 years ago • 2 comments

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

Bug description

Under certain conditions the Nextcloud desktop client fills all available memory and then eventually crashes.

Steps to reproduce

  1. Launch Nextcloud desktop client
  2. The client is in the process of uploading files or checking for changes in remote
  3. Launch the Steam client
  4. Nextcloud desktop client stops responding and starts using all available memory until it crashes

image image

Expected behavior

The Nextcloud doesn't use excessive memory, stays responsive and doesn't crash.

Which files are affected by this bug

No files affected

Operating system

Linux

Which version of the operating system you are running.

Manjaro Stable 2022-06-12

Package

Distro package manager

Nextcloud Server version

24.0.1 (snap)

Nextcloud Desktop Client version

3.5.1

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

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • [ ] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Nextcloud Server logs

No response

Additional info

The Steam client is steam-native package, version 1.0.0.70-2 When exiting Steam, the memory leak continues. When Steam client is launched first and then Nextcloud client, the issue does not occur.

Unfortunately can't include the desktop client logs because of too much sensitive data.

roundoutandabout avatar Jun 16 '22 22:06 roundoutandabout

Hi @roundoutandabout does this also happen when using the AppImage version of the client?

claucambra avatar Jul 20 '22 12:07 claucambra

Sorry @claucambra, my nextcloud instance is offline for the time being. I have to postpone the investigation.

roundoutandabout avatar Aug 02 '22 21:08 roundoutandabout

confirm on macos M2

definitely thrashing with RAM, using up to 4GB and 99.3% cpu looks like a memory leak, though it manages to free some memory sometimes. doesn't respond to anything anymore. happens while syncing.

probably crashes because of the kernel OOM thing.

arch-user-france1 avatar Jan 06 '23 17:01 arch-user-france1

Same on Fedora 38, utilizes 6% CPU usage while in idle (All synced) until it fills up my 32 GB of ram and crashes my system. Happens with both the appimage and fedora rpm version. But i cant tell if it is steam related however steam was running everytime this happened

TimLisemer avatar Jul 12 '23 12:07 TimLisemer

Why would steam be related to this Nextcloud problem?

arch-user-france1 avatar Jul 12 '23 13:07 arch-user-france1

I just responded to the original issue where steam was specifically mentioned. I am saying i am experiencing everything that was mentioned in the original issue but cant confirm the steam part, because it also sounds weird to me

TimLisemer avatar Jul 13 '23 00:07 TimLisemer

Why would steam be related to this Nextcloud problem?

Maybe it's not. I've described the way how I was able reproduce the crash.

roundoutandabout avatar Aug 02 '23 21:08 roundoutandabout

@roundoutandabout What file system are you using? If BTRFS, try installing games on EXT4. I did this with CS2 and the memory leaks stopped.

budyakovan avatar Oct 03 '23 16:10 budyakovan

@budyakovan I use ext4.

roundoutandabout avatar Oct 03 '23 16:10 roundoutandabout

Hi @roundoutandabout does this also happen when using the AppImage version of the client?

The issue is reproducible with the official AppImage client version 3.10.0

roundoutandabout avatar Oct 07 '23 15:10 roundoutandabout

Same problem here, with Nextcloud Desktop Client Version 3.10.1 on Manjaro 6.6.1-1, Steam version 1.0.0.78-4.

Everything works as expected until I launch Steam. Right after launching Steam, even if I immediately kill it again, Nextcloud stops responding, starts using 100% of one CPU core and slowly and steadily fills up memory until the system freezes and then kills the Nextcloud process. There is no other way to set this off, it only (but reliably) happens when starting Steam. It's been like this for a while now.

I only rarely start Steam on my system while Nextcloud client is always running. Without Steam I never have any issues with memory.

MoritzLange avatar Nov 27 '23 00:11 MoritzLange

I have the same issue. Both packages were installed from the Manjaro repos.

extra/nextcloud-client 2:3.10.1-1 multilib/steam 1.0.0.78-4

Operating System: Manjaro Linux KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.112.0 Qt Version: 5.15.11 Kernel Version: 6.6.3-1-MANJARO (64-bit) Graphics Platform: X11

sudo journalctl -f outputs nothing related to nextcloud

❯ /usr/bin/nextcloud -l
nextcloud.gui.application: Migrating old config from "/home/nathan/.local/share/Nextcloud" to "/home/nathan/.config/Nextcloud"
nextcloud.gui.application: Failed to move the old config directory to its new location ( "/home/nathan/.local/share/Nextcloud" to "/home/nathan/.config/Nextcloud" )
nextcloud.gui.application: Will move the individual files ("nathan_sync.log")
nextcloud.gui.application: Fallback move of  "nathan_sync.log" also failed

This is a fresh install, so there wasn't an "old config directory"

Steps to Reproduce:

  • launch the nextcloud client
  • launch steam runtime
  • right-click the system tray icon and nothing happens
  • spam right-click and you'll get a frozen dialog in ~2 minutes
  • observe nextcloud in htop maxing 1 core and slowly consuming more memory.

Interestingly, steam throws a gpu related core-dump to to system-log shortly after

System Log Snippet in a Collapse
Dec 01 19:27:53 manjaro-desktop steam-runtime-launcher-service[23037]: bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
Dec 01 19:27:55 manjaro-desktop plasmashell[22830]: BRefreshApplicationsInLibrary 1: 0ms
Dec 01 19:27:55 manjaro-desktop kded5[969]: Registering ":1.440/org/ayatana/NotificationItem/steam" to system tray
Dec 01 19:28:22 manjaro-desktop kernel: GpuWatchdog[22925]: segfault at 0 ip 00007fbe6e592bc6 sp 00007fbe64f304f0 error 6 in libcef.so[7fbe6a0ef000+7770000] likely on CPU 5 (core 5, socket 0)
Dec 01 19:28:22 manjaro-desktop kernel: Code: 89 de e8 5d ee 6e ff 80 7d cf 00 79 09 48 8b 7d b8 e8 2e 66 2c 03 41 8b 84 24 e0 00 00 00 89 45 b8 48 8d 7d b8 e8 3a d1 b5 fb <c7> 04 25 00 00 00 00 37 13 00 00 48 83 c4 38 5b 41 5c 41 5d 41 5e
Dec 01 19:28:23 manjaro-desktop systemd[1]: Created slice Slice /system/systemd-coredump.
Dec 01 19:28:23 manjaro-desktop systemd[1]: Started Process Core Dump (PID 24769/UID 0).
Dec 01 19:28:23 manjaro-desktop systemd-coredump[24773]: [🡕] Process 22900 (steamwebhelper) of user 1000 dumped core.
                                                         
                                                         Stack trace of thread 22925:
                                                         #0  0x00007fbe6e592bc6 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x5f92bc6)
                                                         #1  0x00007fbe6e592453 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x5f92453)
                                                         #2  0x00007fbe6ca16176 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4416176)
                                                         #3  0x00007fbe6ca26bbc n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4426bbc)
                                                         #4  0x00007fbe6c9df72a n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x43df72a)
                                                         #5  0x00007fbe6ca27284 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4427284)
                                                         #6  0x00007fbe6c9fee3e n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x43fee3e)
                                                         #7  0x00007fbe6ca40f47 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4440f47)
                                                         #8  0x00007fbe6ca62a45 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4462a45)
                                                         #9  0x00007fbe67aaa9eb n/a (libc.so.6 + 0x8c9eb)
                                                         #10 0x00007fbe67b2e7cc n/a (libc.so.6 + 0x1107cc)
                                                         
                                                         Stack trace of thread 22904:
                                                         #0  0x00007fbe67aa74ae n/a (libc.so.6 + 0x894ae)
                                                         #1  0x00007fbe67aa9d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                         #2  0x00007fbe616c78dc n/a (radeonsi_dri.so + 0xc78dc)
                                                         #3  0x00007fbe617147ec n/a (radeonsi_dri.so + 0x1147ec)
                                                         #4  0x00007fbe67aaa9eb n/a (libc.so.6 + 0x8c9eb)
                                                         #5  0x00007fbe67b2e7cc n/a (libc.so.6 + 0x1107cc)
                                                         
                                                         Stack trace of thread 22919:
                                                         #0  0x00007fbe67aa74ae n/a (libc.so.6 + 0x894ae)
                                                         #1  0x00007fbe67aa9d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                         #2  0x00007fbe616c78dc n/a (radeonsi_dri.so + 0xc78dc)
                                                         #3  0x00007fbe617147ec n/a (radeonsi_dri.so + 0x1147ec)
                                                         #4  0x00007fbe67aaa9eb n/a (libc.so.6 + 0x8c9eb)
                                                         #5  0x00007fbe67b2e7cc n/a (libc.so.6 + 0x1107cc)
                                                         
                                                         Stack trace of thread 22907:
                                                         #0  0x00007fbe67aa74ae n/a (libc.so.6 + 0x894ae)
                                                         #1  0x00007fbe67aa9d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                         #2  0x00007fbe616c78dc n/a (radeonsi_dri.so + 0xc78dc)
                                                         #3  0x00007fbe617147ec n/a (radeonsi_dri.so + 0x1147ec)
                                                         #4  0x00007fbe67aaa9eb n/a (libc.so.6 + 0x8c9eb)
                                                         #5  0x00007fbe67b2e7cc n/a (libc.so.6 + 0x1107cc)
                                                         
                                                         Stack trace of thread 22917:
                                                         #0  0x00007fbe67aa74ae n/a (libc.so.6 + 0x894ae)
                                                         #1  0x00007fbe67aa9d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                         #2  0x00007fbe616c78dc n/a (radeonsi_dri.so + 0xc78dc)
                                                         #3  0x00007fbe617147ec n/a (radeonsi_dri.so + 0x1147ec)
                                                         #4  0x00007fbe67aaa9eb n/a (libc.so.6 + 0x8c9eb)
                                                         #5  0x00007fbe67b2e7cc n/a (libc.so.6 + 0x1107cc)
                                                         
                                                         Stack trace of thread 22916:
                                                         #0  0x00007fbe67aa74ae n/a (libc.so.6 + 0x894ae)
                                                         #1  0x00007fbe67aa9d40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                         #2  0x00007fbe616c78dc n/a (radeonsi_dri.so + 0xc78dc)
                                                         #3  0x00007fbe617147ec n/a (radeonsi_dri.so + 0x1147ec)
                                                         #4  0x00007fbe67aaa9eb n/a (libc.so.6 + 0x8c9eb)
                                                         #5  0x00007fbe67b2e7cc n/a (libc.so.6 + 0x1107cc)
                                                         
                                                         Stack trace of thread 22900:
                                                         #0  0x00007fbe67b20f6f __poll (libc.so.6 + 0x102f6f)
                                                         #1  0x00007fbe6782420b n/a (libxcb.so.1 + 0xd20b)
                                                         #2  0x00007fbe6782629b xcb_wait_for_special_event (libxcb.so.1 + 0xf29b)
                                                         #3  0x00007fbe637d921f n/a (libGLX_mesa.so.0 + 0x5221f)
                                                         #4  0x00007fbe637dbf7b n/a (libGLX_mesa.so.0 + 0x54f7b)
                                                         #5  0x00007fbe637cfa0f n/a (libGLX_mesa.so.0 + 0x48a0f)
                                                         #6  0x00007fbe63c3dc86 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libGLESv2.so + 0x43dc86)
                                                         #7  0x00007fbe63c3f887 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libGLESv2.so + 0x43f887)
                                                         #8  0x00007fbe63b2c429 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libGLESv2.so + 0x32c429)
                                                         #9  0x00007fbe63a5295b n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libGLESv2.so + 0x25295b)
                                                         #10 0x00007fbe6dd02a2b n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x5702a2b)
                                                         #11 0x00007fbe6dcf1e24 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x56f1e24)
                                                         #12 0x00007fbe6dced2a3 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x56ed2a3)
                                                         #13 0x00007fbe6ca16176 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4416176)
                                                         #14 0x00007fbe6ca26bbc n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4426bbc)
                                                         #15 0x00007fbe6c9dfa6a n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x43dfa6a)
                                                         #16 0x00007fbe6ca27284 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4427284)
                                                         #17 0x00007fbe6c9fee3e n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x43fee3e)
                                                         #18 0x00007fbe71630712 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x9030712)
                                                         #19 0x00007fbe6c869c2a n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4269c2a)
                                                         #20 0x00007fbe6c86add2 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x426add2)
                                                         #21 0x00007fbe6f1e012f n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x6be012f)
                                                         #22 0x00007fbe6f1e067e n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x6be067e)
                                                         #23 0x00007fbe6c869101 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x4269101)
                                                         #24 0x00007fbe6c8fb93c n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x42fb93c)
                                                         #25 0x00007fbe6c8d4e5d n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x42d4e5d)
                                                         #26 0x00007fbe6a0efdda n/a (/home/nathan/.local/share/Steam/ubuntu12_64/libcef.so + 0x1aefdda)
                                                         #27 0x00000000005c5160 n/a (/home/nathan/.local/share/Steam/ubuntu12_64/steamwebhelper + 0x1c5160)
                                                         #28 0x00000000005876bb n/a (/home/nathan/.local/share/Steam/ubuntu12_64/steamwebhelper + 0x1876bb)
                                                         ELF object binary architecture: AMD x86-64
Dec 01 19:28:23 manjaro-desktop systemd[1]: [email protected]: Deactivated successfully.

Here's a video demo for funsies. The steam core dump didn't happen this time unfortunately.

gravityfargo avatar Dec 02 '23 03:12 gravityfargo