Skip to content

Occasionally hangs when running for a while #32

@matthewbauer

Description

@matthewbauer

Not sure what causes this, but occasionally Emacs hangs while monet is running. The backtrace looks like:

  websocket-send(#s(websocket :ready-state open :client-data nil :on-open #f(compiled-function (ws) #<bytecode -0x19d6683eb7f4a9d8>) :on-message #f(compiled-function (ws frame) #<bytecode -0x190e06b84aea2d31>) :on-close #f(compiled-function (ws) #<bytecode -0x5917b49c8121599>) :on-error #f(compiled-function (ws action error) #<bytecode -0xebb38510cd23e30>) :negotiated-protocols nil :negotiated-extensions nil :server-p t :url #<process websocket server on port 24569 <127.0.0.1:60808>> :protocols ("mcp") :extensions nil :conn #<process websocket server on port 24569 <127.0.0.1:60808>> :server-conn #<process websocket server on port 24569> :origin nil :accept-string "ZFWxOwBFabOBuXNqBREDtnnBHwg=" :inflight-input nil) #s(websocket-frame :opcode text :payload "{\"jsonrpc\":\"2.0\",\"method\":\"selection_changed\",\"params\":{\"text\":\"\",\"filePath\":\"<snip>\",\"fileUrl\":\"file://<snip>\",\"selection\":{\"start\":{\"line\":43,\"character\":6},\"end\":{\"line\":43,\"character\":6},\"isEmpty\":true}}}" :length nil :completep t))
  websocket-send-text(#s(websocket :ready-state open :client-data nil :on-open #f(compiled-function (ws) #<bytecode -0x19d6683eb7f4a9d8>) :on-message #f(compiled-function (ws frame) #<bytecode -0x190e06b84aea2d31>) :on-close #f(compiled-function (ws) #<bytecode -0x5917b49c8121599>) :on-error #f(compiled-function (ws action error) #<bytecode -0xebb38510cd23e30>) :negotiated-protocols nil :negotiated-extensions nil :server-p t :url #<process websocket server on port 24569 <127.0.0.1:60808>> :protocols ("mcp") :extensions nil :conn #<process websocket server on port 24569 <127.0.0.1:60808>> :server-conn #<process websocket server on port 24569> :origin nil :accept-string "ZFWxOwBFabOBuXNqBREDtnnBHwg=" :inflight-input nil) "{\"jsonrpc\":\"2.0\",\"method\":\"selection_changed\",\"params\":{\"text\":\"\",\"filePath\":\"<snip>\",\"fileUrl\":\"file://<snip>\",\"selection\":{\"start\":{\"line\":43,\"character\":6},\"end\":{\"line\":43,\"character\":6},\"isEmpty\":true}}}")
  monet--send-notification(#s(websocket :ready-state open :client-data nil :on-open #f(compiled-function (ws) #<bytecode -0x19d6683eb7f4a9d8>) :on-message #f(compiled-function (ws frame) #<bytecode -0x190e06b84aea2d31>) :on-close #f(compiled-function (ws) #<bytecode -0x5917b49c8121599>) :on-error #f(compiled-function (ws action error) #<bytecode -0xebb38510cd23e30>) :negotiated-protocols nil :negotiated-extensions nil :server-p t :url #<process websocket server on port 24569 <127.0.0.1:60808>> :protocols ("mcp") :extensions nil :conn #<process websocket server on port 24569 <127.0.0.1:60808>> :server-conn #<process websocket server on port 24569> :origin nil :accept-string "ZFWxOwBFabOBuXNqBREDtnnBHwg=" :inflight-input nil) "selection_changed" ((text . "") (filePath . "<snip>") (fileUrl . "file://<snip>") (selection (start (line . 43) (character . 6)) (end (line . 43) (character . 6)) (isEmpty . t))))
  #f(compiled-function (key session) #<bytecode -0xcea0306f9180bfc>)("*claude:<snip>:default*" #s(monet--session :key "*claude:<snip>:default*" :server #<process websocket server on port 24569> :client #s(websocket :ready-state open :client-data nil :on-open #f(compiled-function (ws) #<bytecode -0x19d6683eb7f4a9d8>) :on-message #f(compiled-function (ws frame) #<bytecode -0x190e06b84aea2d31>) :on-close #f(compiled-function (ws) #<bytecode -0x5917b49c8121599>) :on-error #f(compiled-function (ws action error) #<bytecode -0xebb38510cd23e30>) :negotiated-protocols nil :negotiated-extensions nil :server-p t :url #<process websocket server on port 24569 <127.0.0.1:60808>> :protocols ("mcp") :extensions nil :conn #<process websocket server on port 24569 <127.0.0.1:60808>> :server-conn #<process websocket server on port 24569> :origin nil :accept-string "ZFWxOwBFabOBuXNqBREDtnnBHwg=" :inflight-input nil) :directory "<snip>" :port 24569 :initialized t :auth-token "b61870a5-2055-4793-9dbd-3e9a2143539c" :opened-diffs #<hash-table equal 0/6 0x43b4b8ce ...> :deferred-responses #<hash-table equal 3/6 0x4704de96 ...> :originating-buffer #<killed buffer> :originating-tab nil :originating-frame #<frame  *Minibuf-1* 0x158963078>))
  monet--send-selection-to-all()
  apply(monet--send-selection-to-all nil)
  timer-event-handler([t 26937 57326 170122 nil monet--send-selection-to-all nil nil 0 nil])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions