Search Issue Tracker

Fixed in Unity 2017.2

Votes

2

Found in

2017.2.0b2

Issue ID

927848

Regression

Yes

Reference rewriter fails in 2017.2 with analytics enabled

Windows Store Apps

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 1Crash or major loss of functionality

Reference rewriter fails in 2017.2 with analytics enabled:

UnityException: Failed to run reference rewriter with command --target="Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll" --additionalreferences="Temp\StagingArea\Data\Managed" --platform="C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade\Windows.winmd" --dbg=pdb --framework="Temp\StagingArea\Data\Managed" --alt=Microsoft.Win32.SafeHandles,mscorlib;System,mscorlib;System,System;System,System.Core;System.CodeDom.Compiler,System;System.Collections,mscorlib;System.Collections.Generic,mscorlib;System.Collections.Generic,System;System.Collections.Generic,System.Core;System.Collections.ObjectModel,mscorlib;System.Collections.Specialized,System;System.ComponentModel,System;System.Data,System.Data;System.Data.Common,System.Data;System.Diagnostics,mscorlib;System.Diagnostics,System;System.Diagnostics.CodeAnalysis,mscorlib;System.Globalization,mscorlib;System.IO,mscorlib;System.IO.Compression,System;System.IO.IsolatedStorage,mscorlib;System.Linq,System.Core;System.Linq.Expressions,System.Core;System.Net,System;System.Net.NetworkInformation,System;System.Net.Security,System;System.Net.Sockets,System;System.Reflection,mscorlib;System.Reflection.Emit,mscorlib;System.Resources,mscorlib;System.Runtime,mscorlib;System.Runtime.CompilerServices,mscorlib;System.Runtime.CompilerServices,System.Core;System.Runtime.InteropServices,mscorlib;System.Runtime.InteropServices.ComTypes,mscorlib;System.Runtime.Serialization,mscorlib;System.Runtime.Serialization,System.Runtime.Serialization;System.Runtime.Serialization.Json,System.ServiceModel.Web;System.Security,mscorlib;System.Security.Authentication,System;System.Security.Principal,mscorlib;System.ServiceModel,System.ServiceModel;System.ServiceModel.Channels,System.ServiceModel;System.ServiceModel.Description,System.ServiceModel;System.ServiceModel.Dispatcher,System.ServiceModel;System.ServiceModel.Security,System.ServiceModel;System.Text,mscorlib;System.Text.RegularExpressions,System;System.Threading,mscorlib;System.Threading,System;System.Threading,System.Core;System.Xml,System.Runtime.Serialization;System.Xml,System.Xml;System.Xml.Linq,System.Xml.Linq;System.Xml.Schema,System.Xml;System.Xml.Serialization,System.Xml --ignore=System.IConvertible,mscorlib.
Catastrophic failure while running rrw: System.UnauthorizedAccessException: Access to the path 'Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters) in c:\u\cecil\Mono.Cecil\ModuleDefinition.cs:line 1159
at Unity.ReferenceRewriter.Program.Main(String[] args)

Comments (3)

  1. 7fd630127a2ccfc75f8abca4e43d6e3b?d=mm

    Tautvydas-Zilys

    Aug 04, 2017 22:00

    @IMMERSIVE do you have System.Data.dll in your project somewhere by any chance?

  2. 87d9a3166bdc3bc3137f0bbecee6bd35?d=mm

    immersive

    Jul 10, 2017 10:20

    If I disable Analytics in 'Services', I still get the same kind of output, but on a different object (System.Data):

    Catastrophic failure while running rrw: System.Exception: Assembly "System.Data" is already registered.
    at Unity.SearchPathAssemblyResolver.AddAssembly(AssemblyDefinition assembly)
    at Unity.ReferenceRewriter.RewriteContext.For(String targetModule, DebugSymbolFormat symbolFormat, String supportModule, String supportModulePartialNamespace, String[] frameworkPaths, String projectLockFile, String[] additionalReferences, String platformPath, ICollection`1 strongNamedReferences, ICollection`1 winmdReferences, IDictionary`2 alt, IDictionary`2 ignore)
    at Unity.ReferenceRewriter.Program.Main(String[] ar

  3. 87d9a3166bdc3bc3137f0bbecee6bd35?d=mm

    immersive

    Jul 10, 2017 10:10

    I have the same issue :(

All about bugs

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