PrintABrick icon indicating copy to clipboard operation
PrintABrick copied to clipboard

Trying to run locally in 2021

Open alecat88 opened this issue 3 years ago • 6 comments

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:init the 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)  



alecat88 avatar May 06 '21 16:05 alecat88

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.

hubnedav avatar May 06 '21 17:05 hubnedav

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!

alecat88 avatar May 06 '21 21:05 alecat88

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

josharmour avatar Jun 07 '21 22:06 josharmour

Count me in for the discord please

danielfmo avatar Jun 09 '21 11:06 danielfmo

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.

hayrun-st avatar Aug 02 '21 20:08 hayrun-st

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 :)

  • That I can't figure out, something about the iniFile, and I'm decent w/ PHP but not Symfony unfortunately.

rtgoodwin avatar Apr 25 '22 15:04 rtgoodwin