The dreaded Failed to run serialization weaver

Hi,
I’ve had a working project under Unity 2018.1 PC build fine, so I ported it over to a UWP project as I’m using an Acer headset from the Microsoft Mixed Reality Developer Program.

It would not build initially as it threw up many errors with different asset store packages that were fine under PC build. So I fixed all them. Finally it started to build.
Crashed my machine at one point recompiling shaders (it hit 80 degrees C on a Ryzen 7 1700 OC’d to 3.8ghz).

Finally, it seemed to be going through and then right at the very end…

UnityException: Failed to run serialization weaver with command “-pdb” “-verbose” “-unity-engine=Temp\StagingArea\Data\Managed\UnityEngine.CoreModule.dll” “Temp\StagingArea\TempSerializationWeaver” “-lock=UWP\project.lock.json” “@C:\Users\paul\AppData\Local\Temp\tmp277914ae.tmp” “-additionalAssemblyPath=Temp\StagingArea\Data\Managed”.

sigh tired of fighting this UWP.

Any clues?

ty!

We need a full log for this, it should contain something useful.

Where can I find that?

Click on an error in console, there should be a full log for that command.

ah, right! doh!
I should say this was on a .Net scripting backend, not IL2CPP.

I have finally managed to get successful build using these settings:
Scripting Runtime: Net3.5
Scripting Backend: IL2CPP
API: Net2

I’m using .Net2 as one Asset store dev who provided me a fix told me “Unity has confirmed a major bug with Unity 2018, UWP, and .NET 4.x. You’ll have to use .NET 2.0 until they fix it.”

Anyway, full log from build with .Net as Scripting Backend:

UnityException: Failed to run serialization weaver with command “-pdb” “-verbose” “-unity-engine=Temp\StagingArea\Data\Managed\UnityEngine.CoreModule.dll” “Temp\StagingArea\TempSerializationWeaver” “-lock=UWP\project.lock.json” “@C:\Users\paul\AppData\Local\Temp\tmp277914ae.tmp” “-additionalAssemblyPath=Temp\StagingArea\Data\Managed”.

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.CoreModule.pdb

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TerrainPhysicsModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.TerrainPhysicsModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TextRenderingModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.TextRenderingModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.StyleSheetsModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.StyleSheetsModule.dll

  • UnityEngine.StyleSheets.StyleComplexSelector

  • UnityEngine.StyleSheets.StyleProperty

  • UnityEngine.StyleSheets.StyleRule

  • UnityEngine.StyleSheets.StyleSelector

  • UnityEngine.StyleSheets.StyleSelectorPart

  • UnityEngine.StyleSheets.StyleSheet

  • UnityEngine.StyleSheets.StyleValueHandle

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TerrainModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.TerrainModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UIElementsModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UIElementsModule.dll

  • UnityEngine.Internal.Experimental.UIElements.PanelWrapper

  • UnityEngine.Experimental.UIElements.Slider/SliderValue

  • UnityEngine.Experimental.UIElements.TemplateAsset

  • UnityEngine.Experimental.UIElements.VisualElementAsset

  • UnityEngine.Experimental.UIElements.VisualTreeAsset/UsingEntry

  • UnityEngine.Experimental.UIElements.VisualTreeAsset/SlotDefinition

  • UnityEngine.Experimental.UIElements.VisualTreeAsset/SlotUsageEntry

  • UnityEngine.Experimental.UIElements.VisualTreeAsset

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.TilemapModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.TilemapModule.dll

  • UnityEngine.GridBrushBase

  • UnityEngine.Tilemaps.Tile

  • UnityEngine.Tilemaps.TileBase

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.ScreenCaptureModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.ScreenCaptureModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.SharedInternalsModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.SharedInternalsModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.Physics2DModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.Physics2DModule.dll

  • UnityEngine.ContactFilter2D

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.PhysicsModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.PhysicsModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.SpriteShapeModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.SpriteShapeModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.SpriteMaskModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.SpriteMaskModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UIModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UIModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.VRModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.VRModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.WebModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.WebModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.VehiclesModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.VehiclesModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.VideoModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.VideoModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.WindModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.WindModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.XRModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.XRModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityConnectModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UnityConnectModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestAssetBundleModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestAssetBundleModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UNETModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UNETModule.dll

  • UnityEngine.Networking.ChannelQOS

  • UnityEngine.Networking.ConnectionConfig

  • UnityEngine.Networking.HostTopology

  • UnityEngine.Networking.GlobalConfig

  • UnityEngine.Networking.Match.NetworkMatch

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityAnalyticsModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UnityAnalyticsModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestTextureModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestTextureModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestWWWModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestWWWModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestAudioModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestAudioModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.UnityWebRequestModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.AccessibilityModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.AccessibilityModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.AIModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.AIModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.ARModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.ARModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.AssetBundleModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.AssetBundleModule.dll

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.AnimationModule.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\UnityEngine.AnimationModule.dll

  • UnityEngine.AnimationEvent

  • UnityEngine.StateMachineBehaviour

  • UnityEngine.AnimationClipPair

  • UnityEngine.Animations.ConstraintSource

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\Assembly-UnityScript.dll.mdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\Assembly-UnityScript.dll

  • MouseOrbit

Will export symbols of pdb format

Symbols will be read from Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.pdb

Weaving assembly E:\Unity2018 Projects\VR Groove Pilot PC\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll

  • MA_Bootstrapper

  • MA_DestroyFinishedParticle

  • MA_EnemyOne

  • MA_EnemySpawner

  • MA_GameScene

  • MA_Laser

  • MA_LocalizationUI

  • MA_PlayerControl

  • MA_PlayerSpawnerControl

  • MA_SampleICustomEventReceiver

  • MA_TestUI

  • ListenerFollower

  • TransformFollower

  • AlphaButtonClickMask

  • EventSystemChecker

  • ForcedReset

  • FlightKit.SimplePropellerAnimator

  • AvrsAssets.ImageEffects.AvrsPostEffectsBase

  • AvrsAssets.ImageEffects.AvrsVignetteAndChromaticAberration

  • UnityStandardAssets.Utility.ActivateTrigger

  • UnityStandardAssets.Utility.AutoMobileShaderSwitch/ReplacementDefinition

  • UnityStandardAssets.Utility.AutoMobileShaderSwitch/ReplacementList

  • UnityStandardAssets.Utility.AutoMobileShaderSwitch

  • UnityStandardAssets.Utility.AutoMoveAndRotate/Vector3andSpace

  • UnityStandardAssets.Utility.AutoMoveAndRotate

  • UnityStandardAssets.Utility.CurveControlledBob

  • UnityStandardAssets.Utility.DragRigidbody

  • UnityStandardAssets.Utility.DynamicShadowSettings

  • UnityStandardAssets.Utility.FollowTarget

  • UnityStandardAssets.Utility.FOVKick

  • UnityStandardAssets.Utility.FPSCounter

  • UnityStandardAssets.Utility.LerpControlledBob

  • UnityStandardAssets.Utility.ObjectResetter

  • UnityStandardAssets.Utility.ParticleSystemDestroyer

  • UnityStandardAssets.Utility.PlatformSpecificContent

  • UnityStandardAssets.Utility.SimpleActivatorMenu

  • UnityStandardAssets.Utility.SimpleMouseRotator

  • UnityStandardAssets.Utility.SmoothFollow

  • UnityStandardAssets.Utility.TimedObjectActivator/Entry

  • UnityStandardAssets.Utility.TimedObjectActivator/Entries

  • UnityStandardAssets.Utility.TimedObjectActivator

  • UnityStandardAssets.Utility.TimedObjectDestructor

  • UnityStandardAssets.Utility.WaypointCircuit/WaypointList

  • UnityStandardAssets.Utility.WaypointCircuit

  • UnityStandardAssets.Utility.WaypointProgressTracker

  • UnityStandardAssets.Effects.AfterburnerPhysicsForce

  • UnityStandardAssets.Effects.ExplosionFireAndDebris

  • UnityStandardAssets.Effects.ExplosionPhysicsForce

  • UnityStandardAssets.Effects.Explosive

  • UnityStandardAssets.Effects.ExtinguishableParticleSystem

  • UnityStandardAssets.Effects.FireLight

  • UnityStandardAssets.Effects.Hose

  • UnityStandardAssets.Effects.ParticleSystemMultiplier

  • UnityStandardAssets.Effects.SmokeParticles

  • UnityStandardAssets.Effects.WaterHoseParticles

  • UnityStandardAssets.ImageEffects.Antialiasing

  • UnityStandardAssets.ImageEffects.Bloom

  • UnityStandardAssets.ImageEffects.BloomAndFlares

  • UnityStandardAssets.ImageEffects.BloomOptimized

  • UnityStandardAssets.ImageEffects.Blur

  • UnityStandardAssets.ImageEffects.BlurOptimized

  • UnityStandardAssets.ImageEffects.CameraMotionBlur

  • UnityStandardAssets.ImageEffects.ColorCorrectionCurves

  • UnityStandardAssets.ImageEffects.ColorCorrectionLookup

  • UnityStandardAssets.ImageEffects.ColorCorrectionRamp

  • UnityStandardAssets.ImageEffects.ContrastEnhance

  • UnityStandardAssets.ImageEffects.ContrastStretch

  • UnityStandardAssets.ImageEffects.CreaseShading

  • UnityStandardAssets.ImageEffects.DepthOfField

  • UnityStandardAssets.ImageEffects.DepthOfFieldDeprecated

  • UnityStandardAssets.ImageEffects.EdgeDetection

  • UnityStandardAssets.ImageEffects.Fisheye

  • UnityStandardAssets.ImageEffects.GlobalFog

  • UnityStandardAssets.ImageEffects.Grayscale

  • UnityStandardAssets.ImageEffects.ImageEffectBase

  • UnityStandardAssets.ImageEffects.MotionBlur

  • UnityStandardAssets.ImageEffects.NoiseAndGrain

  • UnityStandardAssets.ImageEffects.NoiseAndScratches

  • UnityStandardAssets.ImageEffects.PostEffectsBase

  • UnityStandardAssets.ImageEffects.PostEffectsHelper

  • UnityStandardAssets.ImageEffects.ScreenOverlay

  • UnityStandardAssets.ImageEffects.ScreenSpaceAmbientObscurance

  • UnityStandardAssets.ImageEffects.ScreenSpaceAmbientOcclusion

  • UnityStandardAssets.ImageEffects.SepiaTone

  • UnityStandardAssets.ImageEffects.SunShafts

  • UnityStandardAssets.ImageEffects.TiltShift

  • UnityStandardAssets.ImageEffects.Tonemapping

  • UnityStandardAssets.ImageEffects.Twirl

  • UnityStandardAssets.ImageEffects.Vortex

  • UnityStandardAssets.CrossPlatformInput.AxisTouchButton

  • UnityStandardAssets.CrossPlatformInput.ButtonHandler

  • UnityStandardAssets.CrossPlatformInput.InputAxisScrollbar

  • UnityStandardAssets.CrossPlatformInput.Joystick

  • UnityStandardAssets.CrossPlatformInput.MobileControlRig

  • UnityStandardAssets.CrossPlatformInput.TiltInput/AxisMapping

  • UnityStandardAssets.CrossPlatformInput.TiltInput

  • UnityStandardAssets.CrossPlatformInput.TouchPad

  • UnityStandardAssets.Vehicles.Car.BrakeLight

  • UnityStandardAssets.Vehicles.Car.CarAIControl

  • UnityStandardAssets.Vehicles.Car.CarAudio

  • UnityStandardAssets.Vehicles.Car.CarController

  • UnityStandardAssets.Vehicles.Car.CarSelfRighting

  • UnityStandardAssets.Vehicles.Car.CarUserControl

  • UnityStandardAssets.Vehicles.Car.Mudguard

  • UnityStandardAssets.Vehicles.Car.SkidTrail

  • UnityStandardAssets.Vehicles.Car.Suspension

  • UnityStandardAssets.Vehicles.Car.WheelEffects

  • UnityStandardAssets.Vehicles.Aeroplane.AeroplaneAiControl

  • UnityStandardAssets.Vehicles.Aeroplane.AeroplaneAudio/AdvancedSetttings

  • UnityStandardAssets.Vehicles.Aeroplane.AeroplaneAudio

  • UnityStandardAssets.Vehicles.Aeroplane.AeroplaneController

  • UnityStandardAssets.Vehicles.Aeroplane.AeroplaneControlSurfaceAnimator/ControlSurface

  • UnityStandardAssets.Vehicles.Aeroplane.AeroplaneControlSurfaceAnimator

  • UnityStandardAssets.Vehicles.Aeroplane.AeroplaneUserControl2Axis

  • UnityStandardAssets.Vehicles.Aeroplane.AeroplaneUserControl4Axis

  • UnityStandardAssets.Vehicles.Aeroplane.JetParticleEffect

  • UnityStandardAssets.Vehicles.Aeroplane.LandingGear

  • UnityStandardAssets.Vehicles.Ball.Ball

  • UnityStandardAssets.Vehicles.Ball.BallUserControl

  • UnityStandardAssets.Characters.ThirdPerson.AICharacterControl

  • UnityStandardAssets.Characters.ThirdPerson.ThirdPersonCharacter

  • UnityStandardAssets.Characters.ThirdPerson.ThirdPersonUserControl

  • UnityStandardAssets.Characters.FirstPerson.FirstPersonController

  • UnityStandardAssets.Characters.FirstPerson.HeadBob

  • UnityStandardAssets.Characters.FirstPers

What are the recommended build settings for Microsoft Store?

Is
Scripting Runtime: Net3.5
Scripting Backend: IL2CPP
API: Net2

what we are limited to or should be able to use them all?

Update:
Unity Dev on Twitter x.com mentioned

“Yeah .NET is troublesome, but it’s not the default and we’re in the process of removing it.”

Just changed to Scripting runtime .Net4 , IL2CPP, and API .Net4 and it’s now built ok as well.

So problem looks resolved.

I’ll move onto the next step of UWP VS build and verification.

Are you using Build&Run from Unity? Because the output still looks truncated.
But yeah, when porting to UWP IL2CPP should be easier, .NET backend is useful when you need something platform specific.

No, using Build with IL2CPP as above.
That was all I could copy from the console.

I finally got Visual Studio to build the project (had to remove substance.dll which was causing the Unity main project to not get loaded) but the .exe won’t run due to two errors:

Groove Pilot.exe - System Error
The code execution cannot proceed because
vccorIib140_app.DLL was not found. Reinstalling the program
may fix this problem.

Groove Pilot.exe - System Error
The code execution cannot proceed because
VCRLlNTIME140 APP.dII was not found. Reinstalling the
program may fix this problem.

ah, ok…you need to AppX it not click the .exe build.