linusdm
Popup appears for a fraction of a second whenever a mix task is run (verifying shm-id-F8BD8E...)
Whenever I run mix task, a popup flashes on the screen for a fraction of a second (but noticable enough to be annoying). Did anybody observe something similar. I’m running an up-to-date macOS version (Sonoma 14.1.1), and the recent versions of Elixir (1.16.0) and Erlang (26.2.1).
I’ve made a screencapture to actually be able to see it.
It contains something like verifying shm-id-F8BD8E....
This didn’t happen before, so I’m curious what started triggering this.
PS: I just saw it also when opening the plain Erlang console (i.e. erl binary).
Most Liked
jhogberg
Unfortunately there’s not much we can do about this other than to have the JIT disabled by default on that configuration, and/or force people to (partially) disable the hardened runtime.
The gist of it is that x86 macs lack a certain feature that lets us safely toggle pages between being writable and executable (
pthread_jit_write_protect_np), forcing us to rely on a technique known as dual-mapping where we have two different views into memory, one executable and one writable.There’s nothing wrong with that per se, but the only way to do that on a mac is to literally create a file and
mmap(2)it twice, which I’m guessing causes the popups.
navinpeiris
If you’re using asdf, you can workaround this issue by disabling jit by adding: export KERL_CONFIGURE_OPTIONS="--disable-jit" to your .bashrc/.zshrc before installing erlang.
Not ideal, but so much better than the popup stealing focus every few minutes for me.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










