[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53858] Octave crashes when expanding an array
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #53858] Octave crashes when expanding an array of a sub-structure viewed by Variable Editor |
Date: |
Mon, 28 Sep 2020 18:55:39 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Update of bug #53858 (project octave):
Status: Confirmed => Ready For Test
_______________________________________________________
Follow-up Comment #10:
I pushed the following changeset on stable and merged with default:
http://hg.savannah.gnu.org/hgweb/octave/rev/90f7c563e706
I'm not sure whether this is the best fix, but it avoids the infinite error
loop. Maybe the evaluator should not be able to return c-s lists packaged
inside octave_value objects. But I think that's a much bigger project for
another day.
Another option, inside the variable editor itself, would be to notice that the
expression evaluates to a c-s list and try to modify the original display of
a.b.e to be a.b.e(1) instead. But I'm not sure how to do that. It might also
require knowing that we are transitioning from a scalar struct to a struct
array and I'm not sure how to determine that at the point the failure is
detected.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?53858>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/