all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#9633: 24.0.90; viewing a pdf crashes emacs
@ 2011-09-29 19:02 Pieter Slabbert
  2011-09-30  6:38 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Pieter Slabbert @ 2011-09-29 19:02 UTC (permalink / raw)
  To: 9633

When opening a pdf only the first page displays. I can scroll down this
page but once I try to go to the next page emacs freezesand I get the
message:
emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.


In GNU Emacs 24.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-09-29 on box
Windowing system distributor `The X.Org Foundation', version 11.0.10905000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  value of $XMODIFIERS: nil
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-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

Recent input:
<menu> r e p o r t <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader
emacsbug time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-09-29 19:02 bug#9633: 24.0.90; viewing a pdf crashes emacs Pieter Slabbert
@ 2011-09-30  6:38 ` Eli Zaretskii
  2011-09-30 14:27   ` Pieter Slabbert
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2011-09-30  6:38 UTC (permalink / raw)
  To: Pieter Slabbert; +Cc: 9633

> From: Pieter Slabbert <blob626@gmail.com>
> Date: Thu, 29 Sep 2011 21:02:18 +0200
> 
> When opening a pdf only the first page displays. I can scroll down this
> page but once I try to go to the next page emacs freezesand I get the
> message:
> emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.

Can you please provide a reproducible recipe starting from "emacs -Q"?

Also, how much memory can you use on that system?  And what version of
the libtiff library did you use to build Emacs?





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-09-30  6:38 ` Eli Zaretskii
@ 2011-09-30 14:27   ` Pieter Slabbert
  2011-09-30 15:04     ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Pieter Slabbert @ 2011-09-30 14:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 9633


>> When opening a pdf only the first page displays. I can scroll down this
>> page but once I try to go to the next page emacs freezesand I get the
>> message:
>> emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.
>
> Can you please provide a reproducible recipe starting from "emacs -Q"?
>
> Also, how much memory can you use on that system?  And what version of
> the libtiff library did you use to build Emacs?
>

emacs -Q ~/Documents/a-pdf.pdf
once in emacs press n

a-pdf.pdf must have at least two pages.

I can use 1 gig of memory and my libtiff version is 3.9.4
emacs 23.3.1 opens the same pdf just fine.





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-09-30 14:27   ` Pieter Slabbert
@ 2011-09-30 15:04     ` Eli Zaretskii
  2011-09-30 15:18       ` Pieter Slabbert
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2011-09-30 15:04 UTC (permalink / raw)
  To: Pieter Slabbert; +Cc: 9633

> Date: Fri, 30 Sep 2011 16:27:53 +0200
> From: Pieter Slabbert <blob626@gmail.com>
> CC: 9633@debbugs.gnu.org
> 
> 
> >> When opening a pdf only the first page displays. I can scroll down this
> >> page but once I try to go to the next page emacs freezesand I get the
> >> message:
> >> emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.
> >
> > Can you please provide a reproducible recipe starting from "emacs -Q"?
> >
> > Also, how much memory can you use on that system?  And what version of
> > the libtiff library did you use to build Emacs?
> >
> 
> emacs -Q ~/Documents/a-pdf.pdf
> once in emacs press n
> 
> a-pdf.pdf must have at least two pages.

I'm sorry, but with this recipe I get just a buffer full of binary
garbage, presumably the contents of the PDF file.  What mode is loaded
on your system that displays the PDF file?





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-09-30 15:04     ` Eli Zaretskii
@ 2011-09-30 15:18       ` Pieter Slabbert
  2011-09-30 15:48         ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Pieter Slabbert @ 2011-09-30 15:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 9633



On 2011/09/30 05:04 PM, Eli Zaretskii wrote:
>> Date: Fri, 30 Sep 2011 16:27:53 +0200
>> From: Pieter Slabbert<blob626@gmail.com>
>> CC: 9633@debbugs.gnu.org
>>
>>
>>>> When opening a pdf only the first page displays. I can scroll down this
>>>> page but once I try to go to the next page emacs freezesand I get the
>>>> message:
>>>> emacs: Memory allocation failed `' @ fatal/tiff.c/UnregisterTIFFImage/1817.
>>>
>>> Can you please provide a reproducible recipe starting from "emacs -Q"?
>>>
>>> Also, how much memory can you use on that system?  And what version of
>>> the libtiff library did you use to build Emacs?
>>>
>>
>> emacs -Q ~/Documents/a-pdf.pdf
>> once in emacs press n
>>
>> a-pdf.pdf must have at least two pages.
>
> I'm sorry, but with this recipe I get just a buffer full of binary
> garbage, presumably the contents of the PDF file.  What mode is loaded
> on your system that displays the PDF file?
>

for me it opens in DocView mode





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-09-30 15:18       ` Pieter Slabbert
@ 2011-09-30 15:48         ` Eli Zaretskii
  2011-09-30 17:11           ` Glenn Morris
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2011-09-30 15:48 UTC (permalink / raw)
  To: Pieter Slabbert; +Cc: 9633

> Date: Fri, 30 Sep 2011 17:18:32 +0200
> From: Pieter Slabbert <blob626@gmail.com>
> CC: 9633@debbugs.gnu.org
> 
> >> emacs -Q ~/Documents/a-pdf.pdf
> >> once in emacs press n
> >>
> >> a-pdf.pdf must have at least two pages.
> >
> > I'm sorry, but with this recipe I get just a buffer full of binary
> > garbage, presumably the contents of the PDF file.  What mode is loaded
> > on your system that displays the PDF file?
> >
> 
> for me it opens in DocView mode

That needs Ghostscript which I don't have.

Could someone please reproduce this and provide a full backtrace from
an unoptimized build?





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-09-30 15:48         ` Eli Zaretskii
@ 2011-09-30 17:11           ` Glenn Morris
  2011-09-30 17:46             ` Pieter Slabbert
  0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2011-09-30 17:11 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 9633, Pieter Slabbert


I tried on two different systems (one of which uses libtiff 3.9.4) and
could not reproduce it.

I think "UnregisterTIFFImage" is actually provided by the imagemagick
library. Does the problem go away if you configure --without-imagemagick?

I don't know what tiffs have to do with anything though, since docview
uses png.





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-09-30 17:11           ` Glenn Morris
@ 2011-09-30 17:46             ` Pieter Slabbert
  2011-10-01  1:47               ` Glenn Morris
  0 siblings, 1 reply; 10+ messages in thread
From: Pieter Slabbert @ 2011-09-30 17:46 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 9633



>
> I think "UnregisterTIFFImage" is actually provided by the imagemagick
> library. Does the problem go away if you configure --without-imagemagick?
>

this worked, thanks





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-09-30 17:46             ` Pieter Slabbert
@ 2011-10-01  1:47               ` Glenn Morris
  2012-03-27 22:35                 ` Glenn Morris
  0 siblings, 1 reply; 10+ messages in thread
From: Glenn Morris @ 2011-10-01  1:47 UTC (permalink / raw)
  To: Pieter Slabbert; +Cc: 9633


OK, but the ImageMagick issue should still be investigated.
What version of ImageMagick is on your system?
Does the crash happen with any multi-page pdf, or just one/some?
For example, does it happen with etc/refcards/refcard.pdf from the Emacs
distribution?
What happens if you just open a png file in emacs -Q?

Can you build Emacs using:

CFLAGS=-O0 -g3 ./configure
make

then run it using:

cd src
gdb ./emacs
run -Q

and when it crashes, post the result of `bt full'?





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

* bug#9633: 24.0.90; viewing a pdf crashes emacs
  2011-10-01  1:47               ` Glenn Morris
@ 2012-03-27 22:35                 ` Glenn Morris
  0 siblings, 0 replies; 10+ messages in thread
From: Glenn Morris @ 2012-03-27 22:35 UTC (permalink / raw)
  To: 9633-done

Glenn Morris wrote:

> What version of ImageMagick is on your system?
> Does the crash happen with any multi-page pdf, or just one/some?
> For example, does it happen with etc/refcards/refcard.pdf from the Emacs
> distribution?
> What happens if you just open a png file in emacs -Q?
>
> Can you build Emacs using:
>
> CFLAGS=-O0 -g3 ./configure
> make
>
> then run it using:
>
> cd src
> gdb ./emacs
> run -Q
>
> and when it crashes, post the result of `bt full'?


Nothing can be done without this information, so I am closing this.
If you are interested in pursuing this, please try to reply with those
details and this can be reopened if appopriate.





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

end of thread, other threads:[~2012-03-27 22:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-29 19:02 bug#9633: 24.0.90; viewing a pdf crashes emacs Pieter Slabbert
2011-09-30  6:38 ` Eli Zaretskii
2011-09-30 14:27   ` Pieter Slabbert
2011-09-30 15:04     ` Eli Zaretskii
2011-09-30 15:18       ` Pieter Slabbert
2011-09-30 15:48         ` Eli Zaretskii
2011-09-30 17:11           ` Glenn Morris
2011-09-30 17:46             ` Pieter Slabbert
2011-10-01  1:47               ` Glenn Morris
2012-03-27 22:35                 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.