From 2b8662cf0ce55bddd5fc70eeef0f76a6e05844c0 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 24 Jul 2013 10:06:02 +0200 Subject: [PATCH] Temporary workarond for an upstream bug in Moo which causes failure when running with threads. #1330 --- lib/Slic3r.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index aac355b363..ad6157ec11 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -19,6 +19,10 @@ our $have_threads; BEGIN { use Config; $have_threads = $Config{useithreads} && eval "use threads; use threads::shared; use Thread::Queue; 1"; + + ### temporarily disable threads if using the broken Moo version + use Moo; + $have_threads = 0 if $Moo::VERSION == 1.003000; } warn "Running Slic3r under Perl >= 5.16 is not supported nor recommended\n"