bugGNU Octave - Bugs: bug #43650, reshape says "internal error:...

 
 

bug #43650: reshape says "internal error: dimension mismatch across fields in struct"

Submitted by:  None
Submitted on:  Thu 20 Nov 2014 05:54:01 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: ziserOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.1
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 05 Aug 2017 04:20:06 AM UTC, comment #3:

This issue has been fixed in this cset http://hg.savannah.gnu.org/hgweb/octave/rev/3544f88a2bb5. The example in this report now pass so I'm closing the report.

Rik <rik5>
Project Administrator
Sat 10 Sep 2016 04:00:28 PM UTC, comment #2:

thought it might be worth adding that this bug appears to be related to a recent bug ( bug #46385) found in doing repmat on structs. in certain cases repmat calls reshape in a way that produces the same error message.

http://savannah.gnu.org/bugs/?46385

Nicholas Jankowski <nrjank>
Thu 20 Nov 2014 11:11:49 PM UTC, comment #1:

This is an odd, odd thing. The incorrect behavior is apparently confined to instances where the reshape dimensions are the same as the original, except for additional trailing singleton dimensions.

Examples:

The same thing is seen for an array of structs.

Rik <rik5>
Project Administrator
Thu 20 Nov 2014 05:54:01 PM UTC, original submission:

When I call reshape() on a struct with a size vector of three elements, I get this cryptic error message. This does not happen with a size vector of two elements. Here is an example:

This also happens in Octave 3.6.1, so I guess it's been there a while.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by nrjank (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 05 Aug 2017 04:20:06 AM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sat 05 Aug 2017 04:06:04 AM UTCrik5Dependencies-=>bugs #51634 is dependent
    Thu 20 Nov 2014 11:11:49 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1