bugGNU Octave - Bugs: bug #53898, [octave forge] (mapping) Out of...

 
 

bug #53898: [octave forge] (mapping) Out of memory error in shapewrite

Submitter:  None
Submitted:  Mon 14 May 2018 10:11:45 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Matthew Parkan Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * other
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 17 May 2018 09:04:31 PM UTC, comment #3: 

Thanks, I've pushed it with a few mods (removed empty lines).
Along the way I've fixed a few more thingies (mainly typos) elsewhere in the code.

Closing report.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 17 May 2018 08:27:12 AM UTC, comment #2: 

Hi Philip,

here is the patch for shapewrite.

This is a very minor contribution, so no need for credit.

(file #44168)

Anonymous
Tue 15 May 2018 06:57:36 PM UTC, comment #1: 

Thanks.
Would you be able to supply a patch or maybe even a cset?
And would you like to be credited?

Philip Nienhuis <philipnienhuis>
Group Member
Mon 14 May 2018 10:11:45 AM UTC, original submission:  

Hi all,

Using the latest snapshot version of the Mapping package, I get an out of memory error with shapewrite, when trying to write a large file.

The out of memory error comes from line 158:


    ## "Point" need not have a BoundingBox field => add a dummy if not found
    if (stype == 1 && ! ismember ("BoundingBox", fldn))

      [shp.BoundingBox] = deal (repmat (zeros (2, 2), numel (shp)));

    endif


The error can be avoided by changing the line to:


[shp.BoundingBox] = deal([0,0;0,0]);


Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #44168:  shapewrite.patch added by None (808B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (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
    2018-05-17 philipnienhuis StatusNone Fixed
        Open/ClosedOpen Closed
        Release4.4.0 other
        Operating SystemMicrosoft Windows Any
    2018-05-17 None Attached File- Added shapewrite.patch, #44168

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code