albiere

albiere

Hey all :waving_hand:

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!

Showing Posts 1 to 10

dimitarvp

dimitarvp

How did you install Erlang? I installed it both through homebrew and then through asdf and both worked just fine out of the box.

Can you post the output of brew info erlang? Maybe wxmac wasn’t installed (or errored out on install)?

LostKobrakai

LostKobrakai

dimitarvp

dimitarvp

That looks exhausting to do. I am guessing there’s no way to achieve the same with some sort of a kerl flag passed to it through asdf?

LostKobrakai

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

albiere OP

here’s the output of brew info:

$ brew info erlang
erlang: stable 23.2.1 (bottled), HEAD
Programming language for highly scalable real-time systems
https://www.erlang.org/
/usr/local/Cellar/erlang/23.2.1 (7,978 files, 460.7MB) *
  Poured from bottle on 2021-01-15 at 11:31:21
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/erlang.rb
License: Apache-2.0
==> Dependencies
Build: autoconf ✔, automake ✘, libtool ✘
Required: openssl@1.1 ✔, wxmac ✔
==> Options
--HEAD
        Install HEAD version
==> Caveats
Man pages can be found in:
  /usr/local/opt/erlang/lib/erlang/man

Access them with `erl -man`, or add this directory to MANPATH.
==> Analytics
install: 30,248 (30 days), 96,829 (90 days), 358,251 (365 days)
install-on-request: 14,875 (30 days), 43,588 (90 days), 117,420 (365 days)
build-error: 0 (30 days)

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

albiere OP

I’m not really using dark mode. But thanks for sharing the article. I came across that one on my searches.

rodrigues

rodrigues

Hi @albiere, I have the same problem you have, also on BigSur :sweat_smile:

albiere

albiere OP

@rodrigues Were you able to test whether this error occurs on Catalina as well?

rodrigues

rodrigues

No, I didn’t. I have another mac in BigSur with no wxmac problems :upside_down_face:

The system seems confused for conflicting dylibs, but also doesn’t work without installing wxmac. Gotta still crack this…

dakaiju

dakaiju

I’ve met the same problem in below environment:

macOS Big Sur version 11.1
$ brew info erlang
erlang: stable 23.2.2 (bottled), HEAD
Programming language for highly scalable real-time systems
https://www.erlang.org/
/usr/local/Cellar/erlang/23.2.1 (7,978 files, 460.7MB) *
  Poured from bottle on 2021-01-14 at 00:25:29
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/erlang.rb
License: Apache-2.0
==> Dependencies
Build: autoconf ✘, automake ✘, libtool ✔
Required: openssl@1.1 ✔, wxmac ✔
==> Options
--HEAD
        Install HEAD version
==> Caveats
Man pages can be found in:
  /usr/local/opt/erlang/lib/erlang/man

Access them with `erl -man`, or add this directory to MANPATH.
==> Analytics
install: 29,723 (30 days), 97,041 (90 days), 357,716 (365 days)
install-on-request: 14,520 (30 days), 43,683 (90 days), 117,476 (365 days)
build-error: 0 (30 days)
$ brew info wxmac
wxmac: stable 3.0.5.1 (bottled), HEAD
Cross-platform C++ GUI toolkit (wxWidgets for macOS)
https://www.wxwidgets.org
/usr/local/Cellar/wxmac/3.0.5.1_1 (810 files, 52.2MB) *
  Poured from bottle on 2021-01-14 at 00:25:13
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/wxmac.rb
License: wxWindows
==> Dependencies
Required: jpeg ✔, libpng ✔, libtiff ✔
==> Options
--HEAD
        Install HEAD version
==> Analytics
install: 12,204 (30 days), 44,651 (90 days), 213,507 (365 days)
install-on-request: 1,821 (30 days), 5,313 (90 days), 23,234 (365 days)
build-error: 0 (30 days)

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews