Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!24g2000hsh.googlegroups.com!not-for-mail
From: Ben <jbenjam@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: print causes matlab to crash in linux
Date: Thu, 24 Apr 2008 09:51:54 -0700 (PDT)
Organization: http://groups.google.com
Lines: 35
Message-ID: <e6339561-d9ba-4680-83f5-a4ac4c9cdbcd@24g2000hsh.googlegroups.com>
References: <fuq3pj$c3t$1@fred.mathworks.com> <fuq4so$8mj$1@fred.mathworks.com>
NNTP-Posting-Host: 128.183.110.112
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1209055914 15042 127.0.0.1 (24 Apr 2008 16:51:54 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 24 Apr 2008 16:51:54 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 24g2000hsh.googlegroups.com; posting-host=128.183.110.112; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) 
Xref: news.mathworks.com comp.soft-sys.matlab:465000



I'm having a similar problem.

When I try to save an image file, using
saveas(<handle>,'filename.eps','epsc2'),
it crashes my entire desktop, not just matlab.     It seems to happen
when i have a relatively complicated image, for example one with 4
subplots.    It doesn't crash every single time, I can usually save a
file once, then the second time it crashes.

It does this in both command line mode and in desktop mode.

The only solution I've found is to use the "print" command, e.g.

print -f2 -depsc2  filename.eps
(where -f<...>  is the figure handle, in my case, I'm trying to save
figure 2).

It doesn't seem to be crashing (yet).



On Apr 24, 10:19 am, "David Doria" <daviddo...@gmail.com> wrote:
> After more looking, it seems that does in fact work - that
> was just a simple demo i thought I could give.  However:
>
> peaks
> saveas(gcf,'test.png','png')
>
> doesn'tcrashmatlab, but saves an entirely black image!
>
> If I run saveas(gcf,'test3.png','png') on my actual data (a
> surf plot) then matlab doescrash.
>
> Any clues?