<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246</link>
    <title>MATLAB Central Newsreader - debug startup error</title>
    <description>Feed for thread: debug startup error</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 25 Jul 2008 11:40:18 -0400</pubDate>
      <title>debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445438</link>
      <author>Yi Cao</author>
      <description>my Matlab reports an error at startup, &lt;br&gt;
&quot;[Fatal Error] :-1:-1: Premature end of file.&quot;&lt;br&gt;
&lt;br&gt;
I have removed user defined startup.m file. But the error &lt;br&gt;
still comes up. Anyone knows how to debug such an error?&lt;br&gt;
&lt;br&gt;
Thank for help.&lt;br&gt;
&lt;br&gt;
Yi Cao</description>
    </item>
    <item>
      <pubDate>Fri, 25 Jul 2008 12:54:03 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445454</link>
      <author>Fangjun Jiang</author>
      <description>You might also check pathdef.m to see if there is any &lt;br&gt;
corruption.&lt;br&gt;
&lt;br&gt;
&quot;Yi Cao&quot; &amp;lt;y.cao@cranfield.ac.uk&amp;gt; wrote in message &amp;lt;g6ce32&lt;br&gt;
$a86$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; my Matlab reports an error at startup, &lt;br&gt;
&amp;gt; &quot;[Fatal Error] :-1:-1: Premature end of file.&quot;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have removed user defined startup.m file. But the &lt;br&gt;
error &lt;br&gt;
&amp;gt; still comes up. Anyone knows how to debug such an error?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank for help.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yi Cao</description>
    </item>
    <item>
      <pubDate>Fri, 25 Jul 2008 13:00:19 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445457</link>
      <author>Fangjun Jiang</author>
      <description>Also, I don't know if your Matlab command window still &lt;br&gt;
opens up. Another file to look into is matlabrc.m, which &lt;br&gt;
is related to the Matlab startup.&lt;br&gt;
&lt;br&gt;
&quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g6cidb$pbc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; You might also check pathdef.m to see if there is any &lt;br&gt;
&amp;gt; corruption.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Yi Cao&quot; &amp;lt;y.cao@cranfield.ac.uk&amp;gt; wrote in message &amp;lt;g6ce32&lt;br&gt;
&amp;gt; $a86$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; my Matlab reports an error at startup, &lt;br&gt;
&amp;gt; &amp;gt; &quot;[Fatal Error] :-1:-1: Premature end of file.&quot;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I have removed user defined startup.m file. But the &lt;br&gt;
&amp;gt; error &lt;br&gt;
&amp;gt; &amp;gt; still comes up. Anyone knows how to debug such an &lt;br&gt;
error?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thank for help.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Yi Cao&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Fri, 25 Jul 2008 14:26:02 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445478</link>
      <author>Yi Cao</author>
      <description>Thanks for reply. I have checked all files in the &lt;br&gt;
toolbox\local folder including pathdef.m and matlabrc.m. &lt;br&gt;
Nothing is wrong there. Any other place I should check?&lt;br&gt;
&lt;br&gt;
Yi Cao&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &amp;lt;g6cip3$r6&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Also, I don't know if your Matlab command window still &lt;br&gt;
&amp;gt; opens up. Another file to look into is matlabrc.m, which &lt;br&gt;
&amp;gt; is related to the Matlab startup.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;g6cidb$pbc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; You might also check pathdef.m to see if there is any &lt;br&gt;
&amp;gt; &amp;gt; corruption.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &quot;Yi Cao&quot; &amp;lt;y.cao@cranfield.ac.uk&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g6ce32&lt;br&gt;
&amp;gt; &amp;gt; $a86$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; my Matlab reports an error at startup, &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;[Fatal Error] :-1:-1: Premature end of file.&quot;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I have removed user defined startup.m file. But the &lt;br&gt;
&amp;gt; &amp;gt; error &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; still comes up. Anyone knows how to debug such an &lt;br&gt;
&amp;gt; error?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Thank for help.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Yi Cao&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Fri, 25 Jul 2008 14:50:18 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445481</link>
      <author>Fangjun Jiang</author>
      <description>Is your Matlab command window still up? Would lasterr() &lt;br&gt;
