From rbaer at atsu.edu  Thu Nov 29 00:42:24 2012
From: rbaer at atsu.edu (Robert Baer)
Date: Wed, 28 Nov 2012 17:42:24 -0600
Subject: [Rd] Opening and closing quartz graphic device crashes R
In-Reply-To: <CABdHhvEBSM1yyfPEcnfGChqo6h__NpDGGgVuEU5BiENkDsU5RQ@mail.gmail.com>
References: <CABdHhvEBSM1yyfPEcnfGChqo6h__NpDGGgVuEU5BiENkDsU5RQ@mail.gmail.com>
Message-ID: <50B6A160.8000801@atsu.edu>

On 11/28/2012 5:21 PM, Hadley Wickham wrote:
>> replicate(1000, {dev.new(); dev.off()})
> R(83204,0xacdc1a28) malloc: *** mmap(size=16777216) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> R(83204,0xacdc1a28) malloc: *** mmap(size=16777216) failed (error code=12)
> *** error: can't allocate region
> *** set a breakpoint in malloc_error_break to debug
> ...
>   *** caught bus error ***
> address 0x0, cause 'non-existent physical address'
>
>> sessionInfo()
> R version 2.15.2 (2012-10-26)
> Platform: i386-apple-darwin9.8.0/i386 (32-bit)
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
>
For what its worth, I couldn't reproduce this on 64-bit or 32-bit R GUI 
consoles.

Rob
----------------------------
64-bit windows:
null device null device null device null device null device null device
-- snip --
           1           1           1           1 1           1
null device null device null device null device
           1           1           1           1
 > sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods base



32-bit windows:

windows windows windows windows windows windows windows windows windows 
windows
       2       2       2       2       2       2       2 2       2       2
-- snip --
windows windows windows windows windows windows windows windows windows 
windows
       2       2       2       2       2       2       2 2       2       2
 > sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods base
 >


-- 
__________________
Robert W. Baer, Ph.D.
Professor of Physiology
Kirksille College of Osteopathic Medicine
A. T. Still University of Health Sciences
Kirksville, MO 63501 USA



[Rd] Opening and closing quartz graphic device crashes R
Robert Baer