Comments (2)
Opening files with more than UINT32_MAX is broken in klogg as well as upstream. Index builds fine, but line number counter overflows.
from klogg.
Klogg uses QString::length
and QTextCodec::toUnicode
to handle individual strings. So there will be no support for files that have lines with more than 2147483647 characters.
I've decided to keep original limit for total number of lines in file. Files with more than 4294967295 lines will not be displayed correctly.
Klogg uses QIODevice interface to read data from filesystem. This implies that maximum supported file size is 9223372036854775807 bytes (~9223 petabytes). It seems very unlikely to cause any trouble.
I've used stong typing technique from Fluent C++ to express line related types in code (line number, line length, offset and count). This prevents from accidentally passing wrong type (for example, line number instead of number of lines) and allows to limit operations on that types (adding line numbers is not allowed, subtracting line numbers produces a number of lines, but line number can be incremented/decremented etc.).
I hope more old bugs were fixed during this refactoring that introduced.
from klogg.
Related Issues (20)
- Klogg uploading crash reports.
- Code I am trying to look at is crashing KLOGG. I have opened up this sized file on there before. Today it seems to be crashing it. 40,523KB HOT 1
- How to color labels multi-lines ?
- Any way to turn off or hide the "caution bars" at the bottom of the editors?
- Font anti-aliasing
- [23.08] choose color of the currently selected line
- playing with large ~3GB file -> copy/paste and then choosing 'Send to scratchpad' leads to crash
- button difficult to discern whether to press or not HOT 1
- How to auto highlight the line I marked HOT 1
- Feature Request - create and publish flatpak
- Open logs directly from intellij phpstorm
- [feature request] add sort search result
- crash dump
- New issue HOT 1
- Clear Log deletes underlying data.
- crash
- Can I request a feature?
- Is there a way to exclude matched lines from UI?
- No response
- Depends to openssl-1.1 HOT 1
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 klogg.