-
-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Messed background colors for logfiles when running lnav in a container #1379
Comments
FixJust change the |
I experianced somthing similar in docker. |
Indeed lnav should do something about it. At least documenting this hack somewhere |
If there is a log file generated when it crashes, can you attach it please? Could I also bother you to try one of the nightly builds and see if the problem persists |
I'm currently from my phone so I'l do it tomorrow. |
There's a beta release here: https://github.com/tstack/lnav/releases/tag/v0.12.4-beta2 The "bins" action that runs on a commit will have binaries attached: |
I did some more experiments with the "bins" executable and seems this is a sporadic problem. sometimes i managed to open lnav correctly (when "TERM=xterm" - with visualization problems), sometimes it crashed immediatly (with the crash message) and sometimes it showed a black console where pushing the latters buttons did nothing but the arrow buttons make it crash completly (with the crash message). The crashing problem could reproduced with:
so it seems it is not an issue of neither docker nor TERM With the version i'm using from "snap" (lnav 0.11.2), i don't have such problems Attached the crash logs for each type of crash (from the docker trial): crash-2025-02-04-09-45-43.756.log How to reproduce:
|
@ba-didi what terminal are you using? In the beta build, the ncurses library was swapped out for a newer library called notcurses. I thought I had fixed these startup issues, but I guess not. Thanks for being a guinea pig |
Er, I applied a fix after the beta2 build. The following run of the "bins" action contains that change: https://github.com/tstack/lnav/actions/runs/13107982834 The |
I think I've fixed this issue with change e28fd9d Thanks! |
lnav version
v0.12.3
Describe the bug
I'm trying to run lnav inside an alpine container and the background colors are not right as you can see
To Reproduce
I'm using the following dockerfile:
Trying to read the following file:
The image is being used as a service:
Finally, i'm running the service with:
And this results in the above screenshot. The same result persists when I'm using different shells (nushell and bash), different terminal emulators (ghostty and gnome terminal) and as a standalone docker container. But different formats (markdown and text) are working well
Edit: lnav works well when running it on my host machine with the same log file (installed it from nixpkgs using home-manager)
The text was updated successfully, but these errors were encountered: