smartrent / grizzly

Elixir Z-Wave Library

Home Page:https://hex.pm/packages/grizzly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when mailbox queue is full

mattludwigs opened this issue · comments

14:50:41.706 [error] GenServer #PID<0.4561.52> terminating
** (CaseClauseError) no case clause matching: :nack_queue_full
    (grizzly 0.22.3) lib/grizzly/commands/command.ex:95: Grizzly.Commands.Command.handle_zip_command/2
    (grizzly 0.22.3) lib/grizzly/commands/command_runner.ex:64: Grizzly.Commands.CommandRunner.handle_call/3
    (stdlib 3.16.1) gen_server.erl:721: :gen_server.try_handle_call/4
    (stdlib 3.16.1) gen_server.erl:750: :gen_server.handle_msg/6
    (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message (from #PID<0.3288.52>): {:handle_zip_command, %Grizzly.ZWave.Command{command_byte: 2, command_class: Grizzly.ZWave.CommandClasses.ZIP, impl: Grizzly.ZWave.Commands.ZIPPacket, name: :zip_packet, params: [seq_number: 62, source: 0, dest: 0, secure: true, header_extensions: [], command: nil, flag: :nack_queue_full]}}
State: %Grizzly.Commands.Command{handler: Grizzly.CommandHandlers.AckResponse, handler_state: nil, node_id: 26, owner: #PID<0.3288.52>, ref: #Reference<0.3684520303.314834945.241240>, retries: 2, seq_number: 62, source: %Grizzly.ZWave.Command{command_byte: nil, command_class: Grizzly.ZWave.CommandClasses.NoOperation, impl: Grizzly.ZWave.Commands.NoOperation, name: :no_operation, params: []}, status: :inflight, timeout_ref: #Reference<0.3684520303.314834945.241244>, transmission_stats: [], with_transmission_stats: false}
Client #PID<0.3288.52> is alive

    (stdlib 3.16.1) gen.erl:233: :gen.do_call/4
    (elixir 1.12.3) lib/gen_server.ex:1021: GenServer.call/3
    (grizzly 0.22.3) lib/grizzly/connections/command_list.ex:151: anonymous fn/3 in Grizzly.Connections.CommandList.get_response_for_command/2
    (elixir 1.12.3) lib/enum.ex:2385: Enum."-reduce/3-lists^foldl/2-0-"/3
    (grizzly 0.22.3) lib/grizzly/connections/command_list.ex:52: Grizzly.Connections.CommandList.response_for_zip_packet/2
    (grizzly 0.22.3) lib/grizzly/connections/sync_connection.ex:186: Grizzly.Connections.SyncConnection.do_handle_commands/2
    (grizzly 0.22.3) lib/grizzly/connections/sync_connection.ex:139: Grizzly.Connections.SyncConnection.handle_info/2
    (stdlib 3.16.1) gen_server.erl:695: :gen_server.try_dispatch/4
       

Closed by #571