Skip to content
Welcome to Spicy Pixel Answers, where you can ask questions and receive answers from the support team and other members of the community.

Does the Concurrency Kit require Unity Pro?

0 votes
Hello. I liked spicy pixel and I think will be useful in my current project but seems like Spicy Pixel doesn't work in Unity Free. I'm using Unity 4.5.5f1 on Windows 7. I tested the sample scene without changes and my result is the following: when I click play in Unity Editor it works nice but if I build the project I get the following error:

 

"Profiler is only supported with Pro license Missing Method Exception: Method not found. 'System.Threading.ThreadPool.UnsafeQueueUserWorkItem"

 

And does not show the expected output.
asked Oct 29, 2014 in Concurrency Kit by abraao (150 points)
edited Oct 29, 2014 by admin

1 Answer

0 votes
 
Best answer
Thank you for reporting this!

The notice you are seeing regarding the profiler and pro license pertains to a setting you have configured in Unity and is unrelated to the missing method error you received.

Please see this page for tips on how you may be able to get the profiler message to go away:

http://answers.unity3d.com/questions/331826/avoid-profiler-is-only-supported-in-unity-pro-log.html

Regarding the missing method error, if you select the error can you retrieve and send the full stack trace to me?

In the meantime, you can set your project to the .NET 2.0 profile since that method may not be available on 2.0 subset, micro, or webplayer profiles. See API compatibility level:

https://docs.unity3d.com/353/Documentation/Components/class-PlayerSettings.html
answered Oct 29, 2014 by admin (2,500 points)
selected Oct 29, 2014 by admin
Thank you! You answered really fast!

I follow your answer and I get no errors anymore.

The stack trace:
MissingMethodException: Method not found:
'System.Threading.ThreadPool.UnsafeQueueUserWorkItem'.
> System.Threading.Tasks.Task.Schedule()
System.Threading.Tasks.TaskContinuation.Execute()
System.Threading.Tasks.Task.ContinueWith(IContinuation continuation)
System.Threading.Tasks.Task.ContinueWithCore (System.Threading.Tasks.Task continuation, TaskContinuationOptions options, System.Threading.Tasks.TaskScheduler scheduler)
System.Threading.Tasks.Task.ContinueWith (System.Threading.Tasks.TaskActionInvoker invoker, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, System.Threading.Tasks.TaskScheduler scheduler)
System.Threading.Tasks.Task.ContinueWith (System.Action`1 continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, System.Threading.Tasks.TaskScheduler scheduler)
System.Threading.Tasks.Task.ContinueWith (System.Action`1 continuationAction, TaskContinuationOptions continuationOptions)
System.Threading.Tasks.Task.ContinueWith (System.Action`1 continuationAction)
SpicyPixel.Threading.ConcurrencyKitSample RunWithConcurrentBehaviourSchedulaer () (at C:/Users/Abraao/Documents/SpicyPixelTest/Assets/Spicy Pixel/Kits/ConcurrencyKit/Samples/ConcurrencyKitSample.cs:28)
SpicyPixel.Threading.ConcurrencyKitSample.Start() (at C:/Users/Abraao/Documents/SpicyPixelTest/Assets/Spicy Pixel/Kits/ConcurrencyKit/Samples/ConcurrencyKitSample.cs:19)
Wonderful!
Thanks for also providing the stack trace. In a future update I can switch to the regular ThreadPool.QueueUserWorkItem which may enable support for 2.0 subset.
Missing method exception in build
...