[R] Error in png: unable to start png() device

6 views
Skip to first unread message

Ondrej Novak

unread,
May 23, 2013, 11:06:12 AM5/23/13
to r-h...@r-project.org
Hi,
I use R 2.14.0 on Win XP Pro SP3 and it behaves same - some times.
After I draw a lot of plots (more then 200, 2 concurrent rgui processes
running in parallel) to png then I get same error message.
Bmp(), jpg(), png() - same error. Restart of Rgui helps nothing.

Solutin - restart system and voila everything is ok.

I suspect that there might be something wrong with allocation/deallocation
of Windows resources in windows() function.

Ondrej Novak

[[alternative HTML version deleted]]

______________________________________________
R-h...@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Uwe Ligges

unread,
May 23, 2013, 4:13:57 PM5/23/13
to novak...@gmail.com, r-h...@r-project.org


On 23.05.2013 17:06, Ondrej Novak wrote:
> Hi,
> I use R 2.14.0 on Win XP Pro SP3 and it behaves same - some times.
> After I draw a lot of plots (more then 200, 2 concurrent rgui processes
> running in parallel) to png then I get same error message.
> Bmp(), jpg(), png() - same error. Restart of Rgui helps nothing.
>
> Solutin - restart system and voila everything is ok.
>
> I suspect that there might be something wrong with allocation/deallocation
> of Windows resources in windows() function.


R-2.14.0 is anicent, can you try this woth a recent R such as R-3.0.1
please and if the problem persists, please provide reproducible code so
that we can try to reproduce in order to find the problem.

Best,
Uwe Ligges

PIKAL Petr

unread,
May 24, 2013, 5:07:45 AM5/24/13
to novak...@gmail.com, r-h...@r-project.org
Hi

Beside of what Uwe recommends. You probably use some cycle. Why not to use multipage pdf? I remember I once created pdf with more than 1000 pages without any problem.

Regards
Petr
Reply all
Reply to author
Forward
0 new messages