bitwalker / distillery

Simplify deployments in Elixir with OTP releases!
MIT License
2.96k stars 397 forks source link

eval: System Limit #619

Closed jesseshieh closed 5 years ago

jesseshieh commented 5 years ago

Hi! Thanks again for distillery which is amazing. I'm trying to construct an eval command that is very long, but I get the following error. It looks like because it's converting the binary to an atom, it's hitting the 255 atom limit. I saw that you were able to workaround this in #537, but I didn't see a linked commit or pull request so I'm not sure what the fix was. Is this something that is easy to fix or workaround?

bin/app eval "IO.inspect 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1"
** (SystemLimitError) a system limit has been reached
    :erlang.binary_to_atom("IO.inspect 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1+1", :utf8)
    (distillery) lib/entry.ex:115: Mix.Releases.Runtime.Control.parse_args/3
    (distillery) lib/entry.ex:44: Mix.Releases.Runtime.Control.main/1
    (stdlib) erl_eval.erl:677: :erl_eval.do_apply/6
    (elixir) lib/code.ex:232: Code.eval_string/3
nulian commented 5 years ago

The same issue with the rpc command.

bitwalker commented 5 years ago

This is fixed via artificery 0.4.2. You can update with mix deps.update artificery