Comments (7)
sgwerk, this commit helped or not? Now it behaves more like less. Every n jumps to next search and N to previous.
from elinks.
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).
All of this with the version before the last commit. After the very last commit, elinks also crashes on the first file.
from elinks.
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.
@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.
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.
@sgerwk I fixed one bug. Try now.
from elinks.
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)
- resume from suspend requires manual refresh HOT 19
- build fails when using -Dlibsixel=false HOT 2
- Can it run on iphoneos? HOT 2
- DOS version error no config HOT 1
- Can hooks scripts be used with -dump ? How? HOT 6
- Python error when calling elinks -dump from within Newsboat browser. HOT 5
- "ERROR at ../src/main/select.c:585: The call to select() failed: 22 (Invalid argument)" HOT 4
- Brew support broken? HOT 1
- mailcap-cache build broke by new --test option HOT 1
- meson fails by not finding tre although it's installed HOT 4
- [css] Support `@media (prefers-color-scheme: <light|dark>)` media queries
- [css] duplicate rules should override previously defined rules HOT 2
- Question: React-based web pages HOT 1
- small gcc-14 incompatibility HOT 1
- Cannot compile with meson HOT 2
- Missing <sys/cdefs.h> on systems with musl libc
- Undo last closed tab HOT 5
- How to view downloads? HOT 2
- Python 3.12 support: ModuleNotFoundError: No module named 'imp' HOT 2
- dump.footer misplaced. HOT 3
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 elinks.