<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>416940</bug_id>
          
          <creation_ts>2020-01-30 09:47:33 +0000</creation_ts>
          <short_desc>Scrollback limit in megabytes</short_desc>
          <delta_ts>2024-12-04 10:13:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konsole</product>
          <component>history</component>
          <version>19.08.0</version>
          <rep_platform>Debian stable</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Alexander Potashev">aspotashev</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          <cc>dp</cc>
    
    <cc>nate</cc>
    
    <cc>tcanabrava</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1906487</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Potashev">aspotashev</who>
    <bug_when>2020-01-30 09:47:33 +0000</bug_when>
    <thetext>SUMMARY
I would like to set scrollback limit to a specific number of megabytes and store it in RAM.

The objective is to have a deep enough history stored in RAM, but still limit it to using a reasonable amount of RAM (e.g. up to 2 GB). For my use case I can&apos;t use Unlimited scrollback stored on disk for information security reasons.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
konsole Version 19.08.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1906494</commentid>
    <comment_count>1</comment_count>
    <who name="">tcanabrava</who>
    <bug_when>2020-01-30 10:48:45 +0000</bug_when>
    <thetext>We have a patch for Konsole that encrypts the file in disk:
https://phabricator.kde.org/D16134

It&apos;s not landed, but maybe you can take a look on it to see if you feel it would be a good alternative for what you are describing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1920113</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Potashev">aspotashev</who>
    <bug_when>2020-04-04 16:34:54 +0000</bug_when>
    <thetext>(In reply to tcanabrava from comment #1)
&gt; We have a patch for Konsole that encrypts the file in disk:
&gt; https://phabricator.kde.org/D16134

Yes, this would be a perfect solution for my use case. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1943046</commentid>
    <comment_count>3</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2020-07-11 19:12:16 +0000</bug_when>
    <thetext>I&apos;ve abandoned that patch; it would better to use an OS encrypted folder/file/HD</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951006</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Potashev">aspotashev</who>
    <bug_when>2020-08-15 21:52:27 +0000</bug_when>
    <thetext>(In reply to Kurt Hindenburg from comment #3)
&gt; I&apos;ve abandoned that patch; it would better to use an OS encrypted
&gt; folder/file/HD

This would be less secure (than a random security key per Konsole tab) because a user typically has access to the encrypted files, therefore the Konsole scrollback can be recovered by an attacker in a case when the encryption key is revealed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951007</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Potashev">aspotashev</who>
    <bug_when>2020-08-15 21:53:09 +0000</bug_when>
    <thetext>&gt; random security key

I meant: random encryption [private] key</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1951008</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Potashev">aspotashev</who>
    <bug_when>2020-08-15 21:53:13 +0000</bug_when>
    <thetext>&gt; random security key

I meant: random encryption [private] key</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2304766</commentid>
    <comment_count>7</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2024-03-24 01:04:33 +0000</bug_when>
    <thetext>I would agree that perhaps instead of lines, the user could specify MBs.  However, I&apos;m sure if that&apos;s possible or how complex that would be.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2378862</commentid>
    <comment_count>8</comment_count>
    <who name="mythsmith">dp</who>
    <bug_when>2024-12-04 07:48:07 +0000</bug_when>
    <thetext>Limit in megabytes is essential to avoid consuming all available disk space. It occurred to me few times during long monitoring sessions where a program started to produce an enormous amount of error logging, filled the disk and the OS crashed.
There should not exist any such thing as an &quot;unlimited&quot; file logging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2378869</commentid>
    <comment_count>9</comment_count>
      <attachid>176339</attachid>
    <who name="">tcanabrava</who>
    <bug_when>2024-12-04 08:49:01 +0000</bug_when>
    <thetext>Created attachment 176339
attachment-520800-0.html

This is a nice idea .

On Wed, Dec 4, 2024 at 8:48 AM mythsmith &lt;bugzilla_noreply@kde.org&gt; wrote:

&gt; https://bugs.kde.org/show_bug.cgi?id=416940
&gt;
&gt; mythsmith &lt;dp@mythsmith.it&gt; changed:
&gt;
&gt;            What    |Removed                     |Added
&gt;
&gt; ----------------------------------------------------------------------------
&gt;                  CC|                            |dp@mythsmith.it
&gt;
&gt; --- Comment #8 from mythsmith &lt;dp@mythsmith.it&gt; ---
&gt; Limit in megabytes is essential to avoid consuming all available disk
&gt; space. It
&gt; occurred to me few times during long monitoring sessions where a program
&gt; started to produce an enormous amount of error logging, filled the disk
&gt; and the
&gt; OS crashed.
&gt; There should not exist any such thing as an &quot;unlimited&quot; file logging.
&gt;
&gt; --
&gt; You are receiving this mail because:
&gt; You are the assignee for the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2378883</commentid>
    <comment_count>10</comment_count>
    <who name="mythsmith">dp</who>
    <bug_when>2024-12-04 10:13:18 +0000</bug_when>
    <thetext>I would add, history file should always start rolling (or rotating) whenever free space on target dir drops below a threshold (with a hard lower limit of 1MB or so).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>176339</attachid>
            <date>2024-12-04 08:49:01 +0000</date>
            <delta_ts>2024-12-04 08:49:01 +0000</delta_ts>
            <desc>attachment-520800-0.html</desc>
            <filename>attachment-520800-0.html</filename>
            <type>text/html</type>
            <size>1533</size>
            <attacher>tcanabrava</attacher>
            
              <data encoding="base64">PGRpdiBkaXI9Imx0ciI+VGhpcyBpcyBhIG5pY2UgaWRlYSAuPGJyPjwvZGl2Pjxicj48ZGl2IGNs
YXNzPSJnbWFpbF9xdW90ZSBnbWFpbF9xdW90ZV9jb250YWluZXIiPjxkaXYgZGlyPSJsdHIiIGNs
YXNzPSJnbWFpbF9hdHRyIj5PbiBXZWQsIERlYyA0LCAyMDI0IGF0IDg6NDjigK9BTSBteXRoc21p
dGggJmx0OzxhIGhyZWY9Im1haWx0bzpidWd6aWxsYV9ub3JlcGx5QGtkZS5vcmciPmJ1Z3ppbGxh
X25vcmVwbHlAa2RlLm9yZzwvYT4mZ3Q7IHdyb3RlOjxicj48L2Rpdj48YmxvY2txdW90ZSBjbGFz
cz0iZ21haWxfcXVvdGUiIHN0eWxlPSJtYXJnaW46MHB4IDBweCAwcHggMC44ZXg7Ym9yZGVyLWxl
ZnQ6MXB4IHNvbGlkIHJnYigyMDQsMjA0LDIwNCk7cGFkZGluZy1sZWZ0OjFleCI+PGEgaHJlZj0i
aHR0cHM6Ly9idWdzLmtkZS5vcmcvc2hvd19idWcuY2dpP2l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