Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generated by method quit in rails app #7

Open
rami85 opened this issue Oct 9, 2012 · 3 comments
Open

Error generated by method quit in rails app #7

rami85 opened this issue Oct 9, 2012 · 3 comments

Comments

@rami85
Copy link

rami85 commented Oct 9, 2012

in a controller's method, I have this (like a script in ruby):


@r = RinRuby.new(true,false)
@r.assign "name", name

begin
@r.eval "source("public/rscripts/e2_p1m1_Binaria_NN.R")"
@tatt = @r.pull "tatt"

rescue Exception => e

  LOGGER.debug "#{e.class}: #{e.message}"

end

@r.quit # free R


note:the script in R is obviously correct and it returns some variables and a barplot.

My problem is the @r.quit.

If I don't close conection between Ruby an R, I have a process called Rterm.exe, that seems never finish and is imposible open the pdf with the barplot. (In client,however, the html shows the numeric variables correctly).

If I close the conection with the method @r.quit. the process Rterm.exe seems finish correctly but my server throws a exception "Errno::ECONNRESET" and on screen appears a message like "We're sorry, but something went wrong."

I don't know if the method "quit" close another conection or thread and this is the reason of my problem...

@dometto
Copy link

dometto commented Feb 13, 2021

Having the same issue using Sinatra instead of Rails. Any tips, @clbustos?

@dometto
Copy link

dometto commented Feb 13, 2021

It looks like fixes to this repo meant to solve this problem have never been released on rubygems. I understand if the maintainers have little time for this repo anymore, but cutting a new gem release would be very much appreciated, @clbustos or anyone else!

@dometto
Copy link

dometto commented Feb 14, 2021

cc @fenrir-naru

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants