Closed ciscohack closed 2 months ago
Try running moar
with --trace
.
When the problem occurs, exit moar
.
After moar
exits it should print debug information.
Please post that information here.
I installed ChromaTerm and tried reproducing this but failed, so I need something to go on.
@walles Thanks for check ...let me try actually when it freeze moar not gets exit ..some time if it work with other file then it run very slow or laggy.
Here is one output where it was working but while close it stuck for few sec...
Please post the following report at https://github.com/walles/moar/issues, or e-mail it to johan.walles@gmail.com.
Version: v1.26.0 LANG : en_US.UTF-8 TERM : xterm-256color MOAR : -colors=16M --render-unprintable=whitespace -mousemode=select EDITOR : nvim
GOOS : darwin GOARCH : arm64 Compiler: gc NumCPU : 12
time="Sep 7 16:53:58.291488" level=debug msg="Counted 170636 lines in 5.570292ms at 32ns/line"
time="Sep 7 16:53:58.303902" level=debug msg="Terminal background color detected as #1f1f28 after 11.562916ms"
time="Sep 7 16:53:58.303917" level=debug msg="Using style
Here is another output with very very slow reading
Please post the following report at https://github.com/walles/moar/issues, or e-mail it to johan.walles@gmail.com.
Version: v1.26.0 LANG : en_US.UTF-8 TERM : xterm-256color MOAR : -colors=16M --render-unprintable=whitespace -mousemode=select EDITOR : nvim
GOOS : darwin GOARCH : arm64 Compiler: gc NumCPU : 12
time="Sep 7 16:57:23.071970" level=debug msg="Counted 2650 lines in 393µs at 148ns/line"
time="Sep 7 16:57:23.072366" level=debug msg="Stream read in 257.292µs"
time="Sep 7 16:57:23.072373" level=debug msg="Tailing file dmesg_out.log"
time="Sep 7 16:57:23.074904" level=debug msg="Terminal background color detected as #1f1f28 after 2.450791ms"
time="Sep 7 16:57:23.074911" level=debug msg="Using style
is there any trick to kick out of moar forcefully ...if not love to have this option in future.. I tried ESC and quit and CTRL + C nothing working
Finally i reproduced and shared the last 2 output with trace output hope now you able to resolve the issue
ct moar --trace obfl-log Please post the following report at https://github.com/walles/moar/issues, or e-mail it to johan.walles@gmail.com.
Version: v1.26.0 LANG : en_US.UTF-8 TERM : xterm-256color MOAR : -colors=16M --render-unprintable=whitespace -mousemode=select EDITOR : nvim
GOOS : darwin GOARCH : arm64 Compiler: gc NumCPU : 12
time="Sep 7 17:03:47.600221" level=debug msg="Counted 6795 lines in 893.75µs at 131ns/line"
time="Sep 7 17:03:47.601074" level=debug msg="Stream read in 722.875µs"
time="Sep 7 17:03:47.601079" level=debug msg="Tailing file obfl-log"
time="Sep 7 17:03:47.605856" level=debug msg="Terminal background color detected as #0f141c after 5.019041ms"
time="Sep 7 17:03:47.605866" level=debug msg="Using style
Filtering out the file contents polling, below you can see what's left.
What's happening is:
w
for wrap toggle/sep
to search for sep
. Searches take a few milliseconds per letter.moar
receives a ton of ESC keystrokes, interspersed with q
.To me this looks like you've been trying to exit moar
, but ct
has eaten up all your keystrokes and then delivered all of them in a big pile.
You need to bring this up with the ct
developers.
time="Sep 7 17:03:47.600221" level=debug msg="Counted 6795 lines in 893.75µs at 131ns/line"
time="Sep 7 17:03:47.601074" level=debug msg="Stream read in 722.875µs"
time="Sep 7 17:03:47.601079" level=debug msg="Tailing file obfl-log"
time="Sep 7 17:03:47.605856" level=debug msg="Terminal background color detected as #0f141c after 5.019041ms"
time="Sep 7 17:03:47.605866" level=debug msg="Using style <native>"
time="Sep 7 17:03:47.605872" level=trace msg="Pager starting"
time="Sep 7 17:03:49.522100" level=trace msg="ttyin high watermark bumped to 1 bytes"
time="Sep 7 17:03:49.522349" level=trace msg="Handling rune event 'w'/0x0077..."
time="Sep 7 17:03:50.581702" level=trace msg="Handling rune event '/'/0x002f..."
time="Sep 7 17:03:51.504006" level=trace msg="Handling rune event 's'/0x0073..."
time="Sep 7 17:03:51.504093" level=debug msg="Searching 6795 lines across 12 cores with 566 lines per core..."
time="Sep 7 17:03:51.506104" level=debug msg="Searched 6795 lines in 1.544375ms at 4442klines/s or 227ns/line"
time="Sep 7 17:03:51.733215" level=trace msg="Handling rune event 'e'/0x0065..."
time="Sep 7 17:03:51.733243" level=debug msg="Searching 6795 lines across 12 cores with 566 lines per core..."
time="Sep 7 17:03:51.733310" level=debug msg="Searched 6795 lines in 54.625µs at 135Mlines/s or 8ns/line"
time="Sep 7 17:03:51.899706" level=trace msg="Handling rune event 'p'/0x0070..."
time="Sep 7 17:03:51.899743" level=debug msg="Searching 6795 lines across 12 cores with 566 lines per core..."
time="Sep 7 17:03:51.902747" level=debug msg="Searched 6795 lines in 2.992542ms at 2273klines/s or 440ns/line"
time="Sep 7 17:07:05.569113" level=trace msg="ttyin high watermark bumped to 298 bytes"
time="Sep 7 17:07:05.569289" level=debug msg="Unhandled multi character terminal escape sequence(s): {<0x1b><0x1b><0x1b><0x1b>qqqqqqqqqqqqqqqq<0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b>qqq<0x1b><0x1b>q<0x1b>q<0x1b>qq<0x1b>q<0x1b>q<0x1b>q<0x1b>q<0x1b><0x1b>q<0x1a><0x1a><0x 3><0x 3><0x 3><0x 3><0x 3><0x 3><0x 3><0x 3><0x 3><0x 3><0x 3><0x 3>qqqqq<0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x d><0x d><0x d><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b>}"
time="Sep 7 17:07:05.630972" level=trace msg="Handling key event 1..."
time="Sep 7 17:07:37.901903" level=debug msg="Unhandled multi character terminal escape sequence(s): {<0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b>}"
time="Sep 7 17:08:10.005834" level=debug msg="Unhandled multi character terminal escape sequence(s): {<0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b>qqqqqqqqqqqq<0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x d><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b>qq<0x1b>qq<0x1b><0x1b>qqq<0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b>}"
time="Sep 7 17:10:51.587762" level=trace msg="Handling key event 1..."
time="Sep 7 17:10:51.587832" level=debug msg="Unhandled multi character terminal escape sequence(s): {<0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x d><0x d><0x d><0x d><0x d><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b>}"
time="Sep 7 17:14:06.245210" level=debug msg="Unhandled multi character terminal escape sequence(s): {<0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b><0x1b>}"
time="Sep 7 17:16:05.632308" level=trace msg="Handling key event 0..."
time="Sep 7 17:16:05.632535" level=trace msg="Pager done"
@walles CT developer is now inactive and this issue is only happening in fish terminal whereas working find on ZSH thats why i knocked your door step for help
Sorry, but I can't help with ct
issues.
Hi Johan,
I wish you doing good. I am running latest moar version on macOS 14.6 and today i have installed fish shell and noticed if i open big file with moar and do some search in file the live incremental search stuck and freeze. this issue only happen when i use chromaterm (https://github.com/hSaria/ChromaTerm) a syntax highlighter.. Issue not seen in zsh shell only in Fish shell having problem with CT tool .. if i don't use CT then issue is not seen in fish but with CT zsh working fine.
Can you please check and do some optimisation to make it work? I have 10k line log file and when do
ct moar 'sep' terminal freeze and stuck. I am sure you have some thought to optimise the code to make it work.. pls do help