mljar-supervised icon indicating copy to clipboard operation
mljar-supervised copied to clipboard

crash when trying to multiple mljar's AutoML in parallel

Open yairVanti opened this issue 2 years ago • 2 comments

i am using Dask to parallelize few AutoML jobs (checking multiple scenario's at the same time) i am getting the following error :

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

the following params are used : "total_time_limit": 120,"explain_level":0, "ml_task": "binary_classification", "mode": "Perform", "verbose": 1, "eval_metric": "average_precision", "n_jobs": -1, "random_state": 0

i am using 0.11.2 version quick search showed there is an issue with using matplotlib in parallel tasks, is it used internally in mljar?

yairVanti avatar Jun 22 '22 14:06 yairVanti

solved the problem by adding: matplotlib.use('Agg') as suggested in : https://stackoverflow.com/questions/65068073/error-while-showing-matplotlib-figure-in-flask

yairVanti avatar Jun 22 '22 15:06 yairVanti

correction - is still happens from time to time. need the ability to run multiple scenario's simultaneously .

yairVanti avatar Jun 23 '22 05:06 yairVanti