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?
Subject: Re: print causes matlab to crash in linux
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:
>
> peakssaveas(gcf,'test.png','png')
>
> doesn'tcrashmatlab, but saves an entirely black image!
>
> If I runsaveas(gcf,'test3.png','png') on my actual data (a
> surf plot) then matlab doescrash.
>
> Any clues?
Subject: Re: print causes matlab to crash in linux
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.
Subject: Re: print causes matlab to crash in linux
Ben wrote:
> Update: Check this message for a possible solution:
>
> http://groups.google.com/group/comp.soft-sys.matlab/msg/ff4a311272efbd15
>
>
> 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:
>>
>> peakssaveas(gcf,'test.png','png')
>>
>> doesn'tcrashmatlab, but saves an entirely black image!
>>
>> If I runsaveas(gcf,'test3.png','png') on my actual data (a
>> surf plot) then matlab doescrash.
>>
>> Any clues?
>
That particular message only applies if MATLAB was started with the -nojvm option
--
Richard Quist
Software Developer
The MathWorks, Inc.
Subject: Re: print causes matlab to crash in linux
Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central. Read the complete Disclaimer prior to use.