Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using QueryBuilder with Actions memory exhausts almost instantly #12554

Open
Sprunkas opened this issue Apr 30, 2024 · 1 comment
Open
Labels
bug Something isn't working low priority unconfirmed
Milestone

Comments

@Sprunkas
Copy link

Package

filament/filament

Package Version

v3.2.72.0

Laravel Version

v11.5.0

Livewire Version

v3.4.11

PHP Version

PHP 8.3.4

Problem description

When clicking second time "View" in "Products" menu table after QueryBuilder filter is applied I get "Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)". Even tried to increase memory limit to 2 GB, execution time to 10 min., but still didn't helped.

Expected behavior

It should open modal just like it opens first time, without a lot of memory consumption and etc.

Steps to reproduce

  1. Add Tables\Actions\ViewAction::make(), in ProductResource table method inside actions([])
  2. Open "Products" menu
  3. Apply any QueryBuilder filter
  4. Click "View" button to open modal
  5. Close modal
  6. Click again "View" button to open modal

Reproduction repository

https://github.com/Sprunkas/filament-demo

Relevant log output

No response

@Sprunkas Sprunkas added bug Something isn't working low priority unconfirmed labels Apr 30, 2024
@danharrin danharrin added this to the v3 milestone May 6, 2024
@donnyxray
Copy link

donnyxray commented May 8, 2024

I experience something very similar:

  • I navigate to a resource and view its table
  • Apply a filter to it - one that uses querybuilder (this works)
  • Navigate elsewhere
  • Navigate to the first resource again: memory exhausted error

I then have to "fix" it by manually appending GET parameters to disable the filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority unconfirmed
Projects
Status: Todo
Development

No branches or pull requests

3 participants