I was trying to use the unlimited history option to buffer a very long output, but it seems once the /tmp file gets past 2 GB, konsole just breaks entirely and floods .xsession-errors :/ lseek(78, -2147483536, SEEK_SET) = -1 EINVAL (Invalid argument) write(2, "HistoryFile::get.seek: Invalid argument\n", 40) = 40 write(2, "getHist(...,0,-2147483536): invalid args.\n", 42) = 42 (Additionally, probably Konsole shouldn't flood errors when something fails...)
*** Bug 333472 has been marked as a duplicate of this bug. ***
*** Bug 362197 has been marked as a duplicate of this bug. ***
known issue - easy fix would be use something other than short int - better would be to handle/limit huge files
(In reply to Kurt Hindenburg from comment #3) > better would be to ...limit huge files That wouldn't be a fix. I set unlimited because I actually want unlimited.
I will be satisfied with 2^63-1 bytes = 9223372036854775807 (64-bit signed). @Luke-Jr Would that be enough for you?
(In reply to Bugs Kde Org from comment #5) > I will be satisfied with 2^63-1 bytes = 9223372036854775807 (64-bit signed). > > @Luke-Jr Would that be enough for you? I was going to say "I don't think more is possible", but then I discovered fpos_t and fgetpos/fsetpos... But yes, 63-bit should be more than enough for a long time. :)
Git commit 0ede8bde1f61501b495c88a5fee9f6884e92ad4a by Kurt Hindenburg. Committed on 18/06/2017 at 22:54. Pushed by hindenburg into branch 'master'. Allow unlimited scrollback/history to extend pass 32bit/2GB limit Revamp the file-based "unlimited" scrollback code to remove limits caused by 32bit file offsets. Use Qt's I/O functions which are buffered and use 64bit offsets. Use Qt's map instead of direct mmap to ensure consistency. Prevent wrap-around of readWriteBalance. Patch from FreeBSD committed by rezny https://github.com/freebsd/freebsd-ports-kde/blob/master/x11/konsole/files/patch-src_History.cpp https://github.com/freebsd/freebsd-ports-kde/blob/plasma5/x11/konsole/files/patch-fix_infinite_scrollback M +41 -51 src/History.cpp M +7 -8 src/History.h https://commits.kde.org/konsole/0ede8bde1f61501b495c88a5fee9f6884e92ad4a
*** Bug 146483 has been marked as a duplicate of this bug. ***