Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: print causes matlab to crash in linux
Date: Thu, 24 Apr 2008 13:13:40 -0400
Organization: The MathWorks
Lines: 45
Message-ID: <fuqf44$o3f$2@fred.mathworks.com>
References: <fuq3pj$c3t$1@fred.mathworks.com> <fuq4so$8mj$1@fred.mathworks.com> <e6339561-d9ba-4680-83f5-a4ac4c9cdbcd@24g2000hsh.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: quistr.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1209057220 24687 144.212.107.174 (24 Apr 2008 17:13:40 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 24 Apr 2008 17:13:40 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
In-Reply-To: <HIDDEN>
Xref: news.mathworks.com comp.soft-sys.matlab:465016



Ben wrote:
> 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?
> 

There can be a number of causes. I suggest you contact your local support 
office so they can address the specific situations.

-- 

Richard Quist
Software Developer
The MathWorks, Inc.