bugGNU Octave - Bugs: bug #40693, GUI occasionally blocks on...

 
 

bug #40693: GUI occasionally blocks on QClipboard when exiting

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Sun 24 Nov 2013 08:40:13 PM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

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)

Sun 26 Jan 2014 05:52:22 PM UTC, comment #8:

Yes, thank you. I get the exact same behavior from qtcreator in gnome-shell with some largish text copied to the clipboard.

Sorry for the noise, this is clearly not an Octave GUI bug.

Mike Miller <mtmiller>
Project Member
Sun 26 Jan 2014 08:55:45 AM UTC, comment #7:

Things seem to be different in Unity:

and octave exists without warning message.

When I copy a little bit more (500 KB?) I can paste this without problem but executing xsel leads to

The clipboard is cleared by xsel and occasionally, the editor geany from which I copied the data shuts down when xsel is executed.
I can run and exit octave with a clipboard of this size (without executing xsel) without problems and the clipboard still contains the data afterwards. Obviously, there is a problem with the clipboard, too, but it does not interfere with octave.

Does the effect show up on your system with other qt-applications (qt-creator or so)?

Torsten <ttl>
Project Member
Sat 25 Jan 2014 10:20:50 PM UTC, comment #6:

Note that all I am doing in the GUI is to hit Ctrl-D to exit immediately when the GUI comes up.

Mike Miller <mtmiller>
Project Member
Sat 25 Jan 2014 10:19:17 PM UTC, comment #5:

Ok, good digging. I can make it happen reliably by copying a large quantity of text to the X clipboard buffer before starting the GUI.

So there's something odd going on here between Octave's GUI and the GNOME desktop environment that I work with. The gnome-settings-daemon process is the clipboard manager for the session. I also use the xsel command-line tool to interact with the X selection and clipboard buffers.

Based on your suggestion, here's what I see happening between Octave and GNOME:

So not only do I see this delay when the Octave GUI exits and the Qt error message about timing out on the clipboard, but the clipboard buffer has also been cleared, either by Octave or by GNOME in response to Octave running. If I run other applications, the clipboard keeps its contents as it should.

If I do the same thing under a different window manager with a different clipboard manager, I don't see this message and the clipboard does not get cleared.

For all I know this might be a GNOME bug, until we can get confirmation under KDE or Unity or another desktop environment.

Mike Miller <mtmiller>
Project Member
Sat 25 Jan 2014 02:17:17 PM UTC, comment #4:

Does this bug report
https://bugreports.qt-project.org/browse/QTBUG-32853
describes your issue, i.e. does the warning appear when you have copied a large amount of data to the clipboard?

Torsten <ttl>
Project Member
Sun 24 Nov 2013 09:47:06 PM UTC, comment #3:

I managed to catch this in gdb. For what it's worth, here is what the stack looks like while it is stuck in this waiting to exit state:

Of course none of this looks like any of our code is responsible for this problem, but I never saw this behavior until yesterday I think.

Mike Miller <mtmiller>
Project Member
Sun 24 Nov 2013 08:52:57 PM UTC, comment #2:

It happens both with ./run-octave and with octave or octave-gui after running make install.

Mike Miller <mtmiller>
Project Member
Sun 24 Nov 2013 08:43:13 PM UTC, comment #1:

Do you start octave by run-octave or by installed binaries?

Torsten <ttl>
Project Member
Sun 24 Nov 2013 08:40:13 PM UTC, original submission:

I can't figure out how to reproduce this reliably, but occasionally I get a condition where the GUI takes several seconds to exit and return control to my shell. It doesn't matter whether I run octave or octave-gui. After about 10 seconds I get the following message

and the process then exits and returns to the shell.

When this happens, I can restart the GUI several times and I get the same message and the same wait time on every time I exit. Since it says something about the clipboard, I tried selecting text with my mouse and that seems to return it to a normal state of returning immediately on exit.

Mike Miller <mtmiller>
Project Member

 

(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 ttl (Posted a comment)
  • -unavailable- added by mtmiller (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 26 Jan 2014 05:52:22 PM UTCmtmillerStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup