Comments (24)
Please post the output of fastfetch --show-errors --multithreading false
from fastfetch.
from fastfetch.
Does fastfetch --structure Title:Separator:OS:Host:Kernel:Uptime:Packages:Resolution:DE:WM:WMTheme:Theme:Icons:Font:Cursor:Terminal:TerminalFont:CPU:GPU:Memory:Disk:Battery:Locale:Break:Colors
have the same issue?
from fastfetch.
yes it does
from fastfetch.
Well it is fine when I erase "resolution" item. So it's caused because of this module I think
from fastfetch.
Thanks, that makes debugging easier.
from fastfetch.
Of course, not a problem.
from fastfetch.
Let me sum it up so i can be sure:
- It does work in a newly created terminal as expected
- If a command was executed before, it has the line
- It doesn't matter what command was executed before
- The line always appears after the Shell output, even when multi threading is disabled
- Removing the shell output doesn't remove the issue
- Removing the resolution output does tho
- Same behavior in bash and fish
- Same behavior in different terminal emulators
If all of that is true, tbh i have no idea what even could be the problem.
from fastfetch.
Does the following command have the issue?
fastfetch --multithreading false --structure Title:Separator:OS:Host:Kernel:Uptime:Packages:Resolution:DE:WM:WMTheme:Theme:Icons:Font:Cursor:CPU:GPU:Memory:Disk:Battery:Locale:Break:Colors
from fastfetch.
Yes, all of that is true. Also it does that on my second device (stable PC) with same OS setup.
Does the following command have the issue?
Yes it does
Maybe I could some day try some debugging myself. I know C a little. But not sure what I can do.
from fastfetch.
The best thing you can try is to go to src/common/detectTerminalShell.c
. In line 190 you find static void getShellVersionGeneric(FFstrbuf* exe, const char* exeName, FFstrbuf* version)
. See if it gets executed. This is the only method that could potentially add a newline to an output. If it does, something is wrong with static void getShellVersion(FFstrbuf* exe, const char* exeName, FFstrbuf* version)
.
from fastfetch.
Ok I will look at that later. I will comment here once I try figure out something
from fastfetch.
I just fixed a bug in shell code, i don't believe this fixes your problem, but who knows.
from fastfetch.
Nope. Still same.
But found out another interesting fact. If I run fastfetch via run.sh it works properly, but if I run directly fastfetch it does not.
PS: I'm still planning to look at that code (especialy the func you recomended to me), but I haven't much time lately...
from fastfetch.
This is kinda expected, since calling a shell script spawns a new instance of sh, so running fastfetch through run.sh is always as if fastfetch is the first command to be entert in a terminal.
from fastfetch.
If you have latest version, can you please post the output of fastfetch --load-config devinfo-verbose
?
from fastfetch.
from fastfetch.
Output of fastfetch --shell-format "Before {7} After"
?
from fastfetch.
from fastfetch.
I have problem to debug the program.
With CLion nor with gdb I'm unable to reproduce the bug in debugging enviroment. As you said earlier:
This is kinda expected, since calling a shell script spawns a new instance of sh, so running fastfetch through run.sh is always as if fastfetch is the first command to be entert in a terminal.
debugger also creates new env, where the program runs perfectly.
If you have any advice, please tell me, but currently I don't know how to debug the program.
Also I have found solution. Kind of... By accident I discovered, that clear; sleep 0.1; fastfetch
works perfectly fine. I don't now how's that possible, but it is what it is. It is not clean solution, so if you have any ideas?...
from fastfetch.
This sounds more like a problem with clear in your terminal emulator than with fastfetch. Is it possible that bug happens with other programs too that output very fast, like clear; cat /proc/cpuinfo
?
from fastfetch.
well no, because it does it even without clear. Cmd fastfetch
will produce bug but sleep 0.1; fastfetch
won't. Even without the clear
cmd
from fastfetch.
Closing this for now, maybe it gets fixed in future by luck.
from fastfetch.
Actually it was already fixed by luck, but I forget to report it there. Thanks for the effort.
from fastfetch.
Related Issues (20)
- [FEAT] Disable fetching for specific package manager HOT 2
- [FEAT] Multidevice bcachefs filesystem for disk module HOT 5
- [BUG] Wrong GPU detection on latest version HOT 11
- [FEAT] Additional Temperature Formatting HOT 2
- [BUG] Display of Terminal being used changed from older versions HOT 5
- How to translate HOT 2
- [BUG] source: Error while reading file HOT 1
- Truncated/shortened lines in ```help_format.txt``` HOT 1
- [BUG] Completely blocked and unable to be fully displayed in the latest version of WSL HOT 3
- adding repo is failing on ubuntu 20.04 HOT 2
- [BUG] vulkan fails, CMake issue? HOT 5
- [BUG] Running 'fastfetch --help disk-format' on archlinux creates a segfault HOT 1
- [BUG] WSL fails HOT 20
- [BUG] NetBSD fails compiling FFstrbuf.h HOT 1
- [BUG]Resizing the terminal window causes a glitch! HOT 1
- [LOGO] PVE HOT 3
- [BUG] Chafa image logo is a blurry mess when specifying *both* width and height
- [BUG] ArcoLinux logo has the wrong accent colour..
- Termux error[BUG] HOT 10
- [BUG] Terminal field has wrong content HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastfetch.