hubnedav / PrintABrick

Web catalogue of LEGO® parts for 3D printing
https://printabrick.org/
GNU General Public License v2.0
235 stars 81 forks source link

Trying to run locally in 2021 #15

Open alecat88 opened 3 years ago

alecat88 commented 3 years ago

Hello, I'm trying to run this project locally, seems everything in the setup still work. When I try to run the app with the command bin/console app:initthe below error seems to happen, not sure if it is relevant to the .dat files or not. (PS: I've tried also to raise the memory to the max of my machine already)


Downloading LDraw library
------------------------------------------------------------------------------
Loading file from: http://www.ldraw.org/library/updates/complete.zip
[54.05 MB / 54.05 MB] [======================================================================] 100% (16 secs/16 secs)
LDraw libary downloaded
------------------------------------------------------------------------------
Loading models from LDraw library: /private/var/tmp/printabrick.fQhcxf/ldraw/
------------------------------------------------------------------------------
[ 1076 / 14038] [=====>----------------------------------------------------------------]   7% ( 1 sec/13 secs) (19159.dat)
[ 1079 / 14038] [=====>----------------------------------------------------------------]   7% ( 1 sec/13 secs) (191766.dat)
[ 1981 / 14038] [=========>------------------------------------------------------------]  14% (2 secs/14 secs) (2452.dat)
PHP Fatal error:  Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) in /Applications/MAMP/htdocs/PrintABrick/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php on line 1582
16:02:57 CRITICAL  [php] Fatal Error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes) ["exception" => Symfony\Component\Debug\Exception\OutOfMemoryException {trace: { …} …}] []

  [Symfony\Component\Debug\Exception\OutOfMemoryException]                                   
  Error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 262144 bytes)  
hubnedav commented 3 years ago

Hi, there is probably a problem with some model alias in app/Resources/relations/alias_model.yml after a LDraw library update which leads to infinite recursion.

I'm currently working on updating the app, resolving these issues and setting up docker container.

alecat88 commented 3 years ago

OMG man, knowing you're still into this makes you a god of 3d printing and a hell of a developer!

Do you mind joining the discord channel I've created? You don't have to make it alone if you don't want to, we could join forces together with other devs that are interested, and also take feedback here and there to push the project forward if you are up to it!

josharmour commented 3 years ago

I'd love it if you keep us up to date on the progress.

danielfmo commented 3 years ago

Count me in for the discord please

hayrun-st commented 3 years ago

Is there any update on this? I've been trying to get it working myself with no luck. Ideally, a docker container could be built so that it can be self-contained and hosted locally.

rtgoodwin commented 2 years ago

Checking update here also. Willing to help work on a Docker container, but the dev branch (at least) has issues with Symfony autowiring* so it's kind of moot :)