From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JIANG Shaojian Newsgroups: gmane.emacs.devel Subject: Interferences between xwidgets and async processes? Date: Wed, 28 Oct 2020 11:15:59 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000df9eeb05b2b29539" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17950"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 28 04:25:10 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXc5G-0004YZ-0b for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Oct 2020 04:25:10 +0100 Original-Received: from localhost ([::1]:51652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXc5F-000549-20 for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Oct 2020 23:25:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXbwd-0003SO-HG for emacs-devel@gnu.org; Tue, 27 Oct 2020 23:16:15 -0400 Original-Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]:43346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXbwb-0001Y0-Qg for emacs-devel@gnu.org; Tue, 27 Oct 2020 23:16:15 -0400 Original-Received: by mail-oi1-x234.google.com with SMTP id x203so3554762oia.10 for ; Tue, 27 Oct 2020 20:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=x2Kx14mx39xiK9UqUTz+QNfm8C9wheEo5Cxk64Zi7F4=; b=TLQDXqtRruHwk/Qp2N/cunWWd1dTy+zlvsHT8zIdWy2s9lL4NsmxNRlSUQNTbvh7mv b+MjbWVRt02dKomWAY+lQOsFhzPHhJX3zTuOJxraz6YH0ogBE29FfpGn3tTowYJ3gnvF ki2b2xeX1BoyhSfyCnl7UkQz87tJhPSnw5wdREQc5yaMVlyyWUgwS8i/YvJIpTF1QcB1 gk2aNQ/ni08ILshpw97+cTmEiCRZs8e1ObjNMSSoUN5n7w3pMQIiTTxWdtrQmSbk5xGy PH2iTJzX9/4/yl5SoO8BL80/ZacL9IkqaVkZrq6CfT6/P5hskhjF/Ub331s4HaRRE875 NejA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=x2Kx14mx39xiK9UqUTz+QNfm8C9wheEo5Cxk64Zi7F4=; b=UHfvxx9fD10vl5tFHrJPESP9PUoNfU72QTaCyItqFpqFkgKMzN6H9NT5xl9azvcunN p7JxACwZEEoR+TX1bW+PiUI5n7ZouNeUS/A3tEttHJzcOrP4EJDK0dMUMLs5uGWoqKYm kBETRhTjbtH5YNJca/vJHz6GE9QOIW4sH5KghM5Yt161v3RZorI9Kso6qGE2rbbmrinf vSl+muUx4tGLkXWZWAIbULQduRMcpAyYQ4cKw4FKXBB3LsA/t5emyzNsChYZVn+3w/Hr UBpwMWms8Z1ikIe8pf8L5ysQVLFZMVFMYfFL53nSY5ivzwyJpLP7SNpWh5bDNkHiVmGE U7qA== X-Gm-Message-State: AOAM5301+HMCwyYdEOOy+7GqXF85w5DoPNRjbhjFGcx89KGf639VFi6Y Bvp17m+SqL7OlyZtcBLx/ufv+r3BbZS/u8YdGVHHXYwHX0A= X-Google-Smtp-Source: ABdhPJxBHoP9ih0NOMIsHRNPltA2+rR2H/MZJB07eT6fHy8Z7f/AK8xXY4eyBrMB+cU8uZDsJpM0yKHKH+YNsXpNkbk= X-Received: by 2002:aca:fd8a:: with SMTP id b132mr3886555oii.4.1603854971935; Tue, 27 Oct 2020 20:16:11 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::234; envelope-from=sdycjsj@gmail.com; helo=mail-oi1-x234.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 27 Oct 2020 23:24:35 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258527 Archived-At: --000000000000df9eeb05b2b29539 Content-Type: text/plain; charset="UTF-8" Hi, I found a problem when using emacs 28 with xwidgets support. I am not sure whether it is a bug. Any hint is appreciated. Here is how to reproduce it: emacs -Q M-: (start-process "test1" "t1" "echo" "t1") This creates a buffer "t1" with content -------------------------------- t1 Process test1 finished --------------------------------- which is normal, and M-x list-processes shows nothing since process "test1" is already finished. Next, I start an xwidget M-x xwidget-webkit-browse-url with some url and then start async processes similarly M-: (start-process "test2" "t2" "echo" "t2") The buffer "t2" has content -------------------------------- t2 --------------------------------- M-x list-processes shows the running process "test2", so apparently the process "test2" is not finished as it should be. This behavior does not change whether you close the seemingly unrelated xwidget buffer or not. In fact, I do not find any way to cure this except restarting emacs. Below is the testing environment: emacs version: 28.0.50 (built on 2020-9-22) build option: --with-x --with-mailutils --with-modules --with-xwidgets --with-jansson OS: linux PS: emacs 28 under MacOS with patched xwidgets support does not have this problem. Thanks. Best, SJ --000000000000df9eeb05b2b29539 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I found a problem when u= sing emacs 28 with xwidgets support. I am not sure whether it is a bug. Any= hint is appreciated.

Here is how to reproduce it:=

emacs -Q

M-: (start-proc= ess "test1" "t1" "echo" "t1")
=
This creates a buffer "t1" with content
----------= ----------------------
t1

Process te= st1 finished
---------------------------------
whic= h is normal, and M-x list-processes shows nothing since process "test1= " is already finished.

Next, I start an xwidg= et
M-x xwidget-webkit-browse-url with some url
and then= start async processes similarly
M-: (start-process "test2" "t2" "echo" &= quot;t2")
The buffer "t2" has content
--= ------------------------------
t2

--= -------------------------------
M-x list-processes shows the running process "test2", so apparent= ly the process "test2" is not finished as it should be.

This behavior does not change whether you close the seeming= ly unrelated xwidget buffer or not.
In fact, I do not find any wa= y to cure this except restarting emacs.

Below is the testing environment:
emacs version: 28.0.50 (built on 2020-9-22)
build option= : --with-x --with-mailutils --with-modules --with-xwidgets --with-jansson
OS: linux

PS: emacs 28 under MacOS with p= atched xwidgets support does not have this problem.

Thanks.

Best,
SJ







--000000000000df9eeb05b2b29539--