From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christian Johansson Newsgroups: gmane.emacs.bugs Subject: bug#33135: 27.0.50; (make-thread) TRAMP interactive freeze macOS 10.14 Date: Thu, 25 Oct 2018 07:03:02 +0200 Message-ID: References: <20181024105344.GB40431@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1540443730 3175 195.159.176.226 (25 Oct 2018 05:02:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2018 05:02:10 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cc: 33135@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 07:02:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFXmX-0000j1-8h for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 07:02:05 +0200 Original-Received: from localhost ([::1]:52561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFXod-00073n-Ml for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2018 01:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFXoT-00073W-L3 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 01:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFXoQ-0001Rf-A5 for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 01:04:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36870) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFXoQ-0001RR-0f for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 01:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFXoP-0005Jn-LJ for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2018 01:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christian Johansson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2018 05:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33135 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33135-submit@debbugs.gnu.org id=B33135.154044379520378 (code B ref 33135); Thu, 25 Oct 2018 05:04:01 +0000 Original-Received: (at 33135) by debbugs.gnu.org; 25 Oct 2018 05:03:15 +0000 Original-Received: from localhost ([127.0.0.1]:41128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFXnf-0005Ic-5N for submit@debbugs.gnu.org; Thu, 25 Oct 2018 01:03:15 -0400 Original-Received: from cvj.se ([31.192.230.63]:46113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFXnc-0005IT-Ox for 33135@debbugs.gnu.org; Thu, 25 Oct 2018 01:03:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cvj.se; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=SIt4te1cm25fFfLNmecblJZn48SyS8Z3cmnrwJP0pqc=; b=AfAWi2EHzqI1c4R3fYd+6jK/TrWMBJ1tUNVsRMUOJ2ncCkU4sGE3dsh1JB5GKF8ZvAnFziZW/on4xkEOFKjRxV7yCFfKOho9j638I02merSjwQkJxGXIYJFEoiLWMkVq1Wl8g9SD3IHHjUKFWzHZUG6MMG9NJ0kkxMww6MGTOYs=; Original-Received: from m77-218-242-231.cust.tele2.se ([77.218.242.231] helo=Christians-MacBook-Air.local) by cvj.se with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1gFXna-0000BN-Re; Thu, 25 Oct 2018 07:03:11 +0200 In-Reply-To: <20181024105344.GB40431@breton.holly.idiocy.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151585 Archived-At: Alright, I guessed that the threaded user-interaction wasn't completed yet, TRAMP without user-interaction seems to work however. Keep up the good work. At least it should be easy to test it once it's finished with my test. If you access my example without the treading and Emacs saves the password it will work inside the thread too I think because there will be no need for user-interaction Regards Christian On 2018-10-24 12:53, Alan Third wrote: > On Wed, Oct 24, 2018 at 12:15:22PM +0200, Christian Johansson wrote: >> Hi! >> >> I am able to reproduce this on two different computers using macOS 10.14 but >> I haven't tested this on any other system. >> >> Steps to reproduce: >> 1. Open Emacs without any configuration: src/emacs -Q >> 2. Make sure you are in *scratch* buffer >> 3. Paste following Emacs Lisp code: >> >> ;; FTP URL: ftp.dlptest.com or ftp://ftp.dlptest.com/ >> ;; FTP User: dlpuser@dlptest.com >> ;; Password: e73jzTRTNqCN9PYAAjjn >> (make-thread (lambda() >>                (message "Listing directory files..") >>                (let ((files (directory-files >> "/ftp:dlpuser@dlptest.com@ftp.dlptest.com:/"))) >>                  (message "Opened directory") >>                  (message "Directory files: %s" files)))) >> >> 4. Run M-x eval-buffer >> 5. Emacs asks for FTP password, paste in mini-buffer: e73jzTRTNqCN9PYAAjjn >> 6. Emacs now hangs, asks for password again and you can't stop it using C-g. >> You get error in terminal: > The NS port currently doesn’t handle interactive functions from > threads very well. I suspect the problem is being caused by displaying > a message from the background thread. > >> Christians-Air:emacs christianjohansson$ src/emacs -Q >> 2018-10-24 12:07:58.383 emacs[627:14815] Failed to initialize color list >> unarchiver: Error Domain=NSCocoaErrorDomain Code=4864 "*** >> -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: >> non-keyed archive cannot be decoded by NSKeyedUnarchiver" >> UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver >> _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive >> cannot be decoded by NSKeyedUnarchiver} > This error will be fixed in Emacs 26.2. > >> 2018-10-24 12:08:28.515 emacs[627:15311] WARNING: NSWindow drag regions >> should only be invalidated on the Main Thread! This will throw an exception >> in the future. Called from ( >>     0   AppKit                              0x00007fff334132e3 >> -[NSWindow(NSWindow_Theme) >> _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 386 >>     1   AppKit                              0x00007fff33435422 >> -[NSThemeFrame _tileTitlebarAndRedisplay:] + 98 >>     2   AppKit                              0x00007fff334604dd >> -[NSTitledFrame _titleDidChange] + 217 >>     3   AppKit                              0x00007fff3345ff89 >> -[NSTitledFrame setTitle:] + 730 >>     4   AppKit                              0x00007fff3345fc00 >> -[NSThemeFrame setTitle:] + 50 >>     5   AppKit                              0x00007fff33423082 -[NSWindow >> _dosetTitle:andDefeatWrap:] + 211 >>     6   emacs                               0x00000001001e7371 >> ns_set_name_internal + 161 >>     7   emacs                               0x000000010004f640 >> x_consider_frame_title + 784 >>     8   emacs                               0x0000000100028ad5 >> redisplay_internal + 2949 > >>     73  emacs                               0x00000001001b624a run_thread + >> 138 >>     74  libsystem_pthread.dylib             0x00007fff6316d33d _pthread_body >> + 126 >>     75  libsystem_pthread.dylib             0x00007fff631702a7 >> _pthread_start + 70 >>     76  libsystem_pthread.dylib             0x00007fff6316c425 thread_start >> + 13 >> ) > Yes, we can see redisplay is being called from within the thread, and > that just won’t work currently, I’m afraid.