bugGNU Octave - Bugs: bug #40609, "octave --no-gui" can't...

 
 

bug #40609: "octave --no-gui" can't run QtHandles

Submitted by:  Pantxo Diribarne <pantxo>
Submitted on:  Sun 17 Nov 2013 04:55:47 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: NoneAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 17 Nov 2013 08:53:53 PM UTC, comment #4:

Applied, thanks.

http://hg.savannah.gnu.org/hgweb/octave/rev/1ed269bdea58

Michael Goffioul <goffioul>
Project Member
Sun 17 Nov 2013 08:26:25 PM UTC, comment #3:

Yes you are right. Adding this switch and replacing QCoreApplication by QApplication fixes the issue. I attached a patch.

(file #29643)

Pantxo Diribarne <pantxo>
Project Member
Sun 17 Nov 2013 06:56:31 PM UTC, comment #2:

It's possible that the second problem is simply due to the QApplication exiting because it detects that the last window is being closed.

Try to add the following to the created QApplication object (assuming "app" is the application object):

Michael Goffioul <goffioul>
Project Member
Sun 17 Nov 2013 05:33:24 PM UTC, comment #1:

Using QCoreApplication instead of QApplication was a misunderstanding on my part. It should be changed.

I'm not sure what the fix is for the other problem. What is the difference between what we are doing now and what the QtHandles wrapper program did with older versions of Octave?

John W. Eaton <jwe>
Project Administrator
Sun 17 Nov 2013 04:55:47 PM UTC, original submission:

AFAIU, the "--no-gui" option of octave is aimed at running Qt based graphics_toolkits without the needing the complete GUI.

Currently the use of QCoreApplication in no-gui mode, prevents QtHandles from working. The following error is returned before crash:

This is consistent on mac os x 10.7 and linux mint 14.

Simply replacing QCoreApplication by QApplication is not a solution. It lets figures be created and work properly ... until you want to close theim :

After that octave silently crashes.

Pantxo Diribarne <pantxo>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #29643:  fix_bug40609.diff added by pantxo (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goffioul (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by pantxo (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 17 Nov 2013 08:53:53 PM UTCgoffioulOpen/ClosedOpen=>Closed
    Sun 17 Nov 2013 08:26:25 PM UTCpantxoAttached File-=>Added fix_bug40609.diff, #29643

    Back to the top


    Powered by Savane 3.1-cleanup1