_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
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
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
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.
Popular in Questions
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








