Re: regression in copyobj

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: regression in copyobj

Rik-4
On 01/29/2019 07:16 AM, [hidden email] wrote:
Subject:
Re: RC1 Candidate
From:
"Ardid, Salva" [hidden email]
Date:
01/29/2019 06:50 AM
To:
[hidden email] [hidden email]
List-Post:
[hidden email]
Content-Transfer-Encoding:
base64
Precedence:
list
MIME-Version:
1.0
References:
<MTAwMDA0My5ub21hZA.1548516351@quikprotect>
In-Reply-To:
<MTAwMDA0My5ub21hZA.1548516351@quikprotect>
Message-ID:
<1551966.5R5vzfrrau@kerna>
Content-Type:
text/plain; charset="utf-8"
Message:
2

El dissabte, 26 de gener de 2019, a les 10:25:45 EST, Rik va escriure:

  The first release candidate for Octave version 5.1 is available at
  ftp://alpha.gnu.org/gnu/octave/.
  
  I've tried it on my vanilla Linux system (./configure, make) and building
  is just fine.  Running 'make check' passes with no failed tests.
  
  Please download and experiment on other systems.
  
  --Rik
  
  
Hi,

I tested Octave 5.0.90 and identified a regression in the copyobj function:

f1 = figure;
plot(0:10)
f2 = figure;
Copyobj(get(f1,'children'),f2);

error: copyobj: =: nonconformant arguments (op1 is 1x1, op2 is 1x0)
error: called from
    copyobj at line 70 column 15

This works fine in Octave 4.x versions and Matlab

Just to be sure, I get an error when using 'Copyobj' as that function name is not defined.  If I change it to lowercase "copyobj" then the command works just fine.

Could you try starting Octave with '-f' so that you are not reading any personal initialization files, and then retry the sample code

f1 = figure;
plot(0:10)
f2 = figure;
copyobj(get(f1,'children'),f2);

--Rik



Reply | Threaded
Open this post in threaded view
|

Re: regression in copyobj

Ardid, Salva
El dimarts, 29 de gener de 2019, a les 11:37:40 EST, Rik va escriure:

  On 01/29/2019 07:16 AM, [hidden email] wrote:
  > Subject:
  > Re: RC1 Candidate
  > From:
  > "Ardid, Salva" <[hidden email]>
  > Date:
  > 01/29/2019 06:50 AM
  >
  > To:
  > "[hidden email]" <[hidden email]>
  >
  > List-Post:
  > <mailto:[hidden email]>
  > Content-Transfer-Encoding:
  > base64
  > Precedence:
  > list
  > MIME-Version:
  > 1.0
  > References:
  > <MTAwMDA0My5ub21hZA.1548516351@quikprotect>
  > In-Reply-To:
  > <MTAwMDA0My5ub21hZA.1548516351@quikprotect>
  > Message-ID:
  > <1551966.5R5vzfrrau@kerna>
  > Content-Type:
  > text/plain; charset="utf-8"
  > Message:
  > 2
  >
  >
  > El dissabte, 26 de gener de 2019, a les 10:25:45 EST, Rik va escriure:
  >
  >   The first release candidate for Octave version 5.1 is available at
  >   ftp://alpha.gnu.org/gnu/octave/.
  >  
  >   I've tried it on my vanilla Linux system (./configure, make) and building
  >   is just fine.  Running 'make check' passes with no failed tests.
  >  
  >   Please download and experiment on other systems.
  >  
  >   --Rik
  >  
  >  
  > Hi,
  >
  > I tested Octave 5.0.90 and identified a regression in the copyobj function:
  >
  > f1 = figure;
  > plot(0:10)
  > f2 = figure;
  > Copyobj(get(f1,'children'),f2);
  >
  > error: copyobj: =: nonconformant arguments (op1 is 1x1, op2 is 1x0)
  > error: called from
  >     copyobj at line 70 column 15
  >
  > This works fine in Octave 4.x versions and Matlab
 
  Just to be sure, I get an error when using 'Copyobj' as that function name
  is not defined.  If I change it to lowercase "copyobj" then the command
  works just fine.
 
  Could you try starting Octave with '-f' so that you are not reading any
  personal initialization files, and then retry the sample code
 
  f1 = figure;
  plot(0:10)
  f2 = figure;
  copyobj(get(f1,'children'),f2);
 
  --Rik
 
  >
  >
 
Sorry about the capital letter, that was introduced automatically by my email application.

I tested again and it also works for me, however if I run the same code after another the error appears, weird. I need to investigate it further... Will try to find a short piece of code that reproduces the issue to share.