Skip to content

Footprint mass create, PHP out of memory #1101

@Erv00

Description

@Erv00

Describe the bug
I have tried to mass create footprints (~15k lines), and it returned (understandably) 503 error.
After that I tried to batch the creation into smaller parts, but I cannot open the footprint page, as it returns 500.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Tools>Edit>Footprints>Mass create'
  2. Paste roughly 15k lines
  3. Click create
  4. See 503
  5. Go back to home page (which loads correctly)
  6. Go to 'Tools>Edit>Footprints>Mass create'
  7. See 500

Expected behavior
While not being able to handle ~15k lines at once is expected, not being able to visit the page again is not expected.

Server Side

  • Part-DB Version: Part-DB 2.2.1
  • PHP Version: 8.4.13 (SAPI: fpm-fcgi)
  • Database Server SQLite 3.40.1

Desktop:

  • OS: Fedora 41
  • Browser Firefox
  • Version 143.0.4

Additional context
I am running it in k8s using helm.
When I try to access the footprint page this is the log: [Sat Nov 08 09:42:50.632212 2025] [proxy_fcgi:error] [pid 24:tid 55] [client 10.42.0.91:58914] AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10952704 bytes) in /var/www/html/vendor/twig/twig/src/Template.php on line 359'
To generate the ~15k lines, one can use this paste. It uses the kicad footprint library.

Tried steps
I tried to delete the cache (both with the command and rm -rf /var/cache) and restarting the server, and even clearing site data in Firefox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions