From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64908: 29.1; svg parse failure Date: Fri, 28 Jul 2023 09:05:48 +0300 Message-ID: <831qgslgeb.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64908@debbugs.gnu.org To: Daniel Vianna Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 28 08:12:26 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 1qPGiA-0007pE-8v for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Jul 2023 08:12:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPGc0-0007nj-NX; Fri, 28 Jul 2023 02:06:04 -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 1qPGby-0007na-M2 for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 02:06:03 -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 1qPGby-00046U-5Q for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 02:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPGbx-0005zW-OK for bug-gnu-emacs@gnu.org; Fri, 28 Jul 2023 02:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jul 2023 06:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64908 X-GNU-PR-Package: emacs Original-Received: via spool by 64908-submit@debbugs.gnu.org id=B64908.169052431222975 (code B ref 64908); Fri, 28 Jul 2023 06:06:01 +0000 Original-Received: (at 64908) by debbugs.gnu.org; 28 Jul 2023 06:05:12 +0000 Original-Received: from localhost ([127.0.0.1]:43507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPGb6-0005yS-Ca for submit@debbugs.gnu.org; Fri, 28 Jul 2023 02:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPGaz-0005xn-Tl for 64908@debbugs.gnu.org; Fri, 28 Jul 2023 02:05:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPGau-0003jA-JQ; Fri, 28 Jul 2023 02:04:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=y+1ZBhtcVobEmtR/WDKyRhEU9FajVMhTo86dIS4J9vo=; b=Me7vXTfTwslx NtGFBphnrWi1XDnj23QQr9SuuzNNjTOfaXhtizdakQWNBfkJN13ViOWKaIj6sulITs/Bz0AHTeUDA ivP1cd8T8cYjeqMYuEBIgZkBdhUwUO5wgqrKYexS322UN39fkoskaBWqfhxSGqGSDvvzGJFnQxIAZ MoCS9BuJKcUcu0JCvbDvmmzfQEA+GXtoYKewDXtso9AurweKo46TN9yUZ9sjUlmHZI2M6A1N/U/CX X7KVS29hhvwXV7C+bRG5ETp5K1fOXg5/V5mE/ejWpiTgCNyWGpuqQYRK82MsW4GlvlebgUKd9vslF Qnt4ywxSYdYHVb9d0wkRdA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPGau-0006g2-4t; Fri, 28 Jul 2023 02:04:56 -0400 In-Reply-To: (message from Daniel Vianna on Fri, 28 Jul 2023 11:10:45 +1000) 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:266230 Archived-At: > From: Daniel Vianna > Date: Fri, 28 Jul 2023 11:10:45 +1000 > > 1. Compile emacs 29 with > > ``` > sudo dnf builddep -y emacs > sudo dnf install -y libtree-sitter-devel wxBase-devel wxGTK3-devel libwebp-devel > > CC='CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g - > grecord-gcc-switches -pipe -Wall -Werror=format-security - > Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS - > specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong - > specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables - > fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer > LDFLAGS=-Wl,-z,relro gcc' > PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig I don't think Emacs supports FLTO (but I'm not sure that's related to the problem you report, either). > 3. Run emacs with > $ emacs --init-directory=$HOME/.emacs.d.off/init.el > > 4. Open ~/.local/share/emacs/29.1/etc/images/splash.svg > > 5. Open > ~/.emacs.d.off/elpa/treemacs-20230719.2015/icons/default/vsc/dir-src-open.svg > or any other svg in that directory. > > Desired result: Both 4. and 5. lead to images being rendered by emacs. > Actual result: Step 4. renders an image, step 5. does not. I tried a couple of SVG files from that distribution, and I have no problems displaying them in Emacs 29. But I did that in "emacs -Q" without loading treemacs My suggestions: . try visiting the images in "emacs -Q" . if "emacs -Q" still shows the problem, try building Emacs 29.1 with the default configuration switches, and see if the problem persists when you do not load treemacs, in "emacs -Q" . if the problem persists in the default build, it could be due to the version of librsvg you have installed, so try to upgrade it or downgrade it If none of the above helps, I guess we'll need some SVG expert around here to see what is special about those problematic SVG images. Thanks.