Comments (8)
So i just done more testing, and apparently when i remove the top and bottom borders of the tablets using tabletmask
in ncreel_options struct
, the segfaults completely gone.
Enabling either top, bottom, or both, triggers the segfaults when scrolling down.
I think i'm going to disable top and bottom border as a workaround for now. Thanks!
from notcurses.
Update, i was experiencing segfault sometimes with no border around the tablets. This time the tablet contains longer text inside it.
If anyone experiencing this, the workaround is by incrementing the number of lines returned by tablet callback.
from notcurses.
I just tried adding less tablets to the reels so that the tablets never reach the bottom of the reels, and scrolling works fine, both ups and downs, circular and infinite, no errors whatsoever.
I then started to add tablets one by one, until something breaks, and when one of the tablets reached the bottom of the reel (or plane?), the whole screen shifts up and i got these errors everytime i press j
or down
ncplane_cursor_move_yx:732:target y 2 >= height 2
ncplane_cursor_move_yx:732:target y 2 >= height 2
ncplane_cursor_move_yx:732:target y 2 >= height 2
ncplane_cursor_move_yx:732:target y 2 >= height 2
ncplane_cursor_move_yx:732:target y 2 >= height 2
ncplane_resize_internal:834:can't keep 3@1 rows from 3 ncreel_redraw:725:error drawing tablet
Adding one more tablet at this point and then scrolling down gives me segfault
from notcurses.
ick, this likely affects my growlight tool if this is all valid. i'll look into it as soon as i can (probably not before this weekend, sadly). thanks for the high-quality report!
from notcurses.
Appreciate it, take it easy, cheers!
from notcurses.
oh that's a great find! thanks a lot, that ought make things significantly easier!
from notcurses.
Apparently, this is because i counted the content of the tablets wrong, hence i returned the wrong return value for the tablet callback. This is the cause of the segfaults. SOOOO DUMB!!
Thanks for the help, i'm closing this issue.
from notcurses.
Wait sorry, i'm a dumbass, apparently it still happens when the tablet have top and/or bottom borders.
from notcurses.
Related Issues (20)
- Notcurses hangs with tmux (if built with sixel support) HOT 13
- Old package version in Debian Unstable HOT 4
- Build error because of empty initializers HOT 2
- generating parse errors in kitty since at least 0.26.5 HOT 3
- Troubles building notcurses on windows
- C++ wrapper: Plane::set_bg_rgb8 has a typo HOT 2
- Possibility of refreshing terminfo cache? HOT 4
- Getting the new window size when receiving `NCKEY_RESIZE` HOT 1
- Resizing window causes ghost characters to remain HOT 9
- Builtin way to get "topmost plane containing coordinates"? HOT 6
- Non-user generated inputs on startup
- `ncplane_putnstr` doesn't fully respect the maximum number of bytes HOT 18
- amata_next diagnostics on startup
- input byte-limited versions of output functions HOT 6
- USAGE.md references non-existing constant `NC_FG_ALPHA_MASK` HOT 2
- Add node wrappers for node cli tools to use
- Add an option to disable the kitty background color avoidance feature
- API feels gimped, need ncplanes without parents HOT 2
- Potential memory access overflow in utf8_egc_len HOT 6
- Check for <= 0 sorta fails because of unsigned int / int mismatch HOT 4
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 notcurses.