Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion segmentation fault from saveas
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richard Quist  
View profile  
 More options Mar 10 2008, 9:00 am
Newsgroups: comp.soft-sys.matlab
From: Richard Quist <rquist_nos...@mathworks.com>
Date: Mon, 10 Mar 2008 09:00:30 -0400
Local: Mon, Mar 10 2008 9:00 am
Subject: Re: segmentation fault from saveas

Al wrote:
> Running matlab with -nojvm will cause a segmentation fault if saveas
> attempts to create a .emf file on my installation. There is no problem
> with .fig files.

> For example
> start at the command line with

> matlab -nojvm

> Create a trivial plot and attempt to save as a .emf

> plot(1,2);
> saveas(gcf, 'junk.emf');

> Is this a known bug? Or is the jvm necessary to create a .emf file?

This is a bug although not one that I was aware of. R2008a reports an
error instead of seg faulting when you try this (message saying the JVM
is not running)

The same issue would occur if you use MATLAB's   print   command instead
of saveas.

The process is attempting to access a preference setting and that makes
use of the jvm.

Setting the figure's  'paperpositionmode'  property to 'auto' may
prevent the crash from occurring and allow the file to be created.
   set(gcf, 'paperpositionmode', 'auto');

--

Richard Quist
Software Developer
The MathWorks, Inc.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.