Ebrahim Jahanshiri
2012-Jun-03 05:40 UTC
[R] R 2.15.0 and 2.14.2 crash on the same code that runs on 2.14.1
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 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]]
peter dalgaard
2012-Jun-03 07:17 UTC
[R] R 2.15.0 and 2.14.2 crash on the same code that runs on 2.14.1
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=1You 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]] > > ______________________________________________ > R-help at r-project.org 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: pd.mes at cbs.dk Priv: PDalgd at gmail.com