provide some extra info? Otherwise, I have no other ideas. &lt;br&gt;
The error seems pretty serious. Do you recall anything you &lt;br&gt;
did recently that could corrupt some files related to &lt;br&gt;
Matlab?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Yi Cao&quot; &amp;lt;y.cao@cranfield.ac.uk&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g6cnpq$hlp$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Thanks for reply. I have checked all files in the &lt;br&gt;
&amp;gt; toolbox\local folder including pathdef.m and matlabrc.m. &lt;br&gt;
&amp;gt; Nothing is wrong there. Any other place I should check?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yi Cao&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &amp;lt;g6cip3$r6&lt;br&gt;
&amp;gt; $1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Also, I don't know if your Matlab command window still &lt;br&gt;
&amp;gt; &amp;gt; opens up. Another file to look into is matlabrc.m, &lt;br&gt;
which &lt;br&gt;
&amp;gt; &amp;gt; is related to the Matlab startup.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;g6cidb$pbc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; You might also check pathdef.m to see if there is &lt;br&gt;
any &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; corruption.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Yi Cao&quot; &amp;lt;y.cao@cranfield.ac.uk&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;g6ce32&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; $a86$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; my Matlab reports an error at startup, &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &quot;[Fatal Error] :-1:-1: Premature end of file.&quot;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I have removed user defined startup.m file. But &lt;br&gt;
the &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; error &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; still comes up. Anyone knows how to debug such an &lt;br&gt;
&amp;gt; &amp;gt; error?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thank for help.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Yi Cao&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Fri, 25 Jul 2008 16:32:02 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445496</link>
      <author>Yi Cao</author>
      <description>&quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &amp;lt;g6cp7a$bp0&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Is your Matlab command window still up? Would lasterr() &lt;br&gt;
&amp;gt; provide some extra info? Otherwise, I have no other &lt;br&gt;
ideas. &lt;br&gt;
&amp;gt; The error seems pretty serious. Do you recall anything &lt;br&gt;
you &lt;br&gt;
&amp;gt; did recently that could corrupt some files related to &lt;br&gt;
&amp;gt; Matlab?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Yes, the command window still up, but lasterr does not give &lt;br&gt;
any information except ''.&lt;br&gt;
&lt;br&gt;
I managed to make a breakpoint in matlabrc.m. But the error &lt;br&gt;
already happens before the matlabrc. Do you know what is &lt;br&gt;
executed before matlabrc?&lt;br&gt;
&lt;br&gt;
I also tried to search the string ':-1:-1' using wingrep &lt;br&gt;
for all *.m files in the disk. But I cannot find any file.&lt;br&gt;
Any othe ideas?&lt;br&gt;
&lt;br&gt;
Yi</description>
    </item>
    <item>
      <pubDate>Fri, 25 Jul 2008 17:14:06 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445506</link>
      <author>Fangjun Jiang</author>
      <description>The other thing to check might be the license.dat. But I &lt;br&gt;
don't think there is much lead on that.&lt;br&gt;
&lt;br&gt;
Is there anything that you can think of that might leads &lt;br&gt;
to this fatal error, something you did on your computer &lt;br&gt;
system, files, install/uninstall?&lt;br&gt;
&lt;br&gt;
I did a search on the Mathworks support &lt;br&gt;
website. &quot;Premature end of file&quot; leads to an article about &lt;br&gt;
QuickTime. I don't know if it is anything related.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Yi Cao&quot; &amp;lt;y.cao@cranfield.ac.uk&amp;gt; wrote in message &amp;lt;g6cv61&lt;br&gt;
$s0m$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &amp;lt;g6cp7a$bp0&lt;br&gt;
&amp;gt; $1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Is your Matlab command window still up? Would lasterr&lt;br&gt;
() &lt;br&gt;
&amp;gt; &amp;gt; provide some extra info? Otherwise, I have no other &lt;br&gt;
&amp;gt; ideas. &lt;br&gt;
&amp;gt; &amp;gt; The error seems pretty serious. Do you recall anything &lt;br&gt;
&amp;gt; you &lt;br&gt;
&amp;gt; &amp;gt; did recently that could corrupt some files related to &lt;br&gt;
&amp;gt; &amp;gt; Matlab?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yes, the command window still up, but lasterr does not &lt;br&gt;
give &lt;br&gt;
&amp;gt; any information except ''.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I managed to make a breakpoint in matlabrc.m. But the &lt;br&gt;
error &lt;br&gt;
&amp;gt; already happens before the matlabrc. Do you know what is &lt;br&gt;
&amp;gt; executed before matlabrc?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I also tried to search the string ':-1:-1' using wingrep &lt;br&gt;
&amp;gt; for all *.m files in the disk. But I cannot find any &lt;br&gt;
file.&lt;br&gt;
&amp;gt; Any othe ideas?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yi</description>
    </item>
    <item>
      <pubDate>Fri, 25 Jul 2008 17:25:04 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445509</link>
      <author>Fangjun Jiang</author>
      <description>Interesting. I googled &quot;Fatal error premature end of file&quot; &lt;br&gt;
