albiere
Hey all ![]()
I’ve been studying elixir for the past month and I’m really enjoying it. I guess this is just a way of saying I’m fairly new to the language.
My problem happens when I open up an iex session and issue a :observer.start. This crashes the Erlang VM and I get this pretty scary error (this is just the first line of the error):
objc[48474]: Class wxNSAppController is implemented in both /usr/local/Cellar/wxmac/3.0.5.1_1/lib/libwx_osx_cocoau_core-3.0.0.5.0.dylib (0x1b029c50) and /usr/local/opt/wxmac/lib/libwx_osx_cocoau_core-3.0.dylib (0x1a9a1c50). One of the two will be used. Which one is undefined.
As you can see, I’ve installed elixir and its dependencies via HomeBrew. Here’s the version of Elixir I’m running on my Mac.
$ elixir -v
Erlang/OTP 23 [erts-11.1.5] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe] [dtrace]
Elixir 1.11.3 (compiled with Erlang/OTP 23)
I’m running on Mac with BigSur 11.1.
I’ve asked a friend of mine to try the same thing on his machine, however running on the latest Catalina version, and things worked just fine. I’m assuming this is a MacOS problem, but I’m not quite sure yet.
I’d really appreciate any help on how to fix this issue. If I miss any info, please let me know.
Thanks!
Trending in Questions
Other Trending 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
- #blog-post
- #phoenix_html
- #iex
- #graphql
- #genstage
- #ai
- #elixirconf-us
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #hex
- #performance











First 10 of 28 Posts
dimitarvp
How did you install Erlang? I installed it both through
homebrewand then throughasdfand both worked just fine out of the box.Can you post the output of
brew info erlang? Maybewxmacwasn’t installed (or errored out on install)?LostKobrakai
If you use darkmode I’d also suggest:
https://www.dairon.org/2020/09/27/fix-erlang-observer-osx-dark-mode.html
dimitarvp
That looks exhausting to do. I am guessing there’s no way to achieve the same with some sort of a
kerlflag passed to it throughasdf?LostKobrakai
It’s basically editing one file with a handful of changes, so brew installs the recent development version of wxwidgets. After that you can build erlang however you want (not sure if rebuilding is required however).
albiere
here’s the output of brew info:
I can see the wxmac package was installed as a dependency when I erlang was installed. Are you running on the same version of OS as me? That’s strange.
btw… thanks for helping to look into it.
albiere
I’m not really using dark mode. But thanks for sharing the article. I came across that one on my searches.
rodrigues
Hi @albiere, I have the same problem you have, also on BigSur
albiere
@rodrigues Were you able to test whether this error occurs on Catalina as well?
rodrigues
No, I didn’t. I have another mac in BigSur with no wxmac problems
The system seems confused for conflicting dylibs, but also doesn’t work without installing wxmac. Gotta still crack this…
dakaiju
I’ve met the same problem in below environment: