Search Issue Tracker
Duplicate
Votes
4
Found in
4.5.1p2
Issue ID
615659
Regression
Yes
Failed to run serialization weaver when building for WP8
To reproduce:
1. Import attached repro.unitypackage. It contains some scripts
2. Try to build for WP8 - an error is thrown:
Error building Player: Exception: Failed to run serialization weaver with command line "Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" -pdb -verbose -unity-engine=Temp\StagingArea\Data\Managed\UnityEngine.dll "Temp\StagingArea\TempSerializationWeaver"
...
Something in the scripts is preventing Unity from building for WP8.
Builds fine for standalone
Regression since 4.5.0b5
Comments (5)
-
Ngo Minh Thai
Nov 30, 2015 14:56
I have the same issue on 5.2.3f1
UnityException: Failed to run serialization weaver with command "Temp\StagingArea\Data\Managed\GFramework.dll" -pdb -verbose -unity-engine="Temp\StagingArea\Data\Managed\UnityEngine.dll" "Temp\StagingArea\TempSerializationWeaver" -additionalAssemblyPath="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0".
Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.pdb
Weaving assembly D:\Project\Homework\PokaDeluxeWP8\Temp\StagingArea\Data\Managed\GFramework.dll
No symbols for Temp\StagingArea\Data\Managed\GFramework.dll
+ GFramework.Config.ConfigManagerBase
+ GFramework.Json.JsonException
+ GFramework.Json.JsonWriterException
+ GFramework.Json.JsonReaderException
+ GFramework.Json.JsonSerializationException
+ GFramework.Json.Schema.JsonSchemaException
Will export symbols of pdb format
Mono.Cecil.ResolutionException: Failed to resolve System.Runtime.Serialization.Formatters.FormatterAssemblyStyle
at Mono.Cecil.Mixin.CheckedResolve(TypeReference self)
at Mono.Cecil.MetadataBuilder.GetConstantType(TypeReference constant_type, Object constant)
at Mono.Cecil.MetadataBuilder.AddConstant(IConstantProvider owner, TypeReference type)
at Mono.Cecil.MetadataBuilder.AddField(FieldDefinition field)
at Mono.Cecil.MetadataBuilder.AddFields(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddTypeDefs()
at Mono.Cecil.MetadataBuilder.BuildTypes()
at Mono.Cecil.MetadataBuilder.BuildModule()
at Mono.Cecil.ModuleWriter.<BuildMetadata>b__0(MetadataBuilder builder, MetadataReader _)
at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
at Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters)
at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
at usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition)
at usw.Weaver.Weave()
at usw.Program.RunProgram(ConversionOptions options)
at usw.Program.Main(String[] args)PostProcessWinRT.RunSerializationWeaver () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:411)
PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:115)
UnityEditor.WP8.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/WP8Player/Extensions/Managed/ExtensionModule.cs:72)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()Please help me to fix it
-
KevinCodes4Food
Aug 21, 2014 21:51
I managed to fix the issue, which I encountered on 4.5.3f3 per my comment below.
First, I tried building for WP8, and encounter an error due to a use of StreamReader with a string constructor, which is not supported for the platform. That gave me an idea...
I switched back to W8, and my Player Settings -> Publishing Settings -> Compilation Settings were either "None" or "Use Net Core Partially" due to issues I had with a plug-in earlier in testing. Setting this field to "Use Net Core" and building revealed a bunch of errors with code using incompatible interfaces with Windows Store .NET Framework. These included using XmlDocument.SelectNodes() and System.Array.AsReadOnly().
And the error is gone!
So, with the elimination of the 3 unsupported Windows Phone and Windows 8 interfaces, the problem was eliminated. It would be nice if these errors could be displayed during editor Unity runs when the platform is selected, rather than just at player build time, but at least this cleared the error.
-
KevinCodes4Food
Aug 21, 2014 17:46
I am encountering this issue as well building a Windows 8 Store app:
Error building Player: Exception: Failed to run Serialization weaver with cmdline "Temp/StagingArea\Data/Managed\Assembly-CSharp.dll" -pdb -verbose -unity-engine="Temp/StagingArea\Managed/UnityEngine.dll" "Temp/StagingArea\TempSerializationWeaver".[Temp/StagingArea\Data/Managed\Assembly-CSharp.dll]
Symbols will be read from Temp/StagingArea\Managed/UnityEngine.pdbWeaving assembly C:\Development\Unity\Projects\Match3 Candy\Match3 Candy\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll
Symbols will be read from Temp/StagingArea\Data/Managed\Assembly-CSharp.dll.mdb
+ Balloon
+ Bubble
+ CeilingHelper
+ CloudManager
+ FadeOutHelper
+ GUISizeHelper
+ GameManager/Zone
+ GameManager
+ GameOverHelper
+ MusicManager
+ PauseManager
+ RainbowColor
+ ScreenOverlay
+ ShadowText
+ SpikeyBall
+ BlurEffect
+ ColorCorrectionEffect
+ ContrastStretchEffect
+ GlowEffect
+ GrayscaleEffect
+ ImageEffectBase
+ MotionBlur
+ NoiseEffect
+ SSAOEffect
+ SepiaToneEffect
+ TwirlEffect
+ VortexEffect
+ Bird
+ Swarm
+ SwarmCenter
+ CameraBehaviors
+ ScrollingUVs
+ Activate
+ BackButtonSingleton
+ Button
+ ButtonDock/DockedButton
+ ButtonDock
+ ButtonDockOverlay/OverlayCollection
+ ButtonDockOverlay
+ ButtonIn3D
+ CameraFade
+ CameraHelper
+ CinematicController/CinematicScene
+ CinematicController
+ ColliderNotify
+ ColorSwitcher
+ DeactivateColliders
+ Elevator
+ EnergyBar
+ ExitConfirmationOverlay
+ Fade
+ FallingGuiTexture
+ FlashText
+ FollowTarget
+ GameObjectPool
+ GradientBackground
+ GuiLinearIndicator
+ InvertMesh
+ LoadWithIndicator
+ LookAt
+ MoveTo
+ MovementLoop
+ MusicSingleton
+ Oscillate
+ ParticleSystemAutoDestroy
+ PlayAudioOnVisible
+ PooledGameObject
+ PrefabLoader
+ PrefabSelection
+ RemoveStickersTrigger
+ Rotate
+ SceneTransitionManager
+ ScreenScaledQuad
+ ScrollTexture
+ ScrollingText
+ ShakeCamera
+ SplashSceneController
+ StickyParticles
+ Wobble
+ XmlFileManager
+ GoButton
+ LevelButton
+ MapCharacter
+ MapManager
+ SettingsButton
+ Zone
+ BackButton
+ ColumnStructure
+ Column
+ DestroyOnStart
+ DialogController/Character
+ DialogController/Dialog
+ DialogController
+ DialogSceneManager
+ Eater
+ ExitOverlayManager
+ GameBoard
+ GameOperations
+ GamePrefabs
+ LevelStructure
+ LifeManager
+ MainCameraScript
+ Match3GameManager
+ PinchZoom
+ PlayingObject
+ PlayingObjectTouch
+ PowerupButton
+ SoundFxManager
+ SpecialItemFormationScript
+ MonoBehaviorInvoke
+ SpecialPlayingObject
+ SwapSpecialObjects
+ SwapTwoObjects
+ TalkBubble
+ TitleButtonHelper
+ TouchSlide
+ iTween
+ MoreGamesButton
+ CameraController
+ UniRateEventHandler
+ UniRateGUIScript
+ UniRate
Will export symbols of pdb format
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
at Mono.Cecil.Mdb.MdbReader.ReadLocalVariables(MethodEntry entry, MethodSymbols symbols)
at Mono.Cecil.Mdb.MdbReader.Read(MethodSymbols symbols)
at Mono.Cecil.Cil.CodeReader.PatchRawMethodBody(MethodDefinition method, CodeWriter writer, MethodSymbols& symbols)
at Mono.Cecil.Cil.CodeWriter.WriteUnresolvedMethodBody(MethodDefinition method)
at Mono.Cecil.Cil.CodeWriter.WriteMethodBody(MethodDefinition method)
at Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method)
at Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddNestedTypes(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
at Mono.Cecil.MetadataBuilder.AddTypeDefs()
at Mono.Cecil.MetadataBuilder.BuildTypes()
at Mono.Cecil.MetadataBuilder.BuildModule()
at Mono.Cecil.ModuleWriter.<BuildMetadata>b__0(MetadataBuilder builder, MetadataReader _)
at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
at Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters)
at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
at usw.Weaver.Weave()
at usw.Program.RunProgram(ConversionOptions options)
at usw.Program.Main(String[] args)
-
YPD
Jul 17, 2014 08:09
I have same issue.
Error building Player: Win32Exception: ApplicationName='C:/Program Files (x86)/Unity/Data/PlaybackEngines/WP8Support/Tools/SerializationWeaver/SerializationWeaver.exe', CommandLine='"Temp/StagingArea/Data/Managed\Assembly-CSharp-firstpass.dll" -pdb -verbose -unity-engine=Temp/StagingArea/Data/Managed/UnityEngine.dll "Temp/StagingArea/TempSerializationWeaver"', CurrentDirectory='' -
DMTSource
Jun 27, 2014 17:11
I am unable to port my games to Windows Phone 8 due to this bug which is really unfortunate as the deadline is fast approaching for the Windows incentive programs.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
This is a duplicate of issue #614794