and got a few leads related to Java and XML. You might &lt;br&gt;
want to do the same and see if anything rings a bell.</description>
    </item>
    <item>
      <pubDate>Fri, 25 Jul 2008 23:24:05 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#445564</link>
      <author>Yi Cao</author>
      <description>&quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &amp;lt;g6d29g$9c1&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Interesting. I googled &quot;Fatal error premature end of &lt;br&gt;
file&quot; &lt;br&gt;
&amp;gt; and got a few leads related to Java and XML. You might &lt;br&gt;
&amp;gt; want to do the same and see if anything rings a bell.&lt;br&gt;
&lt;br&gt;
The only thing I can think about is that I quited matlab &lt;br&gt;
when a m-file was not completed some days ago. But, this &lt;br&gt;
error repeatedly comes up even I have completed the file. &lt;br&gt;
If the error is related to this file, then I think this is &lt;br&gt;
a bug related to mlint, which uses java virtual machine.&lt;br&gt;
&lt;br&gt;
Yi</description>
    </item>
    <item>
      <pubDate>Wed, 12 Aug 2009 18:39:03 -0400</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#672613</link>
      <author>Haihong Zhao</author>
      <description>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. &lt;br&gt;
Don't know how to get rid of this message. Any ideas?&lt;br&gt;
&lt;br&gt;
&quot;Yi Cao&quot; &amp;lt;y.cao@cranfield.ac.uk&amp;gt; wrote in message &amp;lt;g6dnal$365$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Fangjun Jiang&quot; &amp;lt;f@j.com&amp;gt; wrote in message &amp;lt;g6d29g$9c1&lt;br&gt;
&amp;gt; $1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Interesting. I googled &quot;Fatal error premature end of &lt;br&gt;
&amp;gt; file&quot; &lt;br&gt;
&amp;gt; &amp;gt; and got a few leads related to Java and XML. You might &lt;br&gt;
&amp;gt; &amp;gt; want to do the same and see if anything rings a bell.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The only thing I can think about is that I quited matlab &lt;br&gt;
&amp;gt; when a m-file was not completed some days ago. But, this &lt;br&gt;
&amp;gt; error repeatedly comes up even I have completed the file. &lt;br&gt;
&amp;gt; If the error is related to this file, then I think this is &lt;br&gt;
&amp;gt; a bug related to mlint, which uses java virtual machine.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Yi</description>
    </item>
    <item>
      <pubDate>Sat, 14 Nov 2009 17:47:01 -0500</pubDate>
      <title>Re: debug startup error</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/173246#694778</link>
      <author>Edmund </author>
      <description>I had the same problem, but solved it using the solution in the link usefully referenced by fong ming hooi (&lt;a href=&quot;http://www.mathworks.de/matlabcentral/newsreader/view_thread/242579).&quot;&gt;http://www.mathworks.de/matlabcentral/newsreader/view_thread/242579).&lt;/a&gt; Specifically &lt;a href=&quot;http://www.mathworks.co.kr/support/solutions/en/data/1-63Z0WN/index.html?product=ML&amp;solution=1-63Z0WN&quot;&gt;http://www.mathworks.co.kr/support/solutions/en/data/1-63Z0WN/index.html?product=ML&amp;solution=1-63Z0WN&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

