Skip to content

App sends hundreds of concurrent recursive relations requests upon opening a room #5840

Description

@timedoutuk

Steps to reproduce

  1. Open Element X
  2. Wait for it to sync
  3. Open a room

Outcome

What did you expect?

Element X should not send hundreds of potentially concurrent relations requests, which are both deep in limit and also recursive, which causes excessive strain on the homeserver when there are multiple Element X clients active on the homeserver at once.

What happened instead?

Element X sent 111 requests seemingly concurrently, immediately after I opened the room: elementx.txt

Looking at the request logs for /relations/, in the past 19 hours, the server has received 27,542 relations pagination requests - 12.5k from Element X and 15k from SchildiNext (by user agent, multi-user homeserver) - of which 23,731 were for the one room, !9QlpOzYges1dnNmjTQk-tXtU0m4M4pp5GlXC4Ox3tvc.

Your phone model

iPhone 15

Operating system version

iOS 26.4.2

Application version

26.07.1 (234)

Homeserver

starstruck.systems

Will you send logs?

Yes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TimelineO-UncommonMost users are unlikely to come across this or unexpected workflowS-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundT-Defect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions