bugGNU Octave - Bugs: bug #51845, Variable editor: trying to open...

 
 

bug #51845: Variable editor: trying to open Java or COM objects leads to infinite loop & crash

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Fri 25 Aug 2017 01:36:53 PM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: NoneAssigned to: None
Originator Name: Philip NienhuisOpen/Closed: Open
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 25 Aug 2017 01:48:33 PM UTC, comment #1:

Turns out I investigated classdef objects display in the variable Editor before and they behave more or less like structs there.

So this bug is rather about Java (and COM) objects.

Philip Nienhuis <philipnienhuis>
Project Member
Fri 25 Aug 2017 01:36:53 PM UTC, original submission:

Provisionally only Windows but I think this also happens on Linux.

Steps to reproduce:

a = javaObject ("java.lang.Double", 1.5);

##right-click a in workspace, or do
openvar (a)

and in the command window we get an endless loop of

Ctrl-C doesn't help (reliably). Closing Octave's GUI using the close button does, but then Octave crashes upon exit.

Similar behavior goes to COM objects (in Windows).

I haven't tried this with other objects (classdef etc.) but I suspect there it will also go wrong.

When the variable Editor was still just a patch I thought that limiting the function openvar (that is called when right-clicking & selecting "Open in Variable Editor" in the workspace) to only accept some types of variables (prvisionally just numeric, cell, text and struct) would be the best option to avoid this bug. Later on when the variable Editor could handle more types openvar could be adapted accordingly.
But I couldn't find out how to get this together (due to lacking C++/Qt skills).

Philip Nienhuis <philipnienhuis>
Project Member

 

(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

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by philipnienhuis (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1