bugGNU Octave - Bugs: bug #40545, Opening preferences causes the GUI...

 
 

bug #40545: Opening preferences causes the GUI to hang forever on OSX 10.9

Submitted by:  Carlo de Falco <cdf>
Submitted on:  Mon 11 Nov 2013 10:39:39 AM UTC  
 
Category: GUISeverity: 5 - Blocker
Priority: 5 - NormalItem Group: Crash
Status: Need InfoAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Mac OS

Add a New Comment (Rich MarkupRich 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)

Tue 03 Dec 2013 12:58:41 PM UTC, comment #18:

I've migrated to Mac OS 10.9 and am also seeing the message below when I start the gui.

Ben Abbott <bpabbott>
Project Member
Tue 26 Nov 2013 02:19:14 PM UTC, comment #17:

Ben,

I just received feedback to my report about the prototype
portfile for Octave 3.8 in the Macports tracker, seems the
portfile maintainer is at work on these issues, let's see if he has better luck than me.

c.

Carlo de Falco <cdf>
Project Member
Tue 26 Nov 2013 01:28:28 PM UTC, comment #16:

Re: Should we really disable selecting new fonts?

Carlo's binaries won't be a problem, but I'm concerned about the Octave packages from Fink, Macports, & Homebrew. Would it be sufficient to bring the patch to the attention of the package maintainers?

Ben Abbott <bpabbott>
Project Member
Tue 26 Nov 2013 10:57:04 AM UTC, comment #15:
  • How to proceed now? Should we really disable selecting new fonts?

well, that's an ugly workaround I intend to use to build preview binaries that do not freeze, not a real fix so I think this shouldn't be applied in the repository, what do you think?

  • After changeset b001d9e9fd17 the font names used for terminal and editor are taken from the systems at runtime. Does this prevent the warning messages?

no, I still see the warning messages

  • Do you see the warning when clicking "Cancel", too?

Yes, I see the same warning if I click cancel

Carlo de Falco <cdf>
Project Member
Tue 26 Nov 2013 05:54:18 AM UTC, comment #14:

In reply to comment #12:
How to proceed now? Should we really disable selecting new fonts?
Building the gui with Qt 5 does not work at the moment.

After changeset b001d9e9fd17 the font names used for terminal and editor are taken from the systems at runtime. Does this prevent the warning messages?

In Reply to comment #13:
Do you see the warning when clicking "Cancel", too?

Torsten <ttl>
Project Member
Sun 24 Nov 2013 06:23:08 PM UTC, comment #13:

For the track record, when I exit the preferences dialog by pressing "esc" I see the following warning:

Carlo de Falco <cdf>
Project Member
Sun 24 Nov 2013 06:16:50 PM UTC, comment #12:

Thanks Torsten!

With this patch applied the preferences
dialog opens without causing the freeze.

I have to do more thorough testing but at
a first look it seems all other preferences
work.

I still see the annoying warning about using
postscript font names, but that is just a warning.

c.

Carlo de Falco <cdf>
Project Member
Sun 24 Nov 2013 11:32:16 AM UTC, comment #11:

This is not complicated. Attached the patch.

(file #29697)

Torsten <ttl>
Project Member
Sun 24 Nov 2013 06:13:03 AM UTC, comment #10:

Torsten,

Would it be very complicated to create
a patch to disable font selectors in the
preferences dialog?

Could you give me some hints about where to
look to do this?

Carlo de Falco <cdf>
Project Member
Sat 23 Nov 2013 06:13:52 PM UTC, comment #9:

Just an update, some ggolgling around [1,2] seems to show that at least the PostScript font part is due to a known QT bug.

[1] http://successfulsoftware.net/2013/10/23/fixing-qt-4-for-mac-os-x-10-9-mavericks/
[2] https://bugs.kde.org/show_bug.cgi?id=62054

Carlo de Falco <cdf>
Project Member
Tue 19 Nov 2013 06:31:32 AM UTC, comment #8:

Maybe this coud be related to this Qt bug?
https://bugreports.qt-project.org/browse/QTBUG-31803

The report is for Qt5 but someone in the discussion says it also affects Qt4. The fix seems to be for Qt5 only though ...

Does octave-gui build with QT5?

c.

Carlo de Falco <cdf>
Project Member
Mon 18 Nov 2013 10:17:35 PM UTC, comment #7:

Also,
with that line commented,
changing most settings in
the dialog works but if
I click on a font name selection
menu (in the editor or terminal tab)
I get a gui freeze again.

c.

Carlo de Falco <cdf>
Project Member
Mon 18 Nov 2013 10:00:36 PM UTC, comment #6:

Torsten,

Thanks for the useful directions.
Adding debug messages to the file you suggested I tracked down the problem to this line:

commenting out this line the preferences dialog opens without freezing.

I don't know if this is related, but I also noticed that
when running the gui I get lots of messages in the console log like this one:

c.

Carlo de Falco <cdf>
Project Member
Mon 18 Nov 2013 09:07:18 PM UTC, comment #5:

This is really strange, setupUI is a function that is automatically generated when compiling the ui-file (settings-dialog.ui) of the settings dialog. The ui-file is in turn generated by qt4-designer where the dialog box is graphically composed. All program code involved is generated by qt itself.

But you can put the fprintf-messages into the function setupUI in order to isolate the issue. The function can be found in ui-settings-dialog.h in build-dir/libgui/src. Be careful, the file is overwritten when the ui-file settings-dialog.ui in the source-dir is recompiled.

Torsten <ttl>
Project Member
Mon 18 Nov 2013 12:27:00 PM UTC, comment #4:

Hi,
Thanks for the new patch.

With your patch, I see no file "settings.log"
in the current directory but if I move the creation
of the file up one instruction, i.e.

The file is created. As it remains empty, can I conclude the freeze occurs in

?

Carlo de Falco <cdf>
Project Member
Mon 18 Nov 2013 12:02:49 PM UTC, comment #3:

As I found out, the debug output only appears when the dialog creation has finished (in your case never). The attached patch immediately writes the messages into the file "settings.log" in the current directory.

(file #29650)

Torsten <ttl>
Project Member
Sat 16 Nov 2013 06:31:40 PM UTC, comment #2:

with the patch applied
the gui freezes when I
select "preferences" from
the menu or press cmd-,
I see no messages during the
freeze neither in the command
prompt in the gui nor in the
terminal.

Carlo de Falco <cdf>
Project Member
Mon 11 Nov 2013 06:02:50 PM UTC, comment #1:

Maybe also a qsci-lexer problem?

Attached a patch that prints out messages during creation of the settings dialog. Could you please post a copy of the messages you are seeing before the freeze?

(file #29595)

Torsten <ttl>
Project Member
Mon 11 Nov 2013 10:39:39 AM UTC, original submission:

when running 3.7.7+ on OSX Mavericks, if I open the preferences dialog I see a spinning beach ball and Octave remains blocked,
I can only unblock it by killing both "octave" and "octave-gui".

I don't know what other info I could provide to help debug this as Octave does not really crash, just remains idle, so I don't get a crash report.

Carlo de Falco <cdf>
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 #29697:  font_settings.patch added by ttl (3kB - text/x-diff)
file #29595:  debug_settings_dialog.diff added by ttl (5kB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by ttl (Updated the item)
  • -unavailable- added by cdf (Submitted the item)
  • -unavailable- added by cdf
  • -unavailable- added by cdf
  •  

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 24 Nov 2013 11:32:16 AM UTCttlAttached File-=>Added font_settings.patch, #29697
    Mon 18 Nov 2013 12:02:49 PM UTCttlAttached File-=>Added debug_settings_dialog_02.diff, #29650
    Fri 15 Nov 2013 05:15:46 AM UTCttlStatusNone=>Need Info
    Mon 11 Nov 2013 06:02:50 PM UTCttlAttached File-=>Added debug_settings_dialog.diff, #29595
    Mon 11 Nov 2013 10:39:39 AM UTCcdfCarbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup