vrod

vrod

When I do :observer.start() from inside an iex session, erlang crashes with segmentation fault. I tried brew install wxmac to deal with the errors described here Elixir with ASDF: troubleshooting :observer.start - #2 by l00ker
But that’s when the crashes started. The log is very long has many lines:

./src/common/object.cpp(251): assert "classTable->Get(m_className) == NULL" failed in Register(): Class "wxXmlResourceHandler" already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() multiple times or linked some object file twice)?

I have these versions:

asdf install erlang 23.1.2
asdf install elixir 1.11.2-otp-23

running on OS X 11.2.1 Big Sur.

Does anyone have ideas what I should try? Thank you!

Showing Posts 1 to 9

WestKeys

WestKeys

had similar issue not too long ago

did u try just reinstalling elixir via asdf and if that doesnt work reinstalling asdf itself?

vrod

vrod OP

I tried uninstalling/installing erlang via asdf… I didn’t do that with Elixir or with asdf itself yet

drl123

drl123

wxmac has to be installed when/before Erlang is compiled. Observer runs in Erlang, not Elixir, so reinstalling Elixir alone will not help you. Remove your Erlang installation and reinstall, now that you have wxmac installed and it should work for you.

(PS…check the ASDF Erlang plugin readme for any other dependencies you may need before compiling Erlang again. It’s pretty well detailed).

vrod

vrod OP

I have tried uninstalling Elixir, Erlang, and ASDF itself, but the observer doesn’t work yet. I don’t know which compile options to test

kokolegorille

kokolegorille

As mentionned in the previous post, You need wxmac. Did You install it?

vrod

vrod OP

yes, I did brew install wxmac before re-installing and re-compiling erlang.

It seems that most of the errors are about there being wxmac files in 2 locations. But maybe this is normal for how brew installs this?

iex(1)> :observer.start
objc[58568]: 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 (0x5d2e5c50) and /usr/local/Cellar/wxmac/3.0.5.1_1/lib/libwx_osx_cocoau_core-3.0.dylib (0x5b324c50). One of the two will be used. Which one is undefined.
kokolegorille

kokolegorille

I would probably uninstall the oldest, it should be something like brew unistall, but I am not on Mac anymore.

Nicd

Nicd

There is a similar thread here with a marked solution, maybe it can help: `:observer.start` crashes Erlang VM - #19

vrod

vrod OP

I followed this: segmentation fault when starting observer (macOS Big Sur) · Issue #183 · asdf-vm/asdf-erlang · GitHub

it worked for me running

asdf install erlang 23.1.2
asdf install elixir 1.11.2-otp-23

on BigSur

Thank you!

— All posts loaded —

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