bugGNU Octave - Bugs: bug #45548, plotting with default fltk causes...

 
 

bug #45548: plotting with default fltk causes 100% CPU usage

Submitted by:  None
Submitted on:  Tue 14 Jul 2015 01:31:15 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Performance
Status: InvalidAssigned to: None
Originator Name: ImageGfieldOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.1
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Sat 12 Sep 2015 07:00:02 PM UTC, comment #6:

Yes, I think the problem lies with the video drivers, and may change from version to version. We are also seeing different issues with Intel and Nvidia video drivers.

If you are comfortable installing from a PPA, you can get Octave 4.0 from https://launchpad.net/~octave/+archive/ubuntu/stable (should work for Mint).

I'm closing this as invalid unless someone can prove that Octave's doing something wrong (with a gdb or perf tool).

Mike Miller <mtmiller>
Project Administrator
Fri 17 Jul 2015 05:16:38 PM UTC, comment #5:

Thanks a lot for your time guys. The configuration

LIBGL_ALWAYS_SOFTWARE=0
LIBGL_ALWAYS_INDIRECT=1

works. But no other seems to work. I am using ATI cards (2) and hope i have the latest drivers. So I suppose it is the interaction between the fltk and graphics drivers and not an octave issue (?)

ImageGfield <imagegfield>
Fri 17 Jul 2015 03:06:48 AM UTC, comment #4:

Yes this could definitely be a video driver issue with your particular hardware and your version of Linux Mint.

Do setting the environment variables LIBGL_ALWAYS_INDIRECT=1 or LIBGL_ALWAYS_SOFTWARE=1 have any effect for you?

Are you able to test on a different system?

Are you able to profile Octave with perf or other tool to see what is running up your CPU?

Mike Miller <mtmiller>
Project Administrator
Thu 16 Jul 2015 07:28:53 AM UTC, comment #3:

If you speak about persistent CPU usage, I have no problem on octave 3.81. Perhaps your issue is in another library

Distro:
Ubuntu 14.04.2 LTS

Kernel:
Linux 3.13.0-57-lowlatency #95-Ubuntu SMP PREEMPT Fri Jun 19 09:45:24 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

OpenGL Information:
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce GT 630/PCIe/SSE2
GL_VERSION: 4.5.0 NVIDIA 346.46

Anonymous
Wed 15 Jul 2015 09:27:11 AM UTC, comment #2:

Yes even a simple "plot(1:10)" or "figure; plot(1:10);" right after starting Octave gives the same problem. The reason I switched to using gnuplot was that when using "print" to create files from my plots I was getting bugs like data points and text in legends disappearing. Sorry I am not able to try octave4.0 yet as it is not available through my package handling system. However

I am using 64 bit Linux Mint running this cinnamon thing.

ImageGfield <imagegfield>
Tue 14 Jul 2015 05:06:43 PM UTC, comment #1:

Thanks for your bug report, although I'm unable to reproduce here. You'll have to provide some more information for someone to be able to reproduce this, or debug what's different about your system that causes this.

Can you try this in Octave 4.0.0 on your system to see if the problem still occurs? It may have already been fixed.

What specific plots are you executing that causes the 100% usage? Does something as simple as "plot(1:10)" show this immediately? Are you using a GNU/Linux desktop environment, which one? Or are you remoted over SSH or VNC?

Btw, "octave-cli" stands for command-line interface, not client.

What are the "other issues" you solved by switching to gnuplot?

Mike Miller <mtmiller>
Project Administrator
Tue 14 Jul 2015 01:31:15 PM UTC, original submission:

Hello, I'm new to this bug report process, so please bear with me if I'm doing something wrong.

I have noticed then when trying to plot using the default plot-lib in Octave 3.81 : fltk, my CPU usage for "octave-cli..." goes up to 100%. To solve other issues I then changed to using gnuplot as plot lib, which seems to solve the issue. For me it is difficult to know if the bug is in the fltk plot-lib itself or in Octave.

Anonymous

 

(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 imagegfield (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (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):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Sep 2015 07:00:02 PM UTCmtmillerStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Tue 14 Jul 2015 05:06:43 PM UTCmtmillerCategoryPlotting=>Plotting with OpenGL
      StatusNone=>Need Info
      Summaryplotting with default fltk causes 100% CPU usage from "octave-client"=>plotting with default fltk causes 100% CPU usage

    Back to the top


    Powered by Savane 3.1-cleanup1