8000 [Customer Issue] App crashes when adding items to cart · Issue #1 · AlahmadiQ8/grubify · GitHub
[go: up one dir, main page]

Skip to content

[Customer Issue] App crashes when adding items to cart #1

Open

Description

@AlahmadiQ8

Hi, I'm trying to add items to my cart on the Grubify app but it keeps crashing. I get a server error after adding about 5-6 items quickly. The page just shows a generic error message.\n\nThis started happening today around 3pm. Can someone look into this?

Activity

  1. AlahmadiQ8 commented on Sep 28, 2026

    @AlahmadiQ8
    OwnerAuthor

    🤖 Grubify SRE Agent Bot

    Classification: Bug — memory-leak
    Severity: High

    Analysis:
    This issue matches a known memory leak in the Cart API (CartController.cs). The RequestDataCache allocates a 10MB buffer per AddItemToCart request with no eviction or cleanup. After 5-6 rapid additions, memory consumption spikes toward the container's 1Gi limit and triggers System.OutOfMemoryException, causing the server errors described.

    Related: See issues #6 and #7 for full incident reports with timeline and evidence.

    Next Steps:

    • The root cause is identified — an unbounded static cache in CartController.cs (lines 14, 30-31).
    • A fix to replace the cache with a bounded IMemoryCache is being tracked.
    • No further info needed from the reporter.

    ✅ Status: Triaged — Known issue, fix in progress

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0