Thank you very much.

Memory problem or heat (of CPU?) is the main suspect here for me. But how
is it that 2.14.1 can run it but others can not I dont know (maybe some
mechanisms that prevent memory problem in 2.14.1 are not working in the
latest versions. One thing for sure is that the speed of loops are really
higher in 2.15 and the results as I said are more valid for me).

I did use divide and conquer and it think the optimization part with
nlminb() is the main suspect here (the code does 28 nlminb() in each loop)
but again how is it that it does not work sometimes is really a mystery to
me.

I did try running the code on different machines (32 and 64 bit windows 7
with 4GB of RAM mainly CORE2DUO and CORE i5) but all of them had crashes at
random parts.

I will continue to post my observations to the group along with a smaller
reproducible code and the dataset.

Thank you

EJ


On Sun, Jun 3, 2012 at 3:17 PM, peter dalgaard <[email protected]> wrote:

>
> On Jun 3, 2012, at 07:40 , Ebrahim Jahanshiri wrote:
>
> > Dear list,
> >
> > My code runs on 2.14.1 smoothly (with no error) but makes R crash on
> 2.14.2
> > and 2.15.0 with the usual windows message about "R for windows GUI
> > front-end has stopped working..." and as such I dont have any access to R
> > to get any error or warning message (if any). It crashes on random parts
> of
> > the code any time that I run it.
> > The code consists of EDA and spatial regression and various loops
> > and optimizations. The goal of the code is to perform a complete analysis
> > on various datasets.
> > Please take a look at the code here :
> >
> https://sites.google.com/site/geosciej/Home/STAR_ter1.R?attredirects=0&d=1
>
> You are not likely to find people willing to debug 15553 lines of code for
> you, and they are certainly not going to do it "by eye", without the
> datasets!
>
> One thing that jumps out is that you start off by loading five external
> packages, either of which might be the true owner of the problem. Even if
> the actual crash hits in the stats.dll, the underlying issue could well be
> memory corruption occurring some time earlier.
>
> Things to try:
>
> Run under Rterm in a command window instead of Rgui. That should at least
> tell you how far you got before the crash, maybe even a proper traceback.
>
> Carefully try disabling parts of the code until the issue goes away. The
> last item removed might hold the clue. If you can cut it down to something
> small(-ish) and reproducible, people might be in a better position to help
> you.
>
> Is it really a random crash, or does the crash point move every time you
> change the code slightly? If the former, you might have physical computer
> problems or you might be running close to your memory limit.
>
> -Peter D.
>
> >
> > It seems that the results that comes out of 2.15.0 is more valid for my
> > work.
> >
> > I cant think of anything that makes the code crash on the latest
> versions.
> >
> > Here is the error message from windows:
> >
> >  Problem Event Name: APPCRASH
> >  Application Name: Rgui.exe
> >  Application Version: 2.150.58871.0
> >  Application Timestamp: 4f75a0ca
> >  Fault Module Name: stats.dll
> >  Fault Module Version: 2.150.58871.0
> >  Fault Module Timestamp: 4f75a1c9
> >  Exception Code: c0000005
> >  Exception Offset: 000237c5
> >  OS Version: 6.1.7601.2.1.0.256.48
> >  Locale ID: 1033
> >  Additional Information 1: 0a9e
> >  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
> >  Additional Information 3: 0a9e
> >  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
> >
> >
> >
> > I appreciate your help,
> >
> > Thank you
> > Ebrahim Jahanshiri
> >
> >       [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [email protected] mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> --
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Email: [email protected]  Priv: [email protected]
>
>
>
>
>
>
>
>
>

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to