lud

lud

Error when calling System.stop(0)

Hi,

I run a small elixir script that terminates by calling System.stop(0), Sometimes I have this error after the call:

** (EXIT from #PID<0.94.0>) an exception was raised:
    ** (ArgumentError) argument error
        (stdlib 3.14) :ets.lookup(:elixir_config, :no_warn_undefined)
        (elixir 1.11.1) src/elixir_config.erl:8: :elixir_config.get/1
        (elixir 1.11.1) lib/module/parallel_checker.ex:141: Module.ParallelChecker.merge_compiler_no_warn_undefined/1
        (elixir 1.11.1) lib/module/parallel_checker.ex:117: Module.ParallelChecker.extract_definitions/1
        (elixir 1.11.1) lib/module/parallel_checker.ex:102: Module.ParallelChecker.check_module/2
        (elixir 1.11.1) lib/module/parallel_checker.ex:300: anonymous fn/5 in Module.ParallelChecker.spawn_checkers/1

And sometimes I have not.

This is not really a problem because it happens at the end of the script, but I can’t uderstand what it is.

It seems to me that parallel_checker is a compilation tool, but the scripts can take up to one minute to terminate, and generate no warnings. After one minute I would believe that there are no more code checks to be made, right?

It is a single standalone .exs file with no dependencies.

The full script is here, it’s a silly thing that just make the CPU run at 100% until the fan of the computer starts. It works only on MacOS (I don’t know if powermetrics is available on Linux or other platforms) and requires sudo. I would say that the code doesn’t matter but I cannot reproduce with a simpler script.

Where Next?

Popular in Questions Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
jc00ke
Expanding on this topic: https://forum.elixirforum.net/t/map-typespec-question/19217 Let’s say I have a map with required and optional k...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New

We're in Beta

About us Mission Statement