lucidstack / ex-portmidi

Elixir bindings to the portmidi library
MIT License
35 stars 12 forks source link

Process not started #9

Closed quangbuule closed 5 years ago

quangbuule commented 7 years ago

I got this when I tried to listen to the MIDI device (followed the example):

** (stop) exited in: GenServer.call(PortMidi.Listeners, {:list, #PID<0.148.0>}, 5000)
    ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (elixir) lib/gen_server.ex:729: GenServer.call/3
    lib/portmidi/input/server.ex:35: PortMidi.Input.Server.handle_cast/2
    (stdlib) gen_server.erl:601: :gen_server.try_dispatch/4
    (stdlib) gen_server.erl:667: :gen_server.handle_msg/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Last message: {:"$gen_cast", {:new_messages, []}}
State: #PID<0.149.0>

My statement:

iex(1)> {:ok, input} = PortMidi.open(:input, "KRONOS KEYBOARD")

Did I miss something?

lucidstack commented 7 years ago

Hey there, thank you for using ex-portmidi! Are you absolutely sure you have added the portmidi application to your mix.exs file?

def application do
  [applications: [:portmidi]]
end

Looks like the PortMidi.Listeners GenServer (which is started with the :portmidi app) is not running.

lucidstack commented 5 years ago

Closing for inactivity :wave: