-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pasting text from tilix hangs programs #1212
Comments
It looks like it is waiting for the clipboard to return text. I'm doing the easy thing of using the synchronous method gtk_clipboard_wait_for_text however it looks like it is blocking indefinitely for some reason. Can I ask how much text you are pasting and what the source of the text is? I wonder if it could be something like the browser trying to convert html to pure text taking too long. I will have a look and see if there is a way to add a timeout or make it asynchronous. |
I'm copying FROM tilix, and the content length can be whatever, paths, program outputs, numbers... |
After a while it seems it times out and i can again use the programs. |
Is there any pattern to what you are copying and pasting? Any chance you are running short on memory? Also, when it happens is the UI completely locked up? According to the docs it should still process events: "Requests the contents of the clipboard as text and converts the result to UTF-8 if necessary. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait." I don't get this issue myself, short of re-writing things to use the async version I'm not sure what can be done from a debugging point of view. |
@gnunn1 nope like i said above, anything. |
I think I mis-understood, was it Sublime that you attached the gdb process to or tilix? If you are pasting into sublime it is the VTE's responsibility to provide the text and not tilix. So my changing things to use the async version of receiving text from the clipboard wouldn't make any difference. I'll check if there are any outstanding issues in VTE with this. |
Both, as I wrote, but i'll send a new one below. sublime text:
tilix:
|
After switching to a new computer, it now seems to work. Will reopen if it appears again |
When tilix been running a long time it can start to hang programs that you try to paste text in.
For example, I copied a text from a tilix window, pasted it in Sublime text (Same happens with Chromium etc.) it hangs.
I closed sublime but the process is still hanging around, so I attached gdb to it;
When I close tilix, the programs start to function normally again.
This is gdb for the tilix process if that helps;
Tilix @ f678d3c
GtkD @ 8fc625d6306beda7b04c2ea6794a9221b0abc3c2
The text was updated successfully, but these errors were encountered: