Comments (9)
I am unable to reproduce on Ubuntu. Can you please debug further to figure out which pointer is being freed without allocation?
from nnn.
This is coming from commit 3665541 and the next one.
@N-R-K can you please have a look?
from nnn.
Can we write directly to fd
instead of having the temporary buffer?
from nnn.
Please confirm that the fix works.
from nnn.
This looks like a duplicate of #1768
It should be fixed in master
. @XhstormR Can you try master
branch and confirm?
This is coming from commit 3665541 and the next one.
@jarun I'm pretty sure that that is the commit that fixed the issue. be6988d should not be necessary.
from nnn.
Can we write directly to
fd
instead of having the temporary buffer?
Making a syscall for each and every byte seems unnecessary waste of resources to me.
IMO be6988d should be reverted since the bug was already fixed.
OP was using v4.9
instead of master
branch. Maybe we can cut a new release soon?
from nnn.
I reproduced this one master (using fastmac) before attempting the fix.
As for a syscall overhead, I will add a new version to use dprintf.
from nnn.
I reproduced this one master (using fastmac) before attempting the fix.
Interesting. I don't know how that's possible. The help string is 1832 bytes and the buffer is 2048 bytes. It has more than enough space.
As for a syscall overhead, I will add a new version to use dprintf.
dprintf
also makes 1 write
syscall per call since dprintf
uses file-descriptor directly without any buffering.
You'd need to use a FILE *
with fopen
+ fwrite
etc to avoid many syscalls. Do you want to make that change yourself or should I open a PR later today?
from nnn.
Please raise the PR.
from nnn.
Related Issues (20)
- Icons does not work when NNN is opened with -C option HOT 5
- preview-tui: mpv HOT 11
- Syntax error with prescribed split-pane script HOT 7
- tabs content colorization is not working (zsh+tmux) HOT 3
- preview-tui does not work with tmux 3.4 HOT 1
- Wrong position of previews in 4K monitor with fractional scaling of 1.5 HOT 1
- Files created with `n`, `f` have incorrect permissions HOT 5
- sort order.... whatever it means.. HOT 2
- preview-tui with wezterm: No FIFO available! ($NNN_FIFO='') HOT 2
- Respect keys regardless of kb language input HOT 4
- Visual Glitch, visual bug, the whole screen breaks, resize does something, redraw does not HOT 1
- Sorting bug, different behavior for t and ^T HOT 2
- Misleading typo in the wiki HOT 1
- [plugin] file preview panel get stuck when use plugin preview-tui with tmux and bat HOT 2
- Keybind collision when using the colemak patch HOT 5
- The first letter of the file is not correct after change dir HOT 2
- mess with shell colors HOT 8
- [bash] nnn can't return after executing command (] key) if invoked from a `bind -x` keybinding. HOT 4
- preview-tui: 1: eval: Syntax error: "(" unexpected HOT 5
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 nnn.