Coder Social home page Coder Social logo

Comments (8)

c4l1c0 avatar c4l1c0 commented on June 2, 2024 1

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.

c4l1c0 avatar c4l1c0 commented on June 2, 2024 1

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.

c4l1c0 avatar c4l1c0 commented on June 2, 2024

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.

dankamongmen avatar dankamongmen commented on June 2, 2024

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.

c4l1c0 avatar c4l1c0 commented on June 2, 2024

Appreciate it, take it easy, cheers!

from notcurses.

dankamongmen avatar dankamongmen commented on June 2, 2024

oh that's a great find! thanks a lot, that ought make things significantly easier!

from notcurses.

c4l1c0 avatar c4l1c0 commented on June 2, 2024

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.

c4l1c0 avatar c4l1c0 commented on June 2, 2024

Wait sorry, i'm a dumbass, apparently it still happens when the tablet have top and/or bottom borders.

from notcurses.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.