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

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

[Octave-bug-tracker] [bug #59306] memory function fails, but in interact


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #59306] memory function fails, but in interactive mode only
Date: Mon, 19 Oct 2020 13:18:16 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763

URL:
  <https://savannah.gnu.org/bugs/?59306>

                 Summary: memory function fails, but in interactive mode only
                 Project: GNU Octave
            Submitted by: arb
            Submitted on: Mon 19 Oct 2020 05:18:14 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

The memory function fails for me:


octave-7.0.0 --quiet
octave:1> memory
error: structure has no member 'SystemMemory'
error: called from
    memory at line 203 column 31
stopped in memory at line 203
[install_dir/octave/7.0.0/m/miscellaneous/memory.m]
203:   syst.SystemMemory.Available = available_ram + free_swap;


this script memory_copy reproduces the issue

function memory_copy ()
  ver = version
  hg_id = __octave_config_info__.hg_id
  syst.PhysicalMemory.Available = 0
  syst.PhysicalMemory.Total = 0
  syst.SystemMemory.Available = 0
  syst.SystemMemory.Total = 0
endfunction



ver = 7.0.0
hg_id = 0089f0213384
syst = scalar structure containing the fields:
    PhysicalMemory = scalar structure containing the fields:
        Available = 0

syst = scalar structure containing the fields:
    PhysicalMemory =   scalar structure containing the fields:
        Available = 0
        Total = 0

error: structure has no member 'SystemMemory'
error: called from
    memory_copy at line 7 column 31
stopped in memory_copy at line 7 [current_dir/memory_copy.m]
7:   syst.SystemMemory.Available = 0



however running this in batch mode works fine


octave-7.0.0 memory_copy.m          
ver = 7.0.0                                                                   
                     
hg_id = 0089f0213384                                                          
                  
syst =   scalar structure containing the fields:
    PhysicalMemory =  scalar structure containing the fields:
        Available = 0

syst = scalar structure containing the fields:
    PhysicalMemory =  scalar structure containing the fields:
        Available = 0
        Total = 0    

syst =  scalar structure containing the fields:
    PhysicalMemory =   scalar structure containing the fields:
        Available = 0
        Total = 0
    SystemMemory =  scalar structure containing the fields:
        Available = 0


syst = scalar structure containing the fields:
    PhysicalMemory =  scalar structure containing the fields:
        Available = 0
        Total = 0

    SystemMemory =   scalar structure containing the fields:
        Available = 0
        Total = 0






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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