Open silbermm opened 2 years ago
I'm using Ratatouille to build a CLI app and everything works perfectly in IEX .
IEX
But building a release with either Mix releases or Distillery causes the same error to occur:
=SUPERVISOR REPORT==== 26-Jun-2022::21:43:49.365723 === supervisor: {local,kernel_sup} errorContext: start_error reason: {on_load_function_failed,'Elixir.ExTermbox.Bindings'} offender: [{pid,undefined}, {id,kernel_safe_sup}, {mfargs,{supervisor,start_link, [{local,kernel_safe_sup},kernel,safe]}}, {restart_type,permanent}, {significant,false}, {shutdown,infinity}, {child_type,supervisor}] =CRASH REPORT==== 26-Jun-2022::21:43:49.365813 === crasher: initial call: supervisor:kernel/1 pid: <0.932.0> registered_name: [] exception exit: {on_load_function_failed,'Elixir.ExTermbox.Bindings'} in function init:run_on_load_handlers/0 in call from kernel:init/1 (kernel.erl, line 189) in call from supervisor:init/1 (supervisor.erl, line 330) in call from gen_server:init_it/2 (gen_server.erl, line 423) in call from gen_server:init_it/6 (gen_server.erl, line 390) ancestors: [kernel_sup,<0.906.0>] message_queue_len: 0 messages: [] links: [<0.908.0>] dictionary: [] trap_exit: true status: running heap_size: 376 stack_size: 29 reductions: 226 neighbours: =CRASH REPORT==== 26-Jun-2022::21:43:50.369580 === crasher: initial call: application_master:init/4 pid: <0.905.0> registered_name: [] exception exit: {{shutdown, {failed_to_start_child,kernel_safe_sup, {on_load_function_failed, 'Elixir.ExTermbox.Bindings'}}}, {kernel,start,[normal,[]]}} in function application_master:init/4 (application_master.erl, line 142) ancestors: [<0.904.0>] message_queue_len: 1 messages: [{'EXIT',<0.906.0>,normal}] links: [<0.904.0>,<0.903.0>] dictionary: [] trap_exit: true status: running heap_size: 376 stack_size: 29 reductions: 165 neighbours: =INFO REPORT==== 26-Jun-2022::21:43:50.370283 === application: kernel exited: {{shutdown, {failed_to_start_child,kernel_safe_sup, {on_load_function_failed,'Elixir.ExTermbox.Bindings'}}}, {kernel,start,[normal,[]]}} type: permanent {"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,'Elixir.ExTermbox.Bindings'}}},{kernel,start,[normal,[]]}}}"} Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,'Elixir.ExTermbox.Bindings'}}},{kernel,start,[normal,[]]}}})
Any idea why this works fine in dev but fails on a release?
I presume this is related to #3. Perhaps one of the workarounds from there works?
I'm using Ratatouille to build a CLI app and everything works perfectly in
IEX
.But building a release with either Mix releases or Distillery causes the same error to occur:
Any idea why this works fine in dev but fails on a release?