I think one of my package is interacting wrongly with TRAMP and it is too often freezing. It is difficult to debug as it freezes totally and quite annoying as I cannot interrupt with C-g. Are there options to run tramp in a way it does not collapse the whole emacs? I could then try to guess which package interact with it by deactivating/activating them…

It seems to work properly if I open emacs with emacs -Q

  • antoniovr@lemmy.mlOP
    link
    fedilink
    arrow-up
    2
    ·
    19 days ago

    USR2 kill signal

    I thought it was doing the same in all my computers, but now I realize it is working flawlessly on my work computer (it is usually the one I connect to more than the other way around). So I will have to wait to come back home to test… Thanks!

    • antoniovr@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      19 days ago

      I got this: ‘’’ Debugger entered–entering a function:

      • tramp-signal-hook-function(quit nil) accept-process-output(#<process tramp/ssh hostname> nil nil t) tramp-accept-process-output(#<process tramp/ssh hostname>) tramp-wait-for-regexp(#<process tramp/ssh hostname> nil “\(\|\0\)[#$\n]*///c5b98e39a5efa59d7bdf1c6d253a5711…”) tramp-wait-for-output(#<process tramp/ssh hostname>) tramp-send-command((tramp-file-name “ssh” nil nil “hostname” nil “/home/username/Documentos/PFCs” nil) “test -d /home/username/Documentos/PFCs 2>/dev/null;…”) tramp-send-command-and-check((tramp-file-name “ssh” nil nil “hostname” nil “/home/username/Documentos/PFCs” nil) “test -d /home/username/Documentos/PFCs”) tramp-run-test(“-d” “/ssh:hostname:/home/username/Documentos/PF…”) tramp-sh-handle-file-directory-p(“/ssh:hostname:/home/username/Documentos/PF…”) tramp-sh-file-name-handler(file-directory-p “/ssh:hostname:/home/username/Documentos/PF…”) apply(tramp-sh-file-name-handler file-directory-p “/ssh:hostname:/home/username/Documentos/PF…”) tramp-file-name-handler(file-directory-p “/ssh:hostname:/home/username/Documentos/PF…”) dired-file-name-at-point() #f(compiled-function (end) #<bytecode -0x173bc3a085806227>)(9487) font-lock-fontify-keywords-region(8176 9833 nil) font-lock-default-fontify-region(8243 9743 nil) font-lock-fontify-region(8243 9743) #f(compiled-function (fun) #<bytecode 0x19b6bc6d8d99297d>)(font-lock-fontify-region) jit-lock–run-functions(8243 9743) jit-lock-fontify-now(8243 9743) jit-lock-function(8243) line-move-1(1 t) line-move(1 t) dired-next-line(1) (while (< (point) subdir-end) (dired-details-make-current-line-overlay cache) (dired-next-line 1)) (let ((cache (list (car dir-and-pos))) (subdir-start (cdr dir-and-pos)) (subdir-end (1- (dired-get-subdir-max dir-and-pos)))) (goto-char subdir-start) (dired-goto-next-file) (while (< (point) subdir-end) (dired-details-make-current-line-overlay cache) (dired-next-line 1)) (setq dired-details-internal-overlay-list (cons cache dired-details-internal-overlay-list))) (if cached-overlays (dired-details-frob-overlays t) (let ((cache (list (car dir-and-pos))) (subdir-start (cdr dir-and-pos)) (subdir-end (1- (dired-get-subdir-max dir-and-pos)))) (goto-char subdir-start) (dired-goto-next-file) (while (< (point) subdir-end) (dired-details-make-current-line-overlay cache) (dired-next-line 1)) (setq dired-details-internal-overlay-list (cons cache dired-details-internal-overlay-list)))) (let ((cached-overlays (assoc (car dir-and-pos) dired-details-internal-overlay-list))) (if cached-overlays (dired-details-frob-overlays t) (let ((cache (list (car dir-and-pos))) (subdir-start (cdr dir-and-pos)) (subdir-end (1- (dired-get-subdir-max dir-and-pos)))) (goto-char subdir-start) (dired-goto-next-file) (while (< (point) subdir-end) (dired-details-make-current-line-overlay cache) (dired-next-line 1)) (setq dired-details-internal-overlay-list (cons cache dired-details-internal-overlay-list))))) (lambda (dir-and-pos) (let ((cached-overlays (assoc (car dir-and-pos) dired-details-internal-overlay-list))) (if cached-overlays (dired-details-frob-overlays t) (let ((cache (list …)) (subdir-start (cdr dir-and-pos)) (subdir-end (1- …))) (goto-char subdir-start) (dired-goto-next-file) (while (< (point) subdir-end) (dired-details-make-current-line-overlay cache) (dired-next-line 1)) (setq dired-details-internal-overlay-list (cons cache dired-details-internal-overlay-list))))))((“/ssh:hostname:/home/username/Documentos/” . #<marker at 1 in Documentos</ssh:hostname:>>)) mapc((lambda (dir-and-pos) (let ((cached-overlays (assoc (car dir-and-pos) dired-details-internal-overlay-list))) (if cached-overlays (dired-details-frob-overlays t) (let ((cache (list …)) (subdir-start (cdr dir-and-pos)) (subdir-end (1- …))) (goto-char subdir-start) (dired-goto-next-file) (while (< (point) subdir-end) (dired-details-make-current-line-overlay cache) (dired-next-line 1)) (setq dired-details-internal-overlay-list (cons cache dired-details-internal-overlay-list)))))) ((“/ssh:hostname:/home/username/Documentos/” . #<marker at 1 in Documentos</ssh:hostname:>>))) (save-restriction (widen) (mapc '(lambda (dir-and-pos) (let ((cached-overlays (assoc … dired-details-internal-overlay-list))) (if cached-overlays (dired-details-frob-overlays t) (let (… … …) (goto-char subdir-start) (dired-goto-next-file) (while … … …) (setq dired-details-internal-overlay-list …))))) dired-subdir-alist)) (save-excursion (save-restriction (widen) (mapc '(lambda (dir-and-pos) (let ((cached-overlays …)) (if cached-overlays (dired-details-frob-overlays t) (let … … … … …)))) dired-subdir-alist))) (lambda nil “Make an invisible, evaporable overlay for each fil…” (interactive) (if (memq major-mode '(dired-mode vc-dired-mode)) nil (error “dired-details-hide can only be called in dired mod…”)) (if dired-details-debug (progn (let ((b (get-buffer-create “dired-details-debug”))) (append-to-buffer b (point) (point-max))))) (save-excursion (save-restriction (widen) (mapc '(lambda (dir-and-pos) (let (…) (if cached-overlays … …))) dired-subdir-alist))) (setq dired-details-state 'hidden))() ad-Advice-dired-details-hide((lambda nil “Make an invisible, evaporable overlay for each fil…” (interactive) (if (memq major-mode '(dired-mode vc-dired-mode)) nil (error “dired-details-hide can only be called in dired mod…”)) (if dired-details-debug (progn (let ((b (get-buffer-create “dired-details-debug”))) (append-to-buffer b (point) (point-max))))) (save-excursion (save-restriction (widen) (mapc '(lambda (dir-and-pos) (let … …)) dired-subdir-alist))) (setq dired-details-state 'hidden))) apply(ad-Advice-dired-details-hide (lambda nil “Make an invisible, evaporable overlay for each fil…” (interactive) (if (memq major-mode '(dired-mode vc-dired-mode)) nil (error “dired-details-hide can only be called in dired mod…”)) (if dired-details-debug (progn (let ((b (get-buffer-create “dired-details-debug”))) (append-to-buffer b (point) (point-max))))) (save-excursion (save-restriction (widen) (mapc '(lambda (dir-and-pos) (let … …)) dired-subdir-alist))) (setq dired-details-state 'hidden)) nil) dired-details-hide() (progn (dired-details-hide)) (if (eq 'hidden dired-details-last-state) (progn (dired-details-hide))) (cond (dired-details-state (if (eq 'hidden dired-details-state) (progn (dired-details-hide)))) ((and dired-details-propagate-flag dired-details-last-state) (if (eq 'hidden dired-details-last-state) (progn (dired-details-hide)))) (t (if dired-details-initially-hide (progn (dired-details-hide))))) (save-restriction (widen) (dired-details-delete-overlays) (cond (dired-details-state (if (eq 'hidden dired-details-state) (progn (dired-details-hide)))) ((and dired-details-propagate-flag dired-details-last-state) (if (eq 'hidden dired-details-last-state) (progn (dired-details-hide)))) (t (if dired-details-initially-hide (progn (dired-details-hide)))))) (save-excursion (save-restriction (widen) (dired-details-delete-overlays) (cond (dired-details-state (if (eq 'hidden dired-details-state) (progn (dired-details-hide)))) ((and dired-details-propagate-flag dired-details-last-state) (if (eq ‘hidden dired-details-last-state) (progn (dired-details-hide)))) (t (if dired-details-initially-hide (progn (dired-details-hide))))))) dired-details-activate() dired-readin() dired-internal-noselect(“/ssh:hostname:/home/username/Documentos/” nil) dired-noselect(“/ssh:hostname:/home/username/Documentos”) run-hook-with-args-until-success(dired-noselect “/ssh:hostname:/home/username/Documentos”) find-file-noselect(“/ssh:hostname:/home/username/Documentos” nil nil nil) find-file(“/ssh:hostname:/home/username/Documentos”) dired–find-file(find-file “/ssh:hostname:/home/username/Documentos”) dired–find-possibly-alternative-file(“/ssh:hostname:/home/username/Documentos”) dired-find-file() funcall-interactively(dired-find-file) command-execute(dired-find-file) ‘’’

      I have replaced hostname and username with those words instead. What do you think? May it be the tramp-wait-for-regexp or the dired-find-file. I don’t know whether last things before the kill -12 are on the top or on the bottom…

      • midribbon_action@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        5 days ago

        The top is where you interrupted it, and the bottom is the last interactive command you entered, dired-find-file.

        I’m curious what the output and return value of the command ssh hostname 'test -d /home/username/Documentos/PFCs' is. That is what you interrupted when you sent the signal, it was waiting for a response.

      • madnificent@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        18 days ago

        I did not receive a ping because it was a nested comment (TIL)

        I tend to start digging into the source (with M-. to jump to definitions and M-, to pop back). I also tend to break, press c to continue, then break again and see if I’m still in the same spot. I don’t see much wrong with this. It looks like you’re opening a file on a remote host and it seems to be rendering these files. Perhaps that always happens.

        I do see an advice dired-details-hide. I vaguely recall there being an issue with something with pretty dired (but I think that was with all-the-icons).

        It could also be that tramp’s connection broke. Then call tramp-cleanup-this-connection. Something else is probably going haywire, but using ssh’s ControlMaster and reusing the sockets can help with slowdowns then. Using tramp is always going to be slower due to the connection, yet if something freezes it’s probably a package interfering and here possibly fontification.