{"action":"closed","issue":{"url":"https://api.github.com/repos/SiliconStudio/xenko/issues/354","repository_url":"https://api.github.com/repos/SiliconStudio/xenko","labels_url":"https://api.github.com/repos/SiliconStudio/xenko/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/SiliconStudio/xenko/issues/354/comments","events_url":"https://api.github.com/repos/SiliconStudio/xenko/issues/354/events","html_url":"https://github.com/SiliconStudio/xenko/issues/354","id":135167848,"number":354,"title":"Most samples are broken","user":{"login":"RecursiveCall","id":2229274,"avatar_url":"https://avatars.githubusercontent.com/u/2229274?v=3","gravatar_id":"","url":"https://api.github.com/users/RecursiveCall","html_url":"https://github.com/RecursiveCall","followers_url":"https://api.github.com/users/RecursiveCall/followers","following_url":"https://api.github.com/users/RecursiveCall/following{/other_user}","gists_url":"https://api.github.com/users/RecursiveCall/gists{/gist_id}","starred_url":"https://api.github.com/users/RecursiveCall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RecursiveCall/subscriptions","organizations_url":"https://api.github.com/users/RecursiveCall/orgs","repos_url":"https://api.github.com/users/RecursiveCall/repos","events_url":"https://api.github.com/users/RecursiveCall/events{/privacy}","received_events_url":"https://api.github.com/users/RecursiveCall/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SiliconStudio/xenko/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/SiliconStudio/xenko/labels/fixed","name":"fixed","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-21T06:23:29Z","updated_at":"2016-03-03T11:28:10Z","closed_at":"2016-03-03T11:28:10Z","body":"As of 1.5.3 or possibly before then, most \"New Projects\" do not run and spit this out in the console:\r\n\r\n```\r\nSystem.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Could not compile shader. See error messages.[]: Error: C:/Program Files/Silicon Studio/Xenko/GamePackages/Xenko.1.5.3-beta/Assets/Shared/Materials/Shaders/MaterialSurfaceLightingAndShading.xksl(72,34): error X5608: Compiled shader code uses too many arithmetic instruction slots (108). Max. allowed by the target (ps_2_0) is 64. Consider increasing optimization level to reduce instruction count.\r\n(1,1): error X5609: Compiled shader code uses too many instruction slots (110). Max. allowed by the target (ps_2_0) is 96.\r\n\r\n\r\n   at SiliconStudio.Xenko.Rendering.EffectSystem.CheckResult(LoggerResult compilerResult) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EffectSystem.cs:line 181\r\n   at SiliconStudio.Xenko.Rendering.EffectSystem.CreateEffect(String effectName, EffectBytecodeCompilerResult effectBytecodeCompilerResult, CompilerResults compilerResult) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EffectSystem.cs:line 205\r\n   at SiliconStudio.Xenko.Rendering.EffectSystem.<>c__DisplayClass21_0.<LoadEffect>b__0(Task`1 x) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EffectSystem.cs:line 166\r\n   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()\r\n   --- End of inner exception stack trace ---\r\n   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n   at System.Threading.Tasks.Task`1.get_Result()\r\n   at SiliconStudio.Xenko.Rendering.DynamicEffectCompiler.CreateEffect(DynamicEffectInstance effectInstance, ParameterCollection passParameters) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\DynamicEffectCompiler.cs:line 219\r\n   at SiliconStudio.Xenko.Rendering.DynamicEffectCompiler.Update(DynamicEffectInstance effectInstance, ParameterCollection passParameters) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\DynamicEffectCompiler.cs:line 159\r\n   at SiliconStudio.Xenko.Rendering.ModelComponentRenderer.UpdateEffect(RenderContext context, RenderMesh renderMesh, ParameterCollection passParameters) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\ModelComponentRenderer.cs:line 378\r\n   at SiliconStudio.Xenko.Rendering.ModelComponentRenderer.DrawCore(RenderContext context, RenderItemCollection renderItemList, Int32 fromIndex, Int32 toIndex) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\ModelComponentRenderer.cs:line 262\r\n   at SiliconStudio.Xenko.Rendering.EntityComponentRendererBase.Draw(RenderContext context, RenderItemCollection renderItems, Int32 fromIndex, Int32 toIndex) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EntityComponentRendererBase.cs:line 58\r\n   at SiliconStudio.Xenko.Rendering.EntityComponentRendererBatch.Draw(RenderContext context, RenderItemCollection renderItems, IComparer`1 comparer) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EntityComponentRendererBatch.cs:line 81\r\n   at SiliconStudio.Xenko.Rendering.EntityComponentRendererBatch.DrawCore(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EntityComponentRendererBatch.cs:line 36\r\n   at SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\RendererBase.cs:line 47\r\n   at SiliconStudio.Xenko.Rendering.CameraRendererMode.DrawCore(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\CameraRendererMode.cs:line 141\r\n   at SiliconStudio.Xenko.Rendering.CameraRendererModeForward.DrawCore(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\CameraRendererModeForward.cs:line 49\r\n   at SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\RendererBase.cs:line 47\r\n   at SiliconStudio.Xenko.Rendering.SceneCameraRenderer.DrawCore(RenderContext context, RenderFrame output) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\SceneCameraRenderer.cs:line 109\r\n   at SiliconStudio.Xenko.Rendering.SceneRendererBase.DrawCore(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\SceneRendererBase.cs:line 98\r\n   at SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\RendererBase.cs:line 47\r\n   at SiliconStudio.Xenko.Rendering.GraphicsRendererCollection`1.DrawRenderer(RenderContext context, T renderer) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\GraphicsRendererCollection.cs:line 19\r\n   at SiliconStudio.Xenko.Rendering.GraphicsRendererCollectionBase`1.DrawCore(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\GraphicsRendererCollectionBase.cs:line 173\r\n   at SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\RendererBase.cs:line 47\r\n   at SiliconStudio.Xenko.Rendering.Composers.SceneGraphicsLayer.DrawCore(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\Composers\\SceneGraphicsLayer.cs:line 135\r\n   at SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\RendererBase.cs:line 47\r\n   at SiliconStudio.Xenko.Rendering.GraphicsRendererCollection`1.DrawRenderer(RenderContext context, T renderer) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\GraphicsRendererCollection.cs:line 19\r\n   at SiliconStudio.Xenko.Rendering.GraphicsRendererCollectionBase`1.DrawCore(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\GraphicsRendererCollectionBase.cs:line 173\r\n   at SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\RendererBase.cs:line 47\r\n   at SiliconStudio.Xenko.Rendering.Composers.SceneGraphicsCompositorLayers.DrawCore(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\Composers\\SceneGraphicsCompositorLayers.cs:line 70\r\n   at SiliconStudio.Xenko.Rendering.RendererBase.Draw(RenderContext context) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\RendererBase.cs:line 47\r\n   at SiliconStudio.Xenko.Engine.SceneInstance.Draw(RenderContext context, RenderFrame toFrame, ISceneGraphicsCompositor compositorOverride) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Engine\\SceneInstance.cs:line 161\r\n---> (Inner Exception #0) System.InvalidOperationException: Could not compile shader. See error messages.[]: Error: C:/Program Files/Silicon Studio/Xenko/GamePackages/Xenko.1.5.3-beta/Assets/Shared/Materials/Shaders/MaterialSurfaceLightingAndShading.xksl(72,34): error X5608: Compiled shader code uses too many arithmetic instruction slots (108). Max. allowed by the target (ps_2_0) is 64. Consider increasing optimization level to reduce instruction count.\r\n(1,1): error X5609: Compiled shader code uses too many instruction slots (110). Max. allowed by the target (ps_2_0) is 96.\r\n\r\n\r\n   at SiliconStudio.Xenko.Rendering.EffectSystem.CheckResult(LoggerResult compilerResult) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EffectSystem.cs:line 181\r\n   at SiliconStudio.Xenko.Rendering.EffectSystem.CreateEffect(String effectName, EffectBytecodeCompilerResult effectBytecodeCompilerResult, CompilerResults compilerResult) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EffectSystem.cs:line 205\r\n   at SiliconStudio.Xenko.Rendering.EffectSystem.<>c__DisplayClass21_0.<LoadEffect>b__0(Task`1 x) in C:\\TeamCity\\work\\e71632f3cedbf5cf\\sources\\engine\\SiliconStudio.Xenko.Engine\\Rendering\\EffectSystem.cs:line 166\r\n   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()<---\r\n``` "}}