octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59237] Crash when pasting 64 commands


From: anonymous
Subject: [Octave-bug-tracker] [bug #59237] Crash when pasting 64 commands
Date: Sat, 17 Oct 2020 13:42:33 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Follow-up Comment #10, bug #59237 (project octave):

All of this is a stress test on Octave 7.0.0 on Linux. It is not
representative of a normal user's behavior.

How to do the test:
1. Save attached file folsd.m and open in a text editor.

2. Copy whatever number of lines you are comfortable with copying, and paste
them at Octave's command prompt. For CLI invoked from the terminal, I tested
Ctrl-Shift-V and also right-click + Paste. For the GUI I tested right-click +
Paste.

3. Plot the vector "a", which will indicate time performance.

4. For calibration, also invoke the file folsd.m as a script from the Octave
prompt to see how long it takes.

Results:

For the CLI, there is absolutely no problem pasting all 10000 lines. It takes
less than a second to paste everything and the time behavior is very much
linear.

For the GUI, I can paste up to approximately 511 to 530 lines. That takes
about 3 seconds on my machine, and there are a couple of time skips as shown
(Figure attached). This is repeatable behavior.

Pasting more than about 530 lines in the GUI simply doesn't work for me. It
doesn't crash but it completely stops responding. The number of lines that can
be pasted in the GUI is reduced by a lot if the lines are longer.

No doubt there is some internal limit to how much can be copy-pasted at the
GUI prompt, and it is much lower and much slower than the CLI's limits. BUT
this is easily worked around by saving everything as a script file and
executing that. Even with the GUI that takes less than a second.

Close this bug as Won't Fix because of an easy workaround?


(file #50001, file #50002)
    _______________________________________________________

Additional Item Attachment:

File name: folsd.m                        Size:222 KB
    <https://file.savannah.gnu.org/file/folsd.m?file_id=50001>

File name: copy-paste-performance.png     Size:87 KB
   
<https://file.savannah.gnu.org/file/copy-paste-performance.png?file_id=50002>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59237>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]