Giter Club home page Giter Club logo

Comments (7)

rkd77 avatar rkd77 commented on August 20, 2024

sgwerk, this commit helped or not? Now it behaves more like less. Every n jumps to next search and N to previous.

from elinks.

sgerwk avatar sgerwk commented on August 20, 2024

Thanks, but unfortunately there are still some problems. On the enclosed file notfound.html elinks goes to the second match, but then doesn't go back to the first when wrapping around. On the second outofmemory.html it crashes (file log).

other.tar.gz

All of this with the version before the last commit. After the very last commit, elinks also crashes on the first file.

from elinks.

sgerwk avatar sgerwk commented on August 20, 2024

Forgot to say: in both files, the search pattern was "yyy"

When checked them again, I realized that the crash on the first file notfound.html was due to a different running condition, not to the last commit.

from elinks.

rkd77 avatar rkd77 commented on August 20, 2024

@sgerwk For wraparound I must look how it was before.
How much RAM do you have? Or what are the limits? What are your configure options?
Is this crash reproducible?

from elinks.

sgerwk avatar sgerwk commented on August 20, 2024

The crash happens every time. I start elinks with ./src/elinks ~/temp/outofmemory.html and then went to search for "yyy", and elinks crashes.

MemTotal: 770264 kB
max memory size (kbytes, -m) unlimited
./configure --prefix=/usr --sysconfdir=/etc --enable-cgi --without-zlib --enable-bittorrent

It's very limited memory, but I got the crash with a mostly unloaded system - no X, no special server active. With elinks running but before starting the search, the situation was:

MemTotal: 770264 kB
MemFree: 364256 kB
MemAvailable: 652224 kB

elinks itself used very little memory. Monitoring with top(1), it didn't seem to increase much. Rather, it looked like it tried to malloc() too much at once, and failed.

from elinks.

rkd77 avatar rkd77 commented on August 20, 2024

@sgerwk I fixed one bug. Try now.

from elinks.

sgerwk avatar sgerwk commented on August 20, 2024

Thanks, wraparound now works!

Regarding memory exhaustion, here is the memory elinks uses on noback.html before searching for "yyy"

MemTotal: 770264 kB
MemAvailable: 647272 kB

and here's after:

MemTotal: 770264 kB
MemAvailable: 49432 kB

Seems like very little is used for viewering the document itself, but a huge amount is allocated after searching. The memory used does not decrease after searching for a non-existing pattern.

from elinks.

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.