_rubenfa

_rubenfa

:observer.start is not working on Ubuntu

It’s something weird, but from last week :observer.start is not working in my machine. This is the error that I’m receiving:

Erlang/OTP 20 [RELEASE CANDIDATE 2] [erts-9.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false]

Interactive Elixir (1.4.4) - press Ctrl+C to exit (type h() ENTER for help)

iex(1)> :observer.start

21:52:25.399 [error] WX Failed loading 'wxe_driver'@'/usr/lib/erlang/lib/wx-1.8.1/priv' 

{:error,
 {{:load_driver,
   'symbol _ZThn704_N17wxGenericListCtrl31GetSizeAvailableForScrollTargetERK6wxSize, version WXU_3.0 not defined in file libwx_gtk2u_core-3.0.so.0 with link time reference'},
  [{:wxe_server, :start, 1, [file: 'wxe_server.erl', line: 65]},
   {:wx, :new, 1, [file: 'wx.erl', line: 115]},
   {:observer_wx, :init, 1, [file: 'observer_wx.erl', line: 98]},
   {:wx_object, :init_it, 6, [file: 'wx_object.erl', line: 372]},
   {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 247]}]}}

I have tried to remove Erlang/Elixir and install it again, but without results. Indeed there are some weird things. For example, Erlang Solutions repository is installing a RC Version of esl-erlang and I don’t know why.

Any help, will be appreciated

Most Liked

rogerweb

rogerweb

Just sharing what worked for me in case someone else is facing the same issue in the same setup:

  • OS: Ubuntu 20.04 LTS
  • Elixir: 1.12.0
  • Erlang/OTP 24 [erts-12.0.2]

Solution:

sudo apt install libwxgtk-webview3.0-gtk3-0v5
Qqwy

Qqwy

TypeCheck Core Team

I have faced the same problem.
It turns out that there are different releases of Erlang, and both the one that comes standard with Canonical’s package repository as well as the one that asdf provides are missing certain natively-compiled modules, including the ones that are required to run WX (the GUI toolkit that :observer uses).

The esl-erlang version contains (many of?) these optional parts. Installing Erlang from esl-erlang after adding the PPA of Erlang Solutions (see this page) solved it for me.

l00ker

l00ker

This happened to me as well. I also had trouble with Tesla (using hackney) making api requests. The Erlang Solutions repo is now installing esl-erlang 1:20.0-rc2.

Once I rolled back to esl-erlang 1:19.3 Tesla & :observer started working again. You’ll need to pin the package in apt to prevent updating.

For what little time I had it running 20.0-rc2 did seem to feel a little faster.

bydooweedoo

bydooweedoo

Hi everyone,

I am using ubuntu 14LTS and this worked for me on both OPT20 Elixir 1.4 and Elixir 1.5:

apt-get install libwxgtk3.0-0

But my error was:

{:load_driver, 'libwx_gtk2u_stc-3.0.so.0: cannot open shared object file: No such file or directory'}

Anyway I hope it can help some of you !

khaskelberg

khaskelberg

Hey! Just a heads up for everybody. On ubuntu 16.04 upgrade to esl-erlang 21.1.3 broke observer. You have to downgrade to 21.1 to fix it

Where Next?

Popular in Questions Top

Tee
can someone please explain to me how Enum.reduce works with maps
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
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
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
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
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
idi527
I’ve been re-reading swift book again and noticed that multiline strings there don’t have a trailing line break, unlike in elixir iex(2)...
New

Other popular topics Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
AstonJ
We’ve put together this wiki for Phoenix LiveView - please feel free to add any info you feel is worth including. What is Phoenix LiveV...
New

We're in Beta

About us Mission Statement