From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mats Lidell via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61436: Emacs Freezing With Java Files Date: Wed, 11 Oct 2023 09:28:59 +0200 Message-ID: <87il7dbosk.fsf@lidells.se> References: <83cz6fiefb.fsf@gnu.org> <835yc6hl0c.fsf@gnu.org> <87bkd7fsp4.fsf@sappc2.fritz.box> <87il7ew5wx.fsf@sappc2.fritz.box> Reply-To: Mats Lidell Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32617"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Hank Greenburg , 61436@debbugs.gnu.org, Eli Zaretskii , Bob Weiner To: Jens Schmidt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 11 09:30:02 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qqTfO-0008I7-Jv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Oct 2023 09:30:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqTf5-000261-Fx; Wed, 11 Oct 2023 03:29:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqTf3-00025V-BA for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 03:29:41 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqTf3-0002wf-3J for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 03:29:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqTfO-0008CK-H7 for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 03:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mats Lidell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Oct 2023 07:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61436 X-GNU-PR-Package: emacs Original-Received: via spool by 61436-submit@debbugs.gnu.org id=B61436.169700937231194 (code B ref 61436); Wed, 11 Oct 2023 07:30:02 +0000 Original-Received: (at 61436) by debbugs.gnu.org; 11 Oct 2023 07:29:32 +0000 Original-Received: from localhost ([127.0.0.1]:37392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqTet-000874-Iz for submit@debbugs.gnu.org; Wed, 11 Oct 2023 03:29:31 -0400 Original-Received: from smtp.egensajt.se ([193.42.159.246]:34396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqTep-00086n-KO for 61436@debbugs.gnu.org; Wed, 11 Oct 2023 03:29:30 -0400 Original-Received: from ethel (c80-217-132-174.bredband.tele2.se [80.217.132.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mats.lidell@lidells.se) by smtp.egensajt.se (Postfix) with ESMTPSA id 4231820107; Wed, 11 Oct 2023 09:29:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lidells.se; s=dkim; t=1697009340; bh=ht4HSeTL80ToNKSIGzHSIONnvqHcVpY0rzBvuyV+dyY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cO3fFAxE2sqtDXK8VTOz4/xPD6tLlkpa0fc6vGXOxv4hW2IGabxcTkUESqdUrNHAc aVUiCp46cctgnzzUNIsqNoPbmAs8T8jtg6m1d3eR+Snhd+7M5cSwmK0u37zmVr13F9 QIym6LVr/mUifTuDL5Y2beYLo8QeDhpj8CwIuQXU= In-Reply-To: <87il7ew5wx.fsf@sappc2.fritz.box> (Jens Schmidt's message of "Tue, 10 Oct 2023 22:58:54 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272246 Archived-At: Hi Jens, Thanks for the report. Seems non trivial. > Jens Schmidt writes: > Jens Schmidt writes: > > > Ensure package "hyperbole" is installed. (Its only role in this > > issue seems to be a "background load generator", but I'm not 100% > > sure here.) > > The second part above is not true! Hyperbole mode is the culprit, > unless proven otherwise. Here is a 100%-freezing reproducer (with > P1.java as from the initial post): > > ------------------------- init.el ------------------------- > (require 'package) > (add-to-list 'package-archives > '("melpa" . "https://melpa.org/packages/")) > (add-to-list 'package-archives > '("gnu" . "https://elpa.gnu.org/packages/")) > (package-initialize) > ;(setq hkey-init nil) > (hyperbole-mode 1) > ------------------------- init.el ------------------------- > > Execute Emacs as: > > ./src/emacs -Q -l ~/tmp/init.el +181 ~/tmp/P1.java > > That always freezes Emacs (29 and master) even before it has a chance to > display P1.java. The freeze happens in function > `c-get-fallback-scan-pos', where the while loop inf-loops, BUT: > > If you uncomment the line setting `hkey-init' to nil in init.el and > repeat: No freeze. I have tried to recreate the freezing (with 29.1 running docker) and I don't see the exact same behavior. For me P1.java is displayed and there us no freeze but when I try to go to top or bottom of file it freezes and I have to hit C-g. After that it seems to work. This is just an observation. There can be more things affected of course. I have tried both with the hyperbole stable and devel packages and get the same behavior. Note: I don't know what P1.java means here. I have picked a java file at random that I had on my machine that is large. Is P1.java a specific file that has been shared earlier? > Not sure how to continue here - since this is a GNU ELPA package, it can > be further handled on Emacs debbugs, no? Mats, Bob? Hyperbole has its own tracker. https://debbugs.gnu.org/cgi/pkgreport.cgi?package=hyperbole %% Mats