Skip to content

[BUG] Memory Leak and High CPU due to infinite request loop for app.svg #9724

@GengarTV

Description

@GengarTV

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

Bug description

Actual behavior
The client enters an infinite loop, requesting cookbook/img/app.svg dozens of times per second. This causes:

  • Memory Usage: ~2.0 GB (RAM usage continues to climb over time).
  • CPU Usage: ~25% - 30% (constant load on a single core).
  • Log Flooding: The client log is rapidly filled with hundreds of duplicate requests.

Client configuration

  • Client version: Nextcloud-4.0.8-x86_64 (AppImage)
  • Operating system: Linux (Running under Wayland/KDE Plasma)
  • OS language: Norwegian (nb)
  • Installation path of client: /home/gengartv/Applications/Nextcloud-4.0.8-x86_64...AppImage

Note to developers: This loop appears to be related to the webflowcredentials.cpp or accessmanager.cpp logic when handling specific SVG assets from custom apps.

Steps to reproduce

  1. Have the Cookbook app installed and enabled on the Nextcloud server.
  2. Run the Nextcloud Desktop Client (AppImage version 4.0.8).
  3. Monitor system resources and client logs.

Expected behavior

Expected behavior
The Nextcloud client should fetch application icons (like the Cookbook app icon) once or periodically, not in a tight, rapid-fire loop.

Which files are affected by this bug

Nextcloud client log file

Operating system

Linux

Which version of the operating system you are running.

KDE Neon

Package

Official Linux AppImage

Nextcloud Server version

v2.3.9

Nextcloud Desktop Client version

4.0.8-x86_64

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

Updated from a minor version (ex. 3.16.1 to 3.16.2)

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

Logs
  The following log snippet shows the rapid repetition of requests for the Cookbook SVG icon:

   1 2026-03-27 22:19:59:552 [ info nextcloud.sync.accessmanager ]:      2 "" "https://[REDACTED_SERVER]/custom_apps/cookbook/img/app.svg" has X-Request-ID "5607303b-a4a2-4fa8-8cc5-c5164625b312"
   2 2026-03-27 22:19:59:566 [ info nextcloud.sync.credentials.webflow ]:        request finished QUrl("https://[REDACTED_SERVER]/custom_apps/cookbook/img/app.svg") with request id
     "5607303b-a4a2-4fa8-8cc5-c5164625b312"
   3 2026-03-27 22:19:59:566 [ info nextcloud.sync.credentials.webflow ]:        request finished QUrl("https://[REDACTED_SERVER]/custom_apps/cookbook/img/app.svg") with request id
     "836909b5-e48d-4fd3-b3cd-5eb503162d85"
   4 2026-03-27 22:19:59:568 [ info nextcloud.sync.accessmanager ]:      2 "" "https://[REDACTED_SERVER]/custom_apps/cookbook/img/app.svg" has X-Request-ID "02ba8b65-4880-44a1-a15d-d75ab5a22405"
   5 ... [Repeated hundreds of times per minute] ...

  ---

Additional info

Please note that this is my first time reporting a bug. I used gemini-CLI to diagnose why nextcloud is running away with my RAM

Image

After killing nextcloud:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions