rdotsch / rcicr

Reverse correlation image classification using R
9 stars 11 forks source link

Warning messages: closing unused connections #50

Open irenetorrubia opened 7 years ago

irenetorrubia commented 7 years ago

It's me again. The code did run*, but returned the following warning:

There were 12 warnings (use warnings() to see them)

warnings() Warning messages: 1: closing unused connection 14 (<-PC:11588) 2: closing unused connection 13 (<-PC:11588) 3: closing unused connection 12 (<-PC:11588) 4: closing unused connection 11 (<-PC:11588) 5: closing unused connection 10 (<-PC:11588) 6: closing unused connection 9 (<-PC:11588) 7: closing unused connection 8 (<-PC:11588) 8: closing unused connection 7 (<-PC:11588) 9: closing unused connection 6 (<-PC:11588) 10: closing unused connection 5 (<-PC:11588) 11: closing unused connection 4 (<-PC:11588) 12: closing unused connection 3 (<-PC:11588) There were 12 warnings (use warnings() to see them)

I assume PC:11588 is my computer. I tried to give a quick look to the code to see if there was a syntax element that could lead to this error, but maybe it is called from another function.

Best,

Irene.

*stimuli <- generateStimuli2IFC(base_face_files = list(refimage="RefImage.jpg"), n_trials = 10, img_size = 512, stimulus_path = "./stimuli", label = "rcic", use_same_parameters = TRUE, seed = 1, maximize_baseimage_contrast = F, noise_type = "sinusoid", nscales = 5, sigma = 25, returnAsList = TRUE)

rdotsch commented 7 years ago

This seems to be tied to the parallel processing. Did you get the correct output? In that case I think it's safe to ignore the warnings. Thanks for reporting and keep 'em coming!

aucuparia commented 7 years ago

@rdotsch Correct. I think we would want to hide these messages so as not to confuse users, but it's a low priority issue.

irenetorrubia commented 7 years ago

@rdotsch my apologies, I missed the message. It did yield the correct output.

rdotsch commented 7 years ago

These messages only occur if in an earlier run during the same session R was interrupted before it could terminate the parallel processes (which then keep on running). We should catch these kinds of interruptions and kill the parallel processes.