Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] erlang - Could not find 'wxe_driver.so'
@ 2019-10-30  0:24 voidlinux-github
  2019-10-30  9:15 ` voidlinux-github
  2019-10-31  4:43 ` voidlinux-github
  0 siblings, 2 replies; 3+ messages in thread
From: voidlinux-github @ 2019-10-30  0:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4949 bytes --]

New issue by sunaku on void-packages repository

https://github.com/void-linux/void-packages/issues/15918

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  `Void 5.3.7_1 x86_64 GenuineIntel uptodate FF`
* package:  
  erlang-22.1.5_1

```sh
$ xbps-query -R erlang
architecture: x86_64
build-date: 2019-10-29 17:43 UTC
build-options: ~x11
filename-sha256: 4e1167e119b88e11bf89676050eb6b1c3814bd7a656194083ab556af926b2b5b
filename-size: 35MB
homepage: http://www.erlang.org/
installed_size: 99MB
license: Apache-2.0
maintainer: Leah Neukirchen <leah@vuxu.org>
pkgver: erlang-22.1.5_1
repository: https://mirrors.servercentral.com/voidlinux/current
shlib-requires:
        libm.so.6
        libc.so.6
        libutil.so.1
        libpthread.so.0
        libodbc.so.2
        libcrypto.so.45
        libdl.so.2
        libncursesw.so.6
        libz.so.1
short_desc: Concurrent functional programming language developed by Ericsson
source-revisions: erlang:a4c19e5cc9d
```

### Expected behavior

Running `observer:start().` inside `erl` should launch [the Observer GUI](https://elixir-lang.org/getting-started/debugging.html#observer), as pictured here:

![Observer](https://elixir-lang.org/images/contents/kv-observer.png)

### Actual behavior

Running `observer:start().` inside `erl` emits an error about a missing wxWidgets driver:

```
ERROR: Could not find 'wxe_driver.so' in: /usr/lib/erlang/lib/wx-1.8.9/priv
```

### Steps to reproduce the behavior

```sh
$ erl
Erlang/OTP 22 [erts-10.5.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Eshell V10.5.3  (abort with ^G)
1> observer:start().
=ERROR REPORT==== 29-Oct-2019::17:13:15.528183 ===
ERROR: Could not find 'wxe_driver.so' in: /usr/lib/erlang/lib/wx-1.8.9/priv

{error,{{load_driver,"No driver found"},
        [{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,107}]},
         {wx_object,init_it,6,[{file,"wx_object.erl"},{line,372}]},
         {proc_lib,init_p_do_apply,3,
                   [{file,"proc_lib.erl"},{line,249}]}]}}
2> =CRASH REPORT==== 29-Oct-2019::17:13:15.528368 ===
  crasher:
    initial call: wxe_master:init/1
    pid: <0.87.0>
    registered_name: []
    exception error: {load_driver,"No driver found"}
      in function  wxe_util:priv_dir/2 (wxe_util.erl, line 265)
      in call from wxe_master:init/1 (wxe_master.erl, line 113)
      in call from gen_server:init_it/2 (gen_server.erl, line 374)
      in call from gen_server:init_it/6 (gen_server.erl, line 342)
    ancestors: [<0.86.0>,observer,<0.83.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 2844
  neighbours:

=CRASH REPORT==== 29-Oct-2019::17:13:15.528724 ===
  crasher:
    initial call: observer_wx:init/1
    pid: <0.85.0>
    registered_name: observer
    exception exit: {{load_driver,"No driver found"},
                     [{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,107}]},
                      {wx_object,init_it,6,
                                 [{file,"wx_object.erl"},{line,372}]},
                      {proc_lib,init_p_do_apply,3,
                                [{file,"proc_lib.erl"},{line,249}]}]}
      in function  wx_object:init_it/6 (wx_object.erl, line 385)
    ancestors: [<0.83.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: [{'_wx_object_',{observer_wx,'_wx_init_'}}]
    trap_exit: false
    status: running
    heap_size: 610
    stack_size: 27
    reductions: 273
  neighbours:

=CRASH REPORT==== 29-Oct-2019::17:13:15.528566 ===
  crasher:
    initial call: wxe_server:init/1
    pid: <0.86.0>
    registered_name: []
    exception error: {load_driver,"No driver found"}
      in function  wxe_util:priv_dir/2 (wxe_util.erl, line 265)
      in call from wxe_master:init/1 (wxe_master.erl, line 113)
      in call from gen_server:init_it/2 (gen_server.erl, line 374)
      in call from gen_server:init_it/6 (gen_server.erl, line 342)
    ancestors: [observer,<0.83.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 610
    stack_size: 27
    reductions: 261
  neighbours:

^C
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
^C
```

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: erlang - Could not find 'wxe_driver.so'
  2019-10-30  0:24 [ISSUE] erlang - Could not find 'wxe_driver.so' voidlinux-github
@ 2019-10-30  9:15 ` voidlinux-github
  2019-10-31  4:43 ` voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2019-10-30  9:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

New comment by Hoshpak on void-packages repository

https://github.com/void-linux/void-packages/issues/15918#issuecomment-547807029

Comment:
The package has an x11 build option which is disabled by default. To enable it, rebuild the package with -o x11.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: erlang - Could not find 'wxe_driver.so'
  2019-10-30  0:24 [ISSUE] erlang - Could not find 'wxe_driver.so' voidlinux-github
  2019-10-30  9:15 ` voidlinux-github
@ 2019-10-31  4:43 ` voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2019-10-31  4:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]

New comment by sunaku on void-packages repository

https://github.com/void-linux/void-packages/issues/15918#issuecomment-548214526

Comment:
Thanks for the tip! :+1::sparkles: I read up on `xbps-src` and followed [the `xbps-src` guide](https://wiki.voidlinux.org/Xbps-src) to build my own local version of the `erlang` package using the additional `-o x11` flag, as you suggested:

```sh
$ git clone --depth=1 https://github.com/void-linux/void-packages
$ cd void-packages
$ ./xbps-src binary-bootstrap
$ ./xbps-src pkg erlang -o x11
$ xi erlang -f
```

However, the `-o x11` rebuild took 37 minutes :snail: of dedicated compute time to finish on my laptop. :thinking: Since I would need to keep rebuilding it this way whenever any new package version is released (which happens every few weeks or so :calendar:), I'm wondering:

* Could we make `-o x11` the default in this `erlang` package so folks don't need to rebuild it every time in this manner? :crossed_fingers: 
* Or perhaps a separate `erlang-x11` package could be created to provide this `-o x11` build to begin with? :innocent: 

I feel the Observer GUI is a built-in "killer app" for monitoring & understanding Erlang apps.

Thanks for your consideration.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-31  4:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30  0:24 [ISSUE] erlang - Could not find 'wxe_driver.so' voidlinux-github
2019-10-30  9:15 ` voidlinux-github
2019-10-31  4:43 ` voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).