[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64017] plotting with hist() results in unnece
From: |
Martin Castillo |
Subject: |
[Octave-bug-tracker] [bug #64017] plotting with hist() results in unnecessary big (/failing) memory allocation for some inputs. |
Date: |
Sat, 8 Apr 2023 09:45:59 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64017>
Summary: plotting with hist() results in unnecessary big
(/failing) memory allocation for some inputs.
Group: GNU Octave
Submitter: castilma
Submitted: Sat 08 Apr 2023 01:45:57 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: Martin Castillo
Originator Email:
Open/Closed: Open
Release: 8.1.0
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 08 Apr 2023 01:45:57 PM UTC By: Martin Castillo <castilma>
Consider the following three commands:
octave:26> hist(1:5,10.^(1:10))
Aoctave:27> hist(1:5,10.^(1:11))
error: out of memory or dimension too large for Octave's index type
error: called from
__bar__ at line 237 column 16
bar at line 117 column 18
hist at line 249 column 5
octave:28> hist(1:5,10.^(1:12))
The first one takes about two seconds on my machine.
The second is faster and throws that error.
The third is faster and throws no error, though it has more work to do (one
more bin).
After the first command, octave uses 1GB residential memory.
After the second and third it drops down to 180MB.
You may want to disable swap (sudo swapoff -a) before executing the second
one. Otherwise your system becomes unresponsive for a while.
They all run very fast an show no error when output is expected:
[a,b] = hist(1:5, 10.^(1:11))
So I think the problem must be with the plotting subsystem.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64017>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64017] plotting with hist() results in unnecessary big (/failing) memory allocation for some inputs.,
Martin Castillo <=
- [Octave-bug-tracker] [bug #64017] plotting with hist() results in unnecessary big (/failing) memory allocation for some inputs., Rik, 2023/04/10
- [Octave-bug-tracker] [bug #64017] plotting with hist() results in unnecessary big (/failing) memory allocation for some inputs., Dmitri A. Sergatskov, 2023/04/10
- [Octave-bug-tracker] [bug #64017] plotting with hist() results in unnecessary big (/failing) memory allocation for some inputs., Dmitri A. Sergatskov, 2023/04/10
- [Octave-bug-tracker] [bug #64017] patch object with set (gca, 'xtick', ticks) causes near hang or OOM, Rik, 2023/04/10
- [Octave-bug-tracker] [bug #64017] patch object with set (gca, 'xtick', ticks) causes near hang or OOM, Dmitri A. Sergatskov, 2023/04/10
- [Octave-bug-tracker] [bug #64017] patch object with set (gca, 'xtick', ticks) causes near hang or OOM, Rik, 2023/04/11
- [Octave-bug-tracker] [bug #64017] axis limits can cause excessive memory usage for minor ticks including OOM crash, Rik, 2023/04/11
- [Octave-bug-tracker] [bug #64017] axis limits can cause excessive memory usage for minor ticks including OOM crash, Rik, 2023/04/11
- [Octave-bug-tracker] [bug #64017] axis limits can cause excessive memory usage for minor ticks including OOM crash, Rik, 2023/04/18