You might also check pathdef.m to see if there is any
corruption.
"Yi Cao" <y.cao@cranfield.ac.uk> wrote in message <g6ce32
$a86$1@fred.mathworks.com>...
> my Matlab reports an error at startup,
> "[Fatal Error] :-1:-1: Premature end of file."
>
> I have removed user defined startup.m file. But the
error
> still comes up. Anyone knows how to debug such an error?
>
> Thank for help.
>
> Yi Cao
Also, I don't know if your Matlab command window still
opens up. Another file to look into is matlabrc.m, which
is related to the Matlab startup.
"Fangjun Jiang" <f@j.com> wrote in message
<g6cidb$pbc$1@fred.mathworks.com>...
> You might also check pathdef.m to see if there is any
> corruption.
>
> "Yi Cao" <y.cao@cranfield.ac.uk> wrote in message <g6ce32
> $a86$1@fred.mathworks.com>...
> > my Matlab reports an error at startup,
> > "[Fatal Error] :-1:-1: Premature end of file."
> >
> > I have removed user defined startup.m file. But the
> error
> > still comes up. Anyone knows how to debug such an
error?
> >
> > Thank for help.
> >
> > Yi Cao
>
Thanks for reply. I have checked all files in the
toolbox\local folder including pathdef.m and matlabrc.m.
Nothing is wrong there. Any other place I should check?
Yi Cao
"Fangjun Jiang" <f@j.com> wrote in message <g6cip3$r6
$1@fred.mathworks.com>...
> Also, I don't know if your Matlab command window still
> opens up. Another file to look into is matlabrc.m, which
> is related to the Matlab startup.
>
> "Fangjun Jiang" <f@j.com> wrote in message
> <g6cidb$pbc$1@fred.mathworks.com>...
> > You might also check pathdef.m to see if there is any
> > corruption.
> >
> > "Yi Cao" <y.cao@cranfield.ac.uk> wrote in message
<g6ce32
> > $a86$1@fred.mathworks.com>...
> > > my Matlab reports an error at startup,
> > > "[Fatal Error] :-1:-1: Premature end of file."
> > >
> > > I have removed user defined startup.m file. But the
> > error
> > > still comes up. Anyone knows how to debug such an
> error?
> > >
> > > Thank for help.
> > >
> > > Yi Cao
> >
>
Is your Matlab command window still up? Would lasterr()
provide some extra info? Otherwise, I have no other ideas.
The error seems pretty serious. Do you recall anything you
did recently that could corrupt some files related to
Matlab?
"Yi Cao" <y.cao@cranfield.ac.uk> wrote in message
<g6cnpq$hlp$1@fred.mathworks.com>...
> Thanks for reply. I have checked all files in the
> toolbox\local folder including pathdef.m and matlabrc.m.
> Nothing is wrong there. Any other place I should check?
>
> Yi Cao
>
>
> "Fangjun Jiang" <f@j.com> wrote in message <g6cip3$r6
> $1@fred.mathworks.com>...
> > Also, I don't know if your Matlab command window still
> > opens up. Another file to look into is matlabrc.m,
which
> > is related to the Matlab startup.
> >
> > "Fangjun Jiang" <f@j.com> wrote in message
> > <g6cidb$pbc$1@fred.mathworks.com>...
> > > You might also check pathdef.m to see if there is
any
> > > corruption.
> > >
> > > "Yi Cao" <y.cao@cranfield.ac.uk> wrote in message
> <g6ce32
> > > $a86$1@fred.mathworks.com>...
> > > > my Matlab reports an error at startup,
> > > > "[Fatal Error] :-1:-1: Premature end of file."
> > > >
> > > > I have removed user defined startup.m file. But
the
> > > error
> > > > still comes up. Anyone knows how to debug such an
> > error?
> > > >
> > > > Thank for help.
> > > >
> > > > Yi Cao
> > >
> >
>
"Fangjun Jiang" <f@j.com> wrote in message <g6cp7a$bp0
$1@fred.mathworks.com>...
> Is your Matlab command window still up? Would lasterr()
> provide some extra info? Otherwise, I have no other
ideas.
> The error seems pretty serious. Do you recall anything
you
> did recently that could corrupt some files related to
> Matlab?
>
>
Yes, the command window still up, but lasterr does not give
any information except ''.
I managed to make a breakpoint in matlabrc.m. But the error
already happens before the matlabrc. Do you know what is
executed before matlabrc?
I also tried to search the string ':-1:-1' using wingrep
for all *.m files in the disk. But I cannot find any file.
Any othe ideas?
The other thing to check might be the license.dat. But I
don't think there is much lead on that.
Is there anything that you can think of that might leads
to this fatal error, something you did on your computer
system, files, install/uninstall?
I did a search on the Mathworks support
website. "Premature end of file" leads to an article about
QuickTime. I don't know if it is anything related.
"Yi Cao" <y.cao@cranfield.ac.uk> wrote in message <g6cv61
$s0m$1@fred.mathworks.com>...
> "Fangjun Jiang" <f@j.com> wrote in message <g6cp7a$bp0
> $1@fred.mathworks.com>...
> > Is your Matlab command window still up? Would lasterr
()
> > provide some extra info? Otherwise, I have no other
> ideas.
> > The error seems pretty serious. Do you recall anything
> you
> > did recently that could corrupt some files related to
> > Matlab?
> >
> >
>
> Yes, the command window still up, but lasterr does not
give
> any information except ''.
>
> I managed to make a breakpoint in matlabrc.m. But the
error
> already happens before the matlabrc. Do you know what is
> executed before matlabrc?
>
> I also tried to search the string ':-1:-1' using wingrep
> for all *.m files in the disk. But I cannot find any
file.
> Any othe ideas?
>
> Yi
Interesting. I googled "Fatal error premature end of file"
and got a few leads related to Java and XML. You might
want to do the same and see if anything rings a bell.
"Fangjun Jiang" <f@j.com> wrote in message <g6d29g$9c1
$1@fred.mathworks.com>...
> Interesting. I googled "Fatal error premature end of
file"
> and got a few leads related to Java and XML. You might
> want to do the same and see if anything rings a bell.
The only thing I can think about is that I quited matlab
when a m-file was not completed some days ago. But, this
error repeatedly comes up even I have completed the file.
If the error is related to this file, then I think this is
a bug related to mlint, which uses java virtual machine.
I have the same error message at the start-up. Matlan runs fine. I got this error after I terminated (kill it in windows task manager) a command of reading a big data file.
Don't know how to get rid of this message. Any ideas?
"Yi Cao" <y.cao@cranfield.ac.uk> wrote in message <g6dnal$365$1@fred.mathworks.com>...
> "Fangjun Jiang" <f@j.com> wrote in message <g6d29g$9c1
> $1@fred.mathworks.com>...
> > Interesting. I googled "Fatal error premature end of
> file"
> > and got a few leads related to Java and XML. You might
> > want to do the same and see if anything rings a bell.
>
> The only thing I can think about is that I quited matlab
> when a m-file was not completed some days ago. But, this
> error repeatedly comes up even I have completed the file.
> If the error is related to this file, then I think this is
> a bug related to mlint, which uses java virtual machine.
>
> Yi
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 Terms prior to use.