bugGNU Octave - Bugs: bug #47445, Setting colors for too many plots...

 
 

bug #47445: Setting colors for too many plots causes Segmentation violation

Submitted by:  DanielStephens <unknownscribe>
Submitted on:  Thu 17 Mar 2016 06:53:10 PM UTC  
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  4.0.0 Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 11 Jul 2016 03:10:56 PM UTC, comment #5:

This seems likely to have been addressed in the development version of Octave scheduled for release as 4.2.0 in September.

Can anyone verify this is the case with a dev version of MXE-Octave and the Convergentfield.m script?

In any case, I am lowering the severity to 3 as this bug shouldn't stop the 4.2 release.

Rik <rik5>
Project Administrator
Mon 28 Mar 2016 06:24:24 PM UTC, comment #4:

Daniel, can you try the 64-bit build of Octave for Windows available here: http://www.tatsuromatsuoka.com/octave/Eng/Win/

Does this build resolve this crash for you?

Mike Miller <mtmiller>
Project Administrator
Thu 17 Mar 2016 09:36:55 PM UTC, comment #3:

Could also be due to the fact that the OP's Octave (on Windows) is 32-bit; Windows' 32-bit system usually suffers from memory fragmentation.
That could also explain that I get no problems with bug #45297, as I'm using Octave built for 64-bit (note: NOT 64-bit indexing).

"No symbols" - yes the exes and libs for the Windows-4.0.0 installer are stripped, with good reason: I have an unstripped binary (zipdist) from 3 months ago lying around that is ~800 MB versus 200 MB for the "regular" installer.

Philip Nienhuis <philipnienhuis>
Project Member
Thu 17 Mar 2016 08:22:48 PM UTC, comment #2:

Hi, thanks for the link to the other bug, I believe you are correct in that they are the same issue. I also tried swapping to graphics_toolkit gnuplot which actually allowed me to increase the number of points I was able to plot to 700 (up from 500) however at 800 plots I got the same crash.

I got the same error as the other bug ticket:
Unhandled exception at 0x6B3F5A5E (liboctinterp-3.dll) in octave-gui.exe: 0xC0000005: Access violation reading location 0x8DC01994.
If there is a handler for this exception, the program may be safely continued.

And when I told the debugger to break here, it said "Symbol file not loaded, no symbol file loaded for liboctinterp-3.dll" screenshot attached.

(file #36678)

DanielStephens <unknownscribe>
Thu 17 Mar 2016 07:57:51 PM UTC, comment #1:

Thanks for the bug report. I get no error on Debian with n = 1000.

This sounds very similar to bug #45297 (scatter() with colors on Windows). Maybe the same underlying error.

Mike Miller <mtmiller>
Project Administrator
Thu 17 Mar 2016 06:53:10 PM UTC, original submission:

I have a file called Convergentfield which I have attached. In it I use scatter3 to plot points. Without setting plot point colours, I am able to plot thousands of points without issue, however using a colour map crashes the program with 'panic: Segmentation violation' when the number of points increases beyond some cutoff, for myself I have narrowed this cutoff to lie somewhere between 500 and 600 points (saved in the variable 'n' in the script).

I experienced the crash first via command line, however I also get a crash when running the script through the GUI (though without an error message). Interestingly, when I had a large number of points, and ran from the GUI, the plot window opens, and occasionally updates the plots in the frame, seemingly correctly, and then after finishing the process, closes the plot window and the GUI completely.

I am on Winodws 8 which apparently can have some problems with the GUI, hence why I was working from command line to start with. Perhaps that is part of the problem. I would be interested to know the results others have with the script.

DanielStephens <unknownscribe>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36675:  Convergentfield.m added by unknownscribe (485B - 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 rik5 (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by unknownscribe (Submitted the item)
  • -email is unavailable- added by unknownscribe
  •  

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

    Only project members can vote.

     

     

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-12 rik5 StatusNeed Info => Fixed
        Open/ClosedOpen => Closed
    2016-07-11 rik5 Severity4 - Important => 3 - Normal
        SummarySettng colours for too many plots causes Segmentation violation => Setting colors for too many plots causes Segmentation violation
    2016-07-01 rik5 Severity3 - Normal => 4 - Important
    2016-03-17 unknownscribe Attached File- => Added Screenshot 2016-03-17 20.16.52.png, #36678
    2016-03-17 mtmiller CategoryPlotting => Plotting with OpenGL
        StatusWorks For Me => Need Info
    2016-03-17 mtmiller StatusNone => Works For Me
    2016-03-17 unknownscribe Attached File- => Added Convergentfield.m, #36675
        Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.4