From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jarek Czekalski Newsgroups: gmane.emacs.devel Subject: Re: cosmic timeout Date: Sun, 03 Nov 2013 08:42:14 +0100 Message-ID: <5275FE56.7010302@poczta.onet.pl> References: <527588AF.2070206@poczta.onet.pl> <83ob629mkb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383464490 23002 80.91.229.3 (3 Nov 2013 07:41:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Nov 2013 07:41:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 03 08:41:36 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VcsJT-0008RW-HW for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2013 08:41:35 +0100 Original-Received: from localhost ([::1]:44334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcsJT-0006Rt-3A for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2013 02:41:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcsJK-0006Qk-Km for emacs-devel@gnu.org; Sun, 03 Nov 2013 02:41:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcsJF-0002re-3H for emacs-devel@gnu.org; Sun, 03 Nov 2013 02:41:26 -0500 Original-Received: from smtpo15.poczta.onet.pl ([213.180.142.146]:47802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcsJE-0002rU-OJ for emacs-devel@gnu.org; Sun, 03 Nov 2013 02:41:21 -0500 Original-Received: from [192.168.17.5] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3dC8G63F5FzYydKy for ; Sun, 3 Nov 2013 08:41:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1383464478; bh=VDBHqOAfhXjlqxtWDQ81zI7v/K2HIftZFd+vmWVHhLA=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=nXwIuDhvyui2yZy1oYnAu7sd6laP7VGNgOBIUxAVH5tV0OlEoKqcarfTct7T9yuJS AGx9l9goRCPtDuNo3iLf+dJQWOiYm+2gcI6L97y7N32VjRIexPbPfl9VnwuipKkn/u 1W+QMhsiB3Ty+i1S2PspvJBBuHG4FysOUummWbuQ= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: <83ob629mkb.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.180.142.146 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164889 Archived-At: W dniu 11/03/2013 04:44 AM, Eli Zaretskii pisze: > This is "infinite wait", yes. See the commentary to that function: My bad. Indeed it works according to the docs. >> I guess that freezes my Emacs when I play with a vertical scroll >> bar. > It shouldn't: scroll-bar input counts as input, and should stop the > wait. Some other factor is at work here. > > Perhaps you could post your findings, and let others suggest ideas > for further debugging. Findings are that gtk gets stuck in all threads waiting on poll-like functions. I wonder why do *we* want to wait infinitely. Or the other way: if there is a bug in glib, do we want to fix it or workaround it. I will investigate, why the infinite wait is demanded by Emacs, but if you like to answer the above question in advance, that helps. I use unstable Debian. When I change the infinite wait to something like 0.1 sec, it seems to stop freezing. And undocumented function g_main_query_context returns sometimes 0 and -1. Maybe in this case our xgselect should not pass the infinite timeout to its further gnome calls. Thanks, Jarek