Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebuild erlang with wxwidgets support #6077

Open
heri16 opened this issue May 7, 2024 · 2 comments
Open

rebuild erlang with wxwidgets support #6077

heri16 opened this issue May 7, 2024 · 2 comments

Comments

@heri16
Copy link

heri16 commented May 7, 2024

How to reproduce:

brew install wxmac
pkgx erl -sname observer -hidden -setcookie MyCookie -run observer

Expected:

image

Actual

Erlang/OTP 26 [erts-14.2.5] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace]

=CRASH REPORT==== 8-May-2024::00:34:05.731059 ===
  crasher:
    initial call: wxe_master:init/1
    pid: <0.92.0>
    registered_name: []
    exception error: {load_driver,"No driver found"}
      in function  wxe_util:priv_dir/2 (wxe_util.erl, line 190)
      in call from wxe_util:init_nif/1 (wxe_util.erl, line 58)
      in call from wxe_master:init/1 (wxe_master.erl, line 114)
      in call from gen_server:init_it/2 (gen_server.erl, line 980)
      in call from gen_server:init_it/6 (gen_server.erl, line 935)
    ancestors: [<0.91.0>,observer,<0.9.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 28
    reductions: 1700
  neighbours:

=CRASH REPORT==== 8-May-2024::00:34:05.741100 ===
  crasher:
    initial call: wxe_server:init/1
    pid: <0.91.0>
    registered_name: []
    exception error: {load_driver,"No driver found"}
      in function  wxe_util:priv_dir/2 (wxe_util.erl, line 190)
      in call from wxe_util:init_nif/1 (wxe_util.erl, line 58)
      in call from wxe_master:init/1 (wxe_master.erl, line 114)
      in call from gen_server:init_it/2 (gen_server.erl, line 980)
      in call from gen_server:init_it/6 (gen_server.erl, line 935)
    ancestors: [observer,<0.9.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 610
    stack_size: 28
    reductions: 226
  neighbours:

=CRASH REPORT==== 8-May-2024::00:34:05.741306 ===
  crasher:
    initial call: observer_wx:init/1
    pid: <0.90.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,113}]},
                      {wx_object,init_it,6,
                                 [{file,"wx_object.erl"},{line,416}]},
                      {proc_lib,init_p_do_apply,3,
                                [{file,"proc_lib.erl"},{line,241}]}]}
      in function  wx_object:init_it/6 (wx_object.erl, line 426)
    ancestors: [<0.9.0>]
    message_queue_len: 0
    messages: []
    links: []
    dictionary: [{'_wx_object_',{observer_wx,'_wx_init_'}}]
    trap_exit: false
    status: running
    heap_size: 987
    stack_size: 28
    reductions: 279
  neighbours:

Eshell V14.2.5 (press Ctrl+G to abort, type help(). for help)
@jhheider
Copy link
Contributor

jhheider commented May 9, 2024

based on asdf-vm/asdf-erlang#35, it looks like we'll probably need to rebuild with wx support. wxmac's build doesn't look too terrible:

https://github.com/andantissimo/homebrew-wxmac/blob/master/wxmac%403.1.rb

@jhheider jhheider changed the title Erlang fail to run observer rebuild erlang with wxwidgets support May 9, 2024
@jhheider
Copy link
Contributor

jhheider commented May 9, 2024

requires #6097

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants