bugGNU Octave - Bugs: bug #62445, msgbox() throws error when using...

 
 

bug #62445: msgbox() throws error when using custom cdata

Submitter:  Glite <linuxbckp>
Submitted:  Thu 12 May 2022 01:55:55 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.1.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 May 2022 04:04:09 AM UTC, comment #4: 

This was a trivial change so I checked it in under jwe's name on the stable branch (http://hg.savannah.gnu.org/hgweb/octave/rev/a1476e3ea73d).  This will be a part of the 7.2 bug fix release.

Rik <rik5>
Group administrator
Fri 13 May 2022 01:58:43 AM UTC, comment #3: 

Use:

>> load imgsc
>> msgbox('123','MSGBOX Title', 'custom', imgsc)

ans = -1.5636

>> msgbox('123','MSGBOX Title', 'custom', img)

ans = -43.051

for real image test, it works fine.

(file #53193)

Glite <linuxbckp>
Fri 13 May 2022 01:53:46 AM UTC, comment #2: 

I tested on Windows and Linux, it works fine.

comment #1:

> The attached change allows
>


> msgbox ("message", "title", "custom", rand (32, 32, 3))


>
> to work for me, but the whole block of code that attempts to decode the "custom" cdata and colormap arguments could use some work to perform more complete validation.
>
> (file #53191)

Glite <linuxbckp>
Thu 12 May 2022 01:19:59 PM UTC, comment #1: 

The attached change allows


msgbox ("message", "title", "custom", rand (32, 32, 3))


to work for me, but the whole block of code that attempts to decode the "custom" cdata and colormap arguments could use some work to perform more complete validation.

(file #53191)

John W. Eaton <jwe>
Group administrator
Thu 12 May 2022 01:55:55 AM UTC, original submission:  

msgbox() throws error when using custom cdata. Here is my code:

>> img=imread('msgbox.png');
>> imgsc=imagesc(img);
>> msgbox('123','MSGBOX Title', 'custom', imgsc)

Glite <linuxbckp>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #53193:  imgsc.mat added by linuxbckp (11KiB - application/octet-stream - imgsc.mat for real image test)
file #53191:  msgbox-diffs.txt added by jwe (437B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by linuxbckp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-24 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
        Release6.4.0 7.1.0
    2022-05-13 linuxbckp Attached File- Added imgsc.mat, #53193
    2022-05-12 jwe Attached File- Added msgbox-diffs.txt, #53191

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code