From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wasim Abbas Newsgroups: gmane.emacs.bugs Subject: bug#47267: 28.0.50; Emacs hangs in font-lock-default-fontify-region Date: Fri, 19 Mar 2021 17:42:12 +0000 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_5CC0DC9A-DB83-4B76-86D4-825940DB05B4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34195"; mail-complaints-to="usenet@ciao.gmane.io" To: 47267@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 19 18:43:11 2021 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 1lNJ9S-0008lS-9E for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Mar 2021 18:43:10 +0100 Original-Received: from localhost ([::1]:58882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNJ9R-0005M7-BD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Mar 2021 13:43:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNJ9K-0005Lr-9B for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 13:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39384) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNJ9K-0002Ub-1x for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 13:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lNJ9J-0008L2-W1 for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 13:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Wasim Abbas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Mar 2021 17:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47267 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161617574632007 (code B ref -1); Fri, 19 Mar 2021 17:43:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Mar 2021 17:42:26 +0000 Original-Received: from localhost ([127.0.0.1]:50930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNJ8j-0008KB-Mj for submit@debbugs.gnu.org; Fri, 19 Mar 2021 13:42:26 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:60120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNJ8g-0008K2-Uw for submit@debbugs.gnu.org; Fri, 19 Mar 2021 13:42:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNJ8e-0005Ar-Rl for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 13:42:22 -0400 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:46794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNJ8c-0001zg-SV for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 13:42:20 -0400 Original-Received: by mail-ed1-x536.google.com with SMTP id h10so11699010edt.13 for ; Fri, 19 Mar 2021 10:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=Wy2lvHfYy01+j+cNgzYFtQEJ16Dn34CYw4O8ItgPm6s=; b=YVgmjZfIg1T3E4DgCDQc3YiN227b10Ikj2CopFWSqTNxXWgWE5jchqrVoqp5RiALMy Y7To7qm7jt4fVCQ37Qo/eOumIsIzN+fGjE7nxdOhNGJwy9Su3T9MvCuM20Bd9REWY+a6 h3HVrqUe2FtJmy4XQxAGOhCzvG+nMVogvyiBR8eGapHehJjhQw1k+P17m3gU4tU3Qlbc jqa5FsCJtACpMImNeec7aP1IeVwJ/6CvNtRFSfA3qMBegUiZRMrtmmd6YXv9rMUFCzM3 sRreKqSv1fKYZbH3TNuXj73eg9RAgujux9E3g+7tV6SpBEClovBzYddY/5GTk9FSF/Gi T06A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=Wy2lvHfYy01+j+cNgzYFtQEJ16Dn34CYw4O8ItgPm6s=; b=AnBhPfCk8hSD1ny0I3PV9N3iwNAaczIyUpM/yZPUCjJgsBZW/L8avncw3ykXNsTn5T p9cs14TsbtjCjrRIYou26xFWmWpPf8l1D1vEl5DhZM0Y4T8r4gF+JWxIeTkNGd3k6WCp D++3/t8o+yz2ueZrKL/qqU1bXY1HrO3H/CYiEZu4LtlFNimeYzvJ+XaJYrq97d+jO9Ww cD61swmpRrQmreNCZ5LXFG/ULuicN1B5ZYv2sq2/gsAKz7ezYlV5BI69Mw5PF0oELH+M Hc+F6oHCngQtMn1+fnTEbOWuomF2vp3pN/7n0Mo74KKsFH5AdR5Bq2SVHMd1MHXcN9nP jgFw== X-Gm-Message-State: AOAM5331nUtrSSPquYan1HTNQr07LQobd220lXmun6SP66gLOJurFQAQ u2LzWc7t1Tw0JDC1SaReJ7rhHmaNQnGg/Q== X-Google-Smtp-Source: ABdhPJyEkgsiMOJz8hcx+VwVqk1J90vRkjgQ+SQEocuk1j+s4dRCuIzeAXV5fM7R6miK6weEFlHBng== X-Received: by 2002:aa7:c654:: with SMTP id z20mr10814648edr.377.1616175734766; Fri, 19 Mar 2021 10:42:14 -0700 (PDT) Original-Received: from [192.168.0.8] (cpc92724-cmbg20-2-0-cust48.5-4.cable.virginm.net. [82.25.5.49]) by smtp.gmail.com with ESMTPSA id ak20sm3976795ejc.72.2021.03.19.10.42.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Mar 2021 10:42:13 -0700 (PDT) X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=abbas.wasim@gmail.com; helo=mail-ed1-x536.google.com 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, 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-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" Xref: news.gmane.io gmane.emacs.bugs:202707 Archived-At: --Apple-Mail=_5CC0DC9A-DB83-4B76-86D4-825940DB05B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii For a very specific c++ header file (attached rorrhi_types_test.hpp) = emacs is hanging in font-lock-default-fontify-region(xxx xxx nil) consistently. Just removing a few characters from the begining of the file or removing some doxygen comments solves the problem. I tried a few versions including current master etc. Emacs 27.1.91 doesn't have the issue. --Apple-Mail=_5CC0DC9A-DB83-4B76-86D4-825940DB05B4 Content-Disposition: attachment; filename=rorrhi_types_test.hpp Content-Type: application/octet-stream; x-unix-mode=0644; name="rorrhi_types_test.hpp" Content-Transfer-Encoding: 7bit // Roar Source Code // Wasim Abbas // http://www.waZim.com // Copyright (c) 2008-2021 // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the 'Software'), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the Software // is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE // OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // Version: 1.0.0 #pragma once #include "something_random.hpp" #include #include #include #include #include #include #include #include #include namespace rhi { // template // class HasPositions // {}; // template <> // class HasPositions // { // public: // ror::Vector3f m_positions; // }; // template // class HasPositionsSOA // {}; // // This is probably much better for copying later on // template // class HasPositionsSOA<_type, true> // { // public: // std::vector<_type> m_positions; // }; /** * Describes how many buffers are created for static geometry data and with what layout * This should only be used for static data that won't be touched later for anything else * use Buffer directly. Ideally this will try to create * 1 buffer for positions, * 1 for all other vertex attributes, * 1 for index buffers, * 1 for instanced data */ class ROAR_ENGINE_ITEM BuffersPack { public: FORCE_INLINE BuffersPack(const BuffersPack &a_other) = delete; //! Copy constructor FORCE_INLINE BuffersPack(BuffersPack &&a_other) noexcept = delete; //! Move constructor FORCE_INLINE BuffersPack &operator=(const BuffersPack &a_other) = delete; //! Copy assignment operator FORCE_INLINE BuffersPack &operator=(BuffersPack &&a_other) noexcept = delete; //! Move assignment operator FORCE_INLINE virtual ~BuffersPack() noexcept = default; //! Destructor declare_translation_unit_vtable(); FORCE_INLINE BuffersPack() { std::shared_ptr buffers_format = ror::get_buffer_pack(); this->m_buffers = buffers_format->m_buffer_packs[buffers_format->m_current_format].m_buffers; // Copy the buffers over uint32_t i = 0; for (const auto &bfr : this->m_buffers) { const auto semantics = bfr.semantics(); for (const auto &sem : semantics) { this->m_attribute_indices.emplace(sem.first, i); // Creating mapping here, If ShaderSemantic is defined for multiple buffers, behaviour is undefined } i++; } } FORCE_INLINE uint32_t attribute_buffer_index(ShaderSemantic a_semantic) const { return this->m_attribute_indices.at(a_semantic); } /** * Returns a pair with buffer index and the offsets in that buffer where the data is copied */ FORCE_INLINE std::pair upload_data(ShaderSemantic a_semantic, uint8_t &a_data, uint64_t a_bytes) { uint64_t index = this->attribute_buffer_index(a_semantic); return std::make_pair(index, this->m_buffers[index].upload(a_data, a_bytes)); } private: std::vector m_buffers; //! All buffers created for different type data std::unordered_map m_attribute_indices; //! All indices for any of the ShaderSemantic type // uint32_t m_position_attribute_index{0}; //! All positions buffer (VBOs) // uint32_t m_non_position_attribute_index{0}; //! All non-positions buffer (VBOs) // uint32_t m_index_attribute_index{0}; //! All index buffer (IBOs) // uint32_t m_instance_attribute_index{0}; //! All instanced data buffer (VBOs) }; define_translation_unit_vtable(BuffersPack); /** * Description of a geometry vertex * Prefered to be used via VertexDescriptor not directly */ class ROAR_ENGINE_ITEM VertexAttribute final { }; } --Apple-Mail=_5CC0DC9A-DB83-4B76-86D4-825940DB05B4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii In GNU Emacs 28.0.50 (build 2, x86_64-apple-darwin19.6.0, NS = appkit-1894.60 Version 10.15.7 (Build 19H524)) of 2021-03-12 built on Wasims-iMac-Pro.local Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.7 Configured using: 'configure --enable-locallisppath=3D/usr/local/share/emacs/site-lisp --infodir=3D/usr/local/Cellar/emacs-head@28/28.0.50_1/share/info/emacs --prefix=3D/usr/local/Cellar/emacs-head@28/28.0.50_1 --without-x --without-dbus --with-imagemagick --with-modules --with-gnutls --with-rsvg --with-xml2 --with-ns --disable-ns-self-contained' Configured features: ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: C++//l Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode easy-mmode vc-dispatcher cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 77492 7028) (symbols 48 9542 1) (strings 32 26136 2260) (string-bytes 1 978378) (vectors 16 16918) (vector-slots 8 222274 13643) (floats 8 24 47) (intervals 56 477 0) (buffers 992 12)) --Apple-Mail=_5CC0DC9A-DB83-4B76-86D4-825940DB05B4--