Pages: [1]
  Print  
Author Topic: R error crashes RM  (Read 388 times)
tennenrishin
Full Member
***
Posts: 174


WWW
« on: August 05, 2013, 07:04:19 PM »

In R,
Code:
grep('\d','1')
results in
Error: '\d' is an unrecognized escape in character string starting "\d"
(because it should have been '\\d')

But in RM
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.3.008">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="5.3.008" expanded="true" name="Process">
    <process expanded="true">
      <operator activated="true" class="r:execute_script_r" compatibility="5.3.000" expanded="true" height="60" name="pushChart" width="90" x="313" y="75">
        <parameter key="script" value="grep('\d','1')"/>
        <enumeration key="inputs"/>
        <list key="results"/>
      </operator>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
    </process>
  </operator>
</process>
causes an abrupt termination of RM, without any prompts or messages.
« Last Edit: August 05, 2013, 07:06:29 PM by tennenrishin » Logged
Nils
Administrator
Sr. Member
*****
Posts: 412


« Reply #1 on: August 07, 2013, 05:19:32 PM »

Hi,

I've had a look into this and it seems like we can't do anything about it The library we are using creates a JRI session to R.
When providing the command you've posted this session even crashes the Java Runtime Environment:

Code:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (os_windows_x86.cpp:149), pid=10952, tid=10904
#  guarantee(result == EXCEPTION_CONTINUE_EXECUTION) failed: Unexpected result from topLevelExceptionFilter
#
# JRE version: 7.0_07-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.3-b01 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\nwoehler\workspace\RapidMiner\hs_err_pid10952.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

I'm going to file an issue for this, but probably there is no easy fix for this.

Best,
Nils
Logged

Please add [SOLVED] to the topic title when your problem has been solved! (do so by editing the first post in the thread and modifying the title)
Pages: [1]
  Print  
 
Jump to: