Search Issue Tracker

Fixed in Unity 4.5.5

Votes

0

Found in

4.5.4f1

Issue ID

636062

Regression

No

Using a generic method that is unavailable in the .NET for Windows Phone 8 causes the build to fail

WP8

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 1Crash, freeze, data loss, work stops

To reproduce:
1. Open repro.unitypackage
2. It contains a scene and a script that calls System.Array.ConvertAll
3. Build the scene for wp8
4. Build fails with: Error building Player: Exception: Failed to run reference rewriter with command "--target="Temp/StagingArea\Assembly-CSharp.dll" --framework="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0,C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Libraries,C:\Program Files (x86)\Unity4.5.4p2\Editor\Data\PlaybackEngines\WP8Support\Players\ARM\master" --platform="C:\Program Files (x86)\Windows Phone Kits\8.0\Windows MetaData\Windows.winmd" --support="Temp\StagingArea\WinRTLegacy.dll" --supportpartialns=Unity.Partial --winmdrefs="" --system=System --dbg=pdb --alt=System.Net;System.Net.Sockets,System.Net;System.Xml.Serialization;System.ComponentModel,System.Windows;System.Threading,mscorlib". [Temp/StagingArea\Assembly-CSharp.dll]
Error: method `!!1[] System.Array::ConvertAll<UnityEngine.Vector3,UnityEngine.Vector2>(!!0[],System.Converter`2<!!0,!!1>)` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at System.Void NewBehaviourScript::Start().
Catastrophic failure while running rrw: System.NullReferenceException: Object reference not set to an instance of an object.
at Unity.ReferenceRewriter.RewriteMethodSpecMemberRefs.Visit(MethodDefinition method)
at Unity.ReferenceRewriter.MethodDefinitionDispatcher.Dispatch(TypeDefinition type)
at Unity.ReferenceRewriter.MethodDefinitionDispatcher.Dispatch()
at Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context)
at Unity.ReferenceRewriter.Program.Main(String[] args)

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.