From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#64908: 29.1; svg parse failure Date: Sat, 5 Aug 2023 16:14:19 +0100 Message-ID: References: <83o7jnwfd3.fsf@gnu.org> <835y5vw1ay.fsf@gnu.org> <83350yvd5f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 64908@debbugs.gnu.org To: David Ponce Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 05 17:15:24 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 1qSIzz-0003T0-CX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Aug 2023 17:15:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSIzi-0002Pe-RT; Sat, 05 Aug 2023 11:15:07 -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 1qSIze-0002PK-Jt for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 11:15: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 1qSIze-0007M5-Ay for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 11:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSIze-0001Gb-6l for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2023 11:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Aug 2023 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64908 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 64908-submit@debbugs.gnu.org id=B64908.16912484754820 (code B ref 64908); Sat, 05 Aug 2023 15:15:02 +0000 Original-Received: (at 64908) by debbugs.gnu.org; 5 Aug 2023 15:14:35 +0000 Original-Received: from localhost ([127.0.0.1]:57952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSIzC-0001Fg-JQ for submit@debbugs.gnu.org; Sat, 05 Aug 2023 11:14:34 -0400 Original-Received: from dane.soverin.net ([185.233.34.148]:34923) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSIz9-0001FS-V3 for 64908@debbugs.gnu.org; Sat, 05 Aug 2023 11:14:32 -0400 Original-Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4RJ5hx5s8Nz2xFP; Sat, 5 Aug 2023 15:14:25 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4RJ5hx16wlzHG; Sat, 5 Aug 2023 15:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1691248465; bh=xH31jKNBKPynNqosi/GIEmRiesiy9mmF8oAH9qI+fOc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=icwUbkJozjZMwSWYcaWi9MDj1QyovmRji29xN2CcIt/58fKCnwfIeA0uRDQKBCEpT sTLfbiPIA53GzExhgE5dJqu2VxogcPzHXJZfcndSTf3nezGQT4Xv9PCecwK4h3p9cn //sU6f54y+Fm+O0XD6GOQ2sjEtAdtEw1cyA0lIbCK2FKqKB/1/PXAONpwzcVLO725H RJ3qZNvjuUBqYIKjrYyhBeu0DpE1Xnx54AyXCvV/SV8L7oaeT3gAPfds70O9ewEYqm YY8XTBt97jT7n3jcd2yTeDNOthSaYKHlUyfj/JTM66wGe+VBRymdM6wv5WyqGbOL3U IuTgwzmu/7mcA== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96) (envelope-from ) id 1qSIyx-000Qur-2P; Sat, 05 Aug 2023 16:14:19 +0100 X-Soverin-Authenticated: true Mail-Followup-To: Alan Third , David Ponce , Eli Zaretskii , 64908@debbugs.gnu.org Content-Disposition: inline In-Reply-To: X-CMAE-Score: 0 X-CMAE-Analysis: v=2.4 cv=LJ6gAra9 c=1 sm=1 tr=0 ts=64ce6751 a=kj9zAlcOel0A:10 a=UttIx32zK-AA:10 a=SSmOFEACAAAA:8 a=RoP1ugcdlmA5vmdAOZcA:9 a=CjuIK1q_8ugA:10 a=QFQpZqS0RxKphyyxyQrP:22 X-Cloudmark-Reporter: H1BfMDDIseXVAGznanf59hmP2F4= 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:266789 Archived-At: On Sat, Aug 05, 2023 at 02:32:07PM +0200, David Ponce wrote: > On 05/08/2023 11:58, Alan Third wrote: > I did test your V2 patch, and it seems to work well. > I tend to agree with your reasoning, even if I am not enough a > librsvg expert to fully understand all the details. Thanks! > One case however is not working, when the svg image just specify > percentage for width and height without a viewbox, like this: > > '(image :type svg :data > " > > > > style=\"fill:currentColor;fill-opacity:1;stroke:none\" > d=\"m7.707031 3l-.707031.707031 6.125 6.125 1.167969 1.167969-1.167969 1.167969-6.125 6.125.707031.707031 6.125-6.125 1.875-1.875-1.875-1.875-6.125-6.125\" > class=\"ColorScheme-Text\" > /> > " > :scale 1) > > I can display a such image in firefox, gwenview, or inkscape, but not in Emacs. > I guess it works in applications that provide a default viewbox when not defined. > And it is failing in Emacs because no default viewbox is provided. Very strange, it works here. rsvg_handle_get_geometry_for_layer should handle this fine. I wonder if something subtle has changed with 2.56... I can't fine anything in the documentation to say this has changed... We can always provide an absolute fallback of 100x100 or something. I think that's what we used to do. But it would be good to know if something is actually broken here. Are you able to check the return value of rsvg_handle_get_geometry_for_layer and see if it's throwing up an error? -- Alan Third