unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* SVG attachment crashes emacs
@ 2014-08-17 13:46 Sebastian Fischmeister
  2014-08-17 18:40 ` David Bremner
  0 siblings, 1 reply; 11+ messages in thread
From: Sebastian Fischmeister @ 2014-08-17 13:46 UTC (permalink / raw)
  To: notmuch

Hi,

When I receive an SVG attachment, it first makes emacs freeze and then
crash. It might not be a problem of notmuch but a helper application,
but I don't know how to debug it; so maybe someone here can help me.

Any ideas?

Btw. it seems that the general problem is the the message mode tries
to process attachments. For example when I receive a large .tgz file,
the message mode in notmuch tries to decompress and parse the file,
which may take a while.

Thanks,
  Sebastian

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-17 13:46 SVG attachment crashes emacs Sebastian Fischmeister
@ 2014-08-17 18:40 ` David Bremner
       [not found]   ` <87egwe9vkq.fsf@uwaterloo.ca>
  0 siblings, 1 reply; 11+ messages in thread
From: David Bremner @ 2014-08-17 18:40 UTC (permalink / raw)
  To: sfischme, notmuch

Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:

> Hi,
>
> When I receive an SVG attachment, it first makes emacs freeze and then
> crash. It might not be a problem of notmuch but a helper application,
> but I don't know how to debug it; so maybe someone here can help me.
>

Hi Sebastian;

Can you send a sample message, perhaps as an attachement so we can try
to duplicate the problem? So far these things are usually upstream emacs
bugs, but they do get fixed if we make a good bug report.

d

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
       [not found]   ` <87egwe9vkq.fsf@uwaterloo.ca>
@ 2014-08-18 12:22     ` David Bremner
  2014-08-18 20:21       ` Sebastian Fischmeister
  0 siblings, 1 reply; 11+ messages in thread
From: David Bremner @ 2014-08-18 12:22 UTC (permalink / raw)
  To: sfischme; +Cc: Notmuch Mail

Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:

> For example, the attached svg file causes a crash.
>
>   Sebastian
>   

It displays ok for me. What version of emacs are you using?

d

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-18 12:22     ` David Bremner
@ 2014-08-18 20:21       ` Sebastian Fischmeister
  2014-08-19  1:27         ` David Bremner
  2014-08-20 12:54         ` MaDhAt2r
  0 siblings, 2 replies; 11+ messages in thread
From: Sebastian Fischmeister @ 2014-08-18 20:21 UTC (permalink / raw)
  To: David Bremner; +Cc: Notmuch Mail

GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of
2014-06-11 on var-lib-archbuild-staging-x86_64-jgc

~$ notmuch --version
notmuch 0.18.1

What happens is that emacs invokes inkscape to do something to the svg.

  Sebastian

David Bremner <david@tethera.net> writes:

> Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:
>
>> For example, the attached svg file causes a crash.
>>
>>   Sebastian
>>   
>
> It displays ok for me. What version of emacs are you using?
>
> d

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-18 20:21       ` Sebastian Fischmeister
@ 2014-08-19  1:27         ` David Bremner
  2014-08-19  2:11           ` MaDhAt2r
  2014-08-20 12:54         ` MaDhAt2r
  1 sibling, 1 reply; 11+ messages in thread
From: David Bremner @ 2014-08-19  1:27 UTC (permalink / raw)
  To: sfischme; +Cc: Notmuch Mail

Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:

> GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of
> 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
>
> ~$ notmuch --version
> notmuch 0.18.1
>
> What happens is that emacs invokes inkscape to do something to the svg.
>

I wonder if this is specific to the way emacs is compiled on arch.  I
just deleted inkscape and the image you sent me still renders fine on
Debian testing, same emacs and notmuch version.

Out of curiousity, is your emacs linked to libxml2?

It could also be something to do with mime type configuration, which is
a bit of an impenetrable thicket to me.

d

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-19  1:27         ` David Bremner
@ 2014-08-19  2:11           ` MaDhAt2r
  2014-08-20  9:33             ` Sebastian Fischmeister
  0 siblings, 1 reply; 11+ messages in thread
From: MaDhAt2r @ 2014-08-19  2:11 UTC (permalink / raw)
  To: David Bremner, sfischme; +Cc: Notmuch Mail


I am on arch, you could send me the sample image and I will see if it
works on my end.

On Aug 18 at 08:27 PM, David Bremner scrawled:
> Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:
>
>> GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of
>> 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
>>
>> ~$ notmuch --version
>> notmuch 0.18.1
>>
>> What happens is that emacs invokes inkscape to do something to the svg.
>>
>
> I wonder if this is specific to the way emacs is compiled on arch.  I
> just deleted inkscape and the image you sent me still renders fine on
> Debian testing, same emacs and notmuch version.
>
> Out of curiousity, is your emacs linked to libxml2?
>
> It could also be something to do with mime type configuration, which is
> a bit of an impenetrable thicket to me.
>
> d
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-19  2:11           ` MaDhAt2r
@ 2014-08-20  9:33             ` Sebastian Fischmeister
  0 siblings, 0 replies; 11+ messages in thread
From: Sebastian Fischmeister @ 2014-08-20  9:33 UTC (permalink / raw)
  To: MaDhAt2r, David Bremner; +Cc: Notmuch Mail

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

Here's the svg image.

It seems that the problem is with emacs calling inkscape. Inkscape then
does something that causes emacs to crash. I don't know why emacs calls
inkscape when I open the message with the svg file.

I can directly open the svg file in emacs and it's displayed correctly.

  Sebastian

  

[-- Attachment #2: severity.svg --]
[-- Type: image/svg+xml, Size: 5228 bytes --]

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="438.14285"
   height="209.57141"
   id="svg2"
   version="1.1"
   inkscape:version="0.48.5 r10040"
   sodipodi:docname="severity.svg">
  <defs
     id="defs4" />
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="0.70000001"
     inkscape:cx="558.49057"
     inkscape:cy="13.988458"
     inkscape:document-units="px"
     inkscape:current-layer="layer1"
     showgrid="false"
     inkscape:window-width="1366"
     inkscape:window-height="768"
     inkscape:window-x="0"
     inkscape:window-y="0"
     inkscape:window-maximized="0"
     fit-margin-top="0"
     fit-margin-left="0"
     fit-margin-right="0"
     fit-margin-bottom="0" />
  <metadata
     id="metadata7">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title />
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <g
     inkscape:label="Layer 1"
     inkscape:groupmode="layer"
     id="layer1"
     transform="translate(-212.10094,-438.94198)">
    <rect
       style="fill:#ffffff;stroke:#ffffff;stroke-width:0.84078121;stroke-opacity:1"
       id="rect3783"
       width="437.30206"
       height="208.73064"
       x="212.52133"
       y="439.36237" />
    <g
       id="g3033">
      <path
         inkscape:connector-curvature="0"
         id="path2987"
         d="m 285.87317,634.6641 44.95179,0"
         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
      <path
         inkscape:connector-curvature="0"
         id="path2993"
         d="m 330.31988,633.65395 0,-61.6193 42.93149,0 0,-20.20305 181.82745,0"
         style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
      <text
         sodipodi:linespacing="125%"
         id="text2995"
         y="545.77069"
         x="529.31995"
         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
         xml:space="preserve"><tspan
           style="font-size:25px"
           y="545.77069"
           x="529.31995"
           id="tspan2997"
           sodipodi:role="line">Demand</tspan></text>
      <path
         inkscape:connector-curvature="0"
         id="path2999"
         d="m 267.69042,620.52197 127.7843,0 90.40865,-99.50003"
         style="fill:none;stroke:#0000ff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
      <text
         sodipodi:linespacing="125%"
         id="text3769"
         y="509.91028"
         x="430.83008"
         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
         xml:space="preserve"><tspan
           style="font-size:30px"
           y="509.91028"
           x="430.83008"
           id="tspan3771"
           sodipodi:role="line">Supply</tspan></text>
      <path
         inkscape:connector-curvature="0"
         id="path3773"
         d="m 321.73359,619.51182 0,-48.48733"
         style="fill:none;stroke:#ff0000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
      <path
         inkscape:connector-curvature="0"
         id="path3775"
         d="m 383.35289,619.51182 0,-67.68022"
         style="fill:#ff0000;stroke:#ff0000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
      <text
         sodipodi:linespacing="125%"
         id="text3777"
         y="566.47876"
         x="256.07367"
         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
         xml:space="preserve"><tspan
           style="font-size:15px"
           y="566.47876"
           x="256.07367"
           id="tspan3779"
           sodipodi:role="line">severity1</tspan></text>
      <text
         sodipodi:linespacing="125%"
         id="text3781"
         y="544.7605"
         x="362.13968"
         style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"
         xml:space="preserve"><tspan
           style="font-size:15px"
           y="544.7605"
           x="362.13968"
           id="tspan3783"
           sodipodi:role="line">severity2</tspan></text>
    </g>
  </g>
</svg>

[-- Attachment #3: Type: text/plain, Size: 1045 bytes --]



MaDhAt2r <madhat2r@dukefoo.com> writes:

> I am on arch, you could send me the sample image and I will see if it
> works on my end.
>
> On Aug 18 at 08:27 PM, David Bremner scrawled:
>> Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:
>>
>>> GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of
>>> 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
>>>
>>> ~$ notmuch --version
>>> notmuch 0.18.1
>>>
>>> What happens is that emacs invokes inkscape to do something to the svg.
>>>
>>
>> I wonder if this is specific to the way emacs is compiled on arch.  I
>> just deleted inkscape and the image you sent me still renders fine on
>> Debian testing, same emacs and notmuch version.
>>
>> Out of curiousity, is your emacs linked to libxml2?
>>
>> It could also be something to do with mime type configuration, which is
>> a bit of an impenetrable thicket to me.
>>
>> d
>> _______________________________________________
>> notmuch mailing list
>> notmuch@notmuchmail.org
>> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-18 20:21       ` Sebastian Fischmeister
  2014-08-19  1:27         ` David Bremner
@ 2014-08-20 12:54         ` MaDhAt2r
  2014-08-20 13:34           ` Franz Fellner
  1 sibling, 1 reply; 11+ messages in thread
From: MaDhAt2r @ 2014-08-20 12:54 UTC (permalink / raw)
  To: sfischme, David Bremner; +Cc: Notmuch Mail


My Emacs crashed also with the SVG attachment you sent.

On Aug 18 at 03:21 PM, Sebastian Fischmeister scrawled:
> GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of
> 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
>
> ~$ notmuch --version
> notmuch 0.18.1
>
> What happens is that emacs invokes inkscape to do something to the svg.
>
>   Sebastian
>
> David Bremner <david@tethera.net> writes:
>
>> Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:
>>
>>> For example, the attached svg file causes a crash.
>>>
>>>   Sebastian
>>>   
>>
>> It displays ok for me. What version of emacs are you using?
>>
>> d
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-20 12:54         ` MaDhAt2r
@ 2014-08-20 13:34           ` Franz Fellner
  2014-08-20 15:01             ` Suvayu Ali
  2014-08-21 19:50             ` David Bremner
  0 siblings, 2 replies; 11+ messages in thread
From: Franz Fellner @ 2014-08-20 13:34 UTC (permalink / raw)
  To: sfischme, David Bremner; +Cc: Notmuch Mail

emacs-24.3 crashes (Gentoo version 24.3-r6)
emacs-vcs-24.3.93 does NOT crash.
So this issue seems to be fixed in recent snapshots/beta/whatever, but
the fixed version is not released yet.

On Wed, 20 Aug 2014 07:54:31 -0500, MaDhAt2r <madhat2r@dukefoo.com> wrote:
> 
> My Emacs crashed also with the SVG attachment you sent.
> 
> On Aug 18 at 03:21 PM, Sebastian Fischmeister scrawled:
> > GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of
> > 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
> >
> > ~$ notmuch --version
> > notmuch 0.18.1
> >
> > What happens is that emacs invokes inkscape to do something to the svg.
> >
> >   Sebastian
> >
> > David Bremner <david@tethera.net> writes:
> >
> >> Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:
> >>
> >>> For example, the attached svg file causes a crash.
> >>>
> >>>   Sebastian
> >>>   
> >>
> >> It displays ok for me. What version of emacs are you using?
> >>
> >> d
> > _______________________________________________
> > notmuch mailing list
> > notmuch@notmuchmail.org
> > http://notmuchmail.org/mailman/listinfo/notmuch
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-20 13:34           ` Franz Fellner
@ 2014-08-20 15:01             ` Suvayu Ali
  2014-08-21 19:50             ` David Bremner
  1 sibling, 0 replies; 11+ messages in thread
From: Suvayu Ali @ 2014-08-20 15:01 UTC (permalink / raw)
  To: notmuch

On Wed, Aug 20, 2014 at 03:34:58PM +0200, Franz Fellner wrote:
> emacs-24.3 crashes (Gentoo version 24.3-r6)
> emacs-vcs-24.3.93 does NOT crash.
> So this issue seems to be fixed in recent snapshots/beta/whatever, but
> the fixed version is not released yet.

I don't know if people would call this a release, but the pretest has
been officially announced.

http://lists.gnu.org/archive/html/info-gnu-emacs/2014-08/msg00000.html

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: SVG attachment crashes emacs
  2014-08-20 13:34           ` Franz Fellner
  2014-08-20 15:01             ` Suvayu Ali
@ 2014-08-21 19:50             ` David Bremner
  1 sibling, 0 replies; 11+ messages in thread
From: David Bremner @ 2014-08-21 19:50 UTC (permalink / raw)
  To: Franz Fellner, sfischme; +Cc: Notmuch Mail

Franz Fellner <alpine.art.de@gmail.com> writes:

> emacs-24.3 crashes (Gentoo version 24.3-r6)
> emacs-vcs-24.3.93 does NOT crash.
> So this issue seems to be fixed in recent snapshots/beta/whatever, but
> the fixed version is not released yet.

That's interesting, I wonder if it was fixed between 24.3 and 24.3.1
since 24.3.1 is OK for me.

d

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-08-21 19:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-17 13:46 SVG attachment crashes emacs Sebastian Fischmeister
2014-08-17 18:40 ` David Bremner
     [not found]   ` <87egwe9vkq.fsf@uwaterloo.ca>
2014-08-18 12:22     ` David Bremner
2014-08-18 20:21       ` Sebastian Fischmeister
2014-08-19  1:27         ` David Bremner
2014-08-19  2:11           ` MaDhAt2r
2014-08-20  9:33             ` Sebastian Fischmeister
2014-08-20 12:54         ` MaDhAt2r
2014-08-20 13:34           ` Franz Fellner
2014-08-20 15:01             ` Suvayu Ali
2014-08-21 19:50             ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).