简体   繁体   English

一段时间后Rterm.exe崩溃

[英]Rterm.exe Crashes after some time

I've written a R-script using the tidyquant (and therefore dplyr Version: 0.7.5) way of data handling. 我已经使用tidyquant (以及dplyr版本:0.7.5)数据处理方式编写了R脚本。 My script loads about 1000 ( num_etry ) entries from a HANA DB, aggregates them into a bunch of ts , fills missing values, computes the seasonal component of the data and writes it back into the HABA DB. 我的脚本从HANA数据库中加载了约1000( num_etry )个条目,将它们聚合为一堆ts ,填充缺失值,计算数据的季节性成分并将其写回到HABA DB中。 Something similar to https://cran.rstudio.com/web/packages/sweep/vignettes/SW01_Forecasting_Time_Series_Groups.html . 类似于https://cran.rstudio.com/web/packages/sweep/vignettes/SW01_Forecasting_Time_Series_Groups.html Since the code works only with the given Database and is from work (Copyright and data security and stuff) I can't produce a MWE (sorry). 由于该代码仅适用于给定的数据库,并且是工作中的(版权,数据安全性和内容),因此无法生成MWE(对不起)。

Running this script in Rstudio leads to an "R Session Abborted" error. 在Rstudio中运行此脚本会导致“ R Session Abborted”错误。
Running it within the Rgui leads to the RGui just vanishing from the screen. 在Rgui中运行它会导致RGui从屏幕上消失。
Running it within the R.exe produces at least an Windows error log entry: 在R.exe中运行它至少会产生Windows错误日志条目:

    <EventData>
      <Data>Rterm.exe</Data> 
      <Data>3.43.8260.0</Data> 
      <Data>5a27b6f6</Data> 
      <Data>R.dll</Data>
      <Data>3.43.8260.0</Data> 
      <Data>5a27b6ea</Data> 
      <Data>c0000094</Data> 
      <Data>00000000000c1ea6</Data> 
      <Data>2228</Data> 
      <Data>01d42e352023186a</Data> 
      <Data>C:\Users\Public\R-3.4.3\bin\x64\Rterm.exe</Data> 
      <Data>C:\Users\Public\R-3.4.3\bin\x64\R.dll</Data> 
      <Data>be0ec2de-9b19-11e8-aad7-d4bed926ba7c</Data> 
    </EventData>

At first I thought of it as a "too little memory" kind of issue (have a look at Using R with tidyquant and massiv data ) but no matter how big or small I make the num_etry var the interpreter itself crashes. 最初,我认为这是“内存太少”的问题(请参阅将R与tidyquant和massiv数据一起使用 ),但是无论我将num_etry var大小num_etry ,解释器本身都会崩溃。 With smaller values it just takes longer (leaking memory within dplyr?). 较小的值将花费更长的时间(在dplyr中释放内存?)。 The hard part is that the script sometimes takes several hours before crashing. 困难的部分是脚本有时需要几个小时才能崩溃。 Of course I can restart the script manually, but this is a rather dull procedure and there is no way I can run the script over the weekend. 当然,我可以手动重新启动脚本,但这是一个相当乏味的过程,并且无法在周末运行脚本。 My R-script is located on an network drive, maybe this is the cause? 我的R脚本位于网络驱动器上,这可能是原因吗?

At the moment I am at a loss at how to make my script work. 目前,我对如何使脚本工作不知所措。

Do you have any idea, hint, anything to help me out? 您有什么主意,暗示可以帮助我吗?

For Compatibility reason I used R in the 3.4.3 version. 出于兼容性原因,我在3.4.3版本中使用了R。 Now I'm using the newer 3.5.1 version, which works quite fine. 现在,我正在使用较新的3.5.1版本,该版本效果很好。 So apparently there was some kind of internal issue that got fixed now. 因此,显然现在已经解决了某种内部问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM