Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline travis78  
#1 Posted : Thursday, January 26, 2012 5:28:35 PM(UTC)
travis78

Joined: 1/26/2012(UTC)
Posts: 4

hi,

I'm a newbie in .NET development. I downloaded the library with the samples, and builded the ExampleToolForm solution. The build was successful, but directly after the running it crashed with a NullReferenceException, at this line in Program.cs:
Line.Draw(new Point(0, 0), new Point(1, 1), Color.Red);

But before this, I got a Notepad window with a very long error message:



01.639 Warning: Found unsupported attribute 'ContentDeviceName (Windows)' in content node: XmlNode=ContentMetaData: <ContentMetaData Name="Delta.Tools.ExampleTool" Type="Scene" LastTimeUpdated="2011-10-09 04:17:04" ContentDeviceName="Windows">
<ContentMetaData Name="Fallback Project: Engine" Type="Scene" LastT..
at Delta.Utilities.Log.Warning(System.String message)
at Delta.ContentSystem.ContentMetaData.FTPpqjnoppiC25WR3a9(System.Object )
at Delta.ContentSystem.ContentMetaData..ctor(Delta.Utilities.Xml.XmlNode contentNode, System.Boolean doValidationChecks)
at Delta.ContentSystem.ContentManager.UpdateMetaDataFromXml(System.Boolean saveMetaDataFile, System.String relativeContentFilenameToForceUpdating)
at Delta.ContentSystem.ContentManager.Initialize()
at Delta.ContentSystem.ContentManager.VHsaCZnw9Eb538vCP8X(System.Object )
at Delta.ContentSystem.ContentManager.get_Instance()
at Delta.ContentSystem.ContentManager.GetAllContentMetaData(Delta.ContentSystem.ContentType contentType)
at Delta.ContentSystem.Rendering.ShaderData.Get(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags shaderFlags)
at Delta.Graphics.Basics.Shader..ctor(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags setShaderFlags)
at Delta.Graphics.BaseOpenGL.BaseOpenGLShader.wIYaIXIOxLtXX6Ydiu(System.Object , Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags )
at Delta.Graphics.BaseOpenGL.BaseOpenGLShader..ctor(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags setShaderFlags)
at Delta.Graphics.OpenTK.OpenTKShader.Xrr0Ik5mwljW4kis4nY(System.Object , Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags )
at Delta.Graphics.OpenTK.OpenTKShader..ctor(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags setShaderFlags)
at Delta.Engine.Dynamic.Factory.Create(System.Type classToCreate, System.Object argument)
at Delta.Engine.Dynamic.Factory.Create(System.Object argument)
at Delta.Graphics.Basics.Shader.Create(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags shaderFlags)
at Delta.Rendering.Basics.Drawing.DrawManager.s5l7IhlyYtFxg1Mjup(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags )
at Delta.Rendering.Basics.Drawing.DrawManager..ctor()
at Delta.Engine.Dynamic.Factory.Create(System.Type classToCreate, System.Object argument)
at Delta.Engine.Dynamic.Factory.Create()
at Delta.Rendering.Basics.Drawing.DrawManager.get_Instance()
at Delta.Rendering.Basics.Drawing.Line.ahQA8qPgeGOKZ3kwBOb()
at Delta.Rendering.Basics.Drawing.Line.Draw(Delta.Utilities.Datatypes.Point startPosition, Delta.Utilities.Datatypes.Point endPosition, Delta.Utilities.Datatypes.Color color)
C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs(36,6): at Delta.Tools.ExampleToolForm.Program+<>c__DisplayClass1.<Main>b__0()
at Delta.Engine.Application.Run()
at Delta.Engine.Application.ij2dGWK5edPC8esQvPp(System.Object )
at Delta.Engine.Application.StartExecutionLoop()
at Delta.Platforms.Windows.WindowsApplication.U7iMTAtncySlPFHA4Bh(System.Object )
at Delta.Platforms.Windows.WindowsApplication.StartExecutionLoop()
at Delta.Engine.Application.yPSeuxoTpmQK6XwURC(System.Object )
at Delta.Engine.Application.Start(Delta.Engine.Dynamic.RunDelegate setOptionalRunCode)
C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs(33,5): at Delta.Tools.ExampleToolForm.Program.Main()

02.555 Warning: CreateInstance failed for 'Delta.Graphics.OpenTK.OpenTKShader': A meghívott objektum kivételt váltott ki.
System.EntryPointNotFoundException: Nem található „glGetUniformLocation” nevű belépési pont a(z) „opengl32.dll” DLL-fájlban.
a következő helyen: OpenTK.Graphics.OpenGL.GL.Core.GetUniformLocation(UInt32 program, String name)
a következő helyen: OpenTK.Graphics.OpenGL.GL.GetUniformLocation(Int32 program, String name)
a következő helyen: Delta.Graphics.OpenTK.OpenTKShader.gKYG0g5rLVHxXOHQCUp(Int32 , Object )
a következő helyen: Delta.Graphics.OpenTK.OpenTKShader.GetUniformHandle(ShaderUniformNames name)
a következő helyen: Delta.Graphics.BaseShader.pe93to17MNgPSXOuQku(Object , ShaderUniformNames uniformName)
a következő helyen: Delta.Graphics.BaseShader.UpdateShaderHandleAndUniforms(Object nativeObject)
a következő helyen: Delta.Graphics.BaseOpenGL.BaseOpenGLShader.UpdateShaderHandleAndUniforms(Object nativeData)
a következő helyen: Delta.Graphics.BaseOpenGL.BaseOpenGLShader.o1dR6q19WuEaoWPOXL(Object , Object )
a következő helyen: Delta.Graphics.BaseOpenGL.BaseOpenGLShader.Initialize()
a következő helyen: Delta.Graphics.BaseOpenGL.BaseOpenGLShader..ctor(ShaderFeatureFlags setShaderFlags)
a következő helyen: Delta.Graphics.OpenTK.OpenTKShader.Xrr0Ik5mwljW4kis4nY(Object , ShaderFeatureFlags )
a következő helyen: Delta.Graphics.OpenTK.OpenTKShader..ctor(ShaderFeatureFlags setShaderFlags)
02.564 Warning: Shader.Create: The shader with the flags 'UI2D, NoTexturing, ColoredVertices' couldn't be loaded, it was not found.
at Delta.Utilities.Log.Warning(System.String message)
at Delta.Graphics.Basics.Shader.z3bwZZLpD1srC1FQ6D(System.Object )
at Delta.Graphics.Basics.Shader.Create(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags shaderFlags)
at Delta.Rendering.Basics.Drawing.DrawManager.s5l7IhlyYtFxg1Mjup(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags )
at Delta.Rendering.Basics.Drawing.DrawManager..ctor()
at Delta.Engine.Dynamic.Factory.Create(System.Type classToCreate, System.Object argument)
at Delta.Engine.Dynamic.Factory.Create()
at Delta.Rendering.Basics.Drawing.DrawManager.get_Instance()
at Delta.Rendering.Basics.Drawing.Line.ahQA8qPgeGOKZ3kwBOb()
at Delta.Rendering.Basics.Drawing.Line.Draw(Delta.Utilities.Datatypes.Point startPosition, Delta.Utilities.Datatypes.Point endPosition, Delta.Utilities.Datatypes.Color color)
C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs(36,6): at Delta.Tools.ExampleToolForm.Program+<>c__DisplayClass1.<Main>b__0()
at Delta.Engine.Application.Run()
at Delta.Engine.Application.ij2dGWK5edPC8esQvPp(System.Object )
at Delta.Engine.Application.StartExecutionLoop()
at Delta.Platforms.Windows.WindowsApplication.U7iMTAtncySlPFHA4Bh(System.Object )
at Delta.Platforms.Windows.WindowsApplication.StartExecutionLoop()
at Delta.Engine.Application.yPSeuxoTpmQK6XwURC(System.Object )
at Delta.Engine.Application.Start(Delta.Engine.Dynamic.RunDelegate setOptionalRunCode)
C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs(33,5): at Delta.Tools.ExampleToolForm.Program.Main()

03.021 Warning: No shader is set for this material, for rendering you always need a shader, setting the default basic shader (rendering might be very wrong)!
at Delta.Utilities.Log.Warning(System.String message)
at Delta.Rendering.BaseMaterial.K5DYno9Q0ytWVu0jkh(System.Object )
at Delta.Rendering.BaseMaterial.Initialize(Delta.Graphics.BaseTexture setTexture, Delta.Graphics.Basics.Shader setShader)
at Delta.Rendering.BaseMaterial..ctor(Delta.Graphics.BaseTexture setDiffuseMap, Delta.Graphics.Basics.Shader setShader)
at Delta.Rendering.Basics.Materials.Material.xMbm1HE18s4XUBPVKod(System.Object , System.Object , System.Object )
at Delta.Rendering.Basics.Materials.Material..ctor(Delta.Graphics.Basics.Texture setDiffuseMap, Delta.Graphics.Basics.Shader setShader)
at Delta.Rendering.Basics.Drawing.DrawManager..ctor()
at Delta.Engine.Dynamic.Factory.Create(System.Type classToCreate, System.Object argument)
at Delta.Engine.Dynamic.Factory.Create()
at Delta.Rendering.Basics.Drawing.DrawManager.get_Instance()
at Delta.Rendering.Basics.Drawing.Line.ahQA8qPgeGOKZ3kwBOb()
at Delta.Rendering.Basics.Drawing.Line.Draw(Delta.Utilities.Datatypes.Point startPosition, Delta.Utilities.Datatypes.Point endPosition, Delta.Utilities.Datatypes.Color color)
C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs(36,6): at Delta.Tools.ExampleToolForm.Program+<>c__DisplayClass1.<Main>b__0()
at Delta.Engine.Application.Run()
at Delta.Engine.Application.ij2dGWK5edPC8esQvPp(System.Object )
at Delta.Engine.Application.StartExecutionLoop()
at Delta.Platforms.Windows.WindowsApplication.U7iMTAtncySlPFHA4Bh(System.Object )
at Delta.Platforms.Windows.WindowsApplication.StartExecutionLoop()
at Delta.Engine.Application.yPSeuxoTpmQK6XwURC(System.Object )
at Delta.Engine.Application.Start(Delta.Engine.Dynamic.RunDelegate setOptionalRunCode)
C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs(33,5): at Delta.Tools.ExampleToolForm.Program.Main()

03.356 Warning: Found unsupported attribute 'ContentDeviceName (Windows)' in content node: XmlNode=ContentMetaData: <ContentMetaData Name="Delta.Tools.ExampleTool" Type="Scene" LastTimeUpdated="2011-10-09 04:17:04" ContentDeviceName="Windows">
<ContentMetaData Name="Fallback Project: Engine" Type="Scene" LastT..
at Delta.Utilities.Log.Warning(System.String message)
at Delta.ContentSystem.ContentMetaData.FTPpqjnoppiC25WR3a9(System.Object )
at Delta.ContentSystem.ContentMetaData..ctor(Delta.Utilities.Xml.XmlNode contentNode, System.Boolean doValidationChecks)
at Delta.ContentSystem.ContentManager.UpdateMetaDataFromXml(System.Boolean saveMetaDataFile, System.String relativeContentFilenameToForceUpdating)
at Delta.ContentSystem.ContentClient.Aux7ke56Fv81MgIZ6v(System.Object , System.Boolean saveMetaDataFile, System.Object )
at Delta.ContentSystem.ContentClient.OnMessageReceived(System.Byte messageType, System.IO.BinaryReader data)
at Delta.Utilities.Networking.BaseClient.aYoflZST6TXRGCRHax(System.Object , System.Byte messageType, System.Object )
at Delta.Utilities.Networking.BaseClient.OnRawMessageReceived(System.Byte messageType, System.IO.BinaryReader data, System.Boolean isCompressed)
at Delta.Utilities.Networking.SocketHelper.ReceiveMessageData(Delta.Utilities.Networking.BaseClient data, System.Int32 numOfReceivedBytes)
at Delta.Utilities.Networking.SocketHelper.I3HUMEpXy1rSd1YYCSL(System.Object , System.Int32 numOfReceivedBytes)
at Delta.Utilities.Networking.SocketHelper.OnReceivedDataAsyncCallback(System.IAsyncResult ar)
at System.Net.LazyAsyncResult.Complete(System.IntPtr userToken)
at System.Net.ContextAwareResult.CompleteCallback(System.Object state)
at System.Net.ContextAwareResult.Complete(System.IntPtr userToken)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object result, System.IntPtr userToken)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(System.UInt32 errorCode, System.UInt32 numBytes, System.Threading.NativeOverlapped* nativeOverlapped)

03.433 Warning: Shader.Create: The shader with the flags 'Basic' couldn't be loaded, it was not found.
at Delta.Utilities.Log.Warning(System.String message)
at Delta.Graphics.Basics.Shader.z3bwZZLpD1srC1FQ6D(System.Object )
at Delta.Graphics.Basics.Shader.Create(Delta.Utilities.Graphics.ShaderFeatures.ShaderFeatureFlags shaderFlags)
at Delta.Rendering.BaseMaterial.Initialize(Delta.Graphics.BaseTexture setTexture, Delta.Graphics.Basics.Shader setShader)
at Delta.Rendering.BaseMaterial..ctor(Delta.Graphics.BaseTexture setDiffuseMap, Delta.Graphics.Basics.Shader setShader)
at Delta.Rendering.Basics.Materials.Material.xMbm1HE18s4XUBPVKod(System.Object , System.Object , System.Object )
at Delta.Rendering.Basics.Materials.Material..ctor(Delta.Graphics.Basics.Texture setDiffuseMap, Delta.Graphics.Basics.Shader setShader)
at Delta.Rendering.Basics.Drawing.DrawManager..ctor()
at Delta.Engine.Dynamic.Factory.Create(System.Type classToCreate, System.Object argument)
at Delta.Engine.Dynamic.Factory.Create()
at Delta.Rendering.Basics.Drawing.DrawManager.get_Instance()
at Delta.Rendering.Basics.Drawing.Line.ahQA8qPgeGOKZ3kwBOb()
at Delta.Rendering.Basics.Drawing.Line.Draw(Delta.Utilities.Datatypes.Point startPosition, Delta.Utilities.Datatypes.Point endPosition, Delta.Utilities.Datatypes.Color color)
C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs(36,6): at Delta.Tools.ExampleToolForm.Program+<>c__DisplayClass1.<Main>b__0()
at Delta.Engine.Application.Run()
at Delta.Engine.Application.ij2dGWK5edPC8esQvPp(System.Object )
at Delta.Engine.Application.StartExecutionLoop()
at Delta.Platforms.Windows.WindowsApplication.U7iMTAtncySlPFHA4Bh(System.Object )
at Delta.Platforms.Windows.WindowsApplication.StartExecutionLoop()
at Delta.Engine.Application.yPSeuxoTpmQK6XwURC(System.Object )
at Delta.Engine.Application.Start(Delta.Engine.Dynamic.RunDelegate setOptionalRunCode)
C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs(33,5): at Delta.Tools.ExampleToolForm.Program.Main()

04.184 Warning: Creation of the 'DrawManager' has failed because of reason: System.NullReferenceException: Az objektumhivatkozás nincs beállítva semmilyen objektumpéldányra.
a következő helyen: Delta.Rendering.BaseMaterial.sZ3fP0OkMAfs03E6o6(Object )
a következő helyen: Delta.Rendering.BaseMaterial.Initialize(BaseTexture setTexture, Shader setShader)
a következő helyen: Delta.Rendering.BaseMaterial..ctor(BaseTexture setDiffuseMap, Shader setShader)
a következő helyen: Delta.Rendering.Basics.Materials.Material.xMbm1HE18s4XUBPVKod(Object , Object , Object )
a következő helyen: Delta.Rendering.Basics.Materials.Material..ctor(Texture setDiffuseMap, Shader setShader)
a következő helyen: Delta.Rendering.Basics.Drawing.DrawManager..ctor()
04.209 Error: Fatal Error: Unhandled exception occurred (Application is terminated, we cannot recover!): System.NullReferenceException: Az objektumhivatkozás nincs beállítva semmilyen objektumpéldányra.
a következő helyen: Delta.Rendering.Basics.Drawing.DrawManager.Draw2DLine(Point& linePoint1, Point& linePoint2, Color& lineColor)
a következő helyen: Delta.Rendering.Basics.Drawing.Line.Draw(Point startPosition, Point endPosition, Color color)
a következő helyen: Delta.Tools.ExampleToolForm.Program.<>c__DisplayClass1.<Main>b__0() hely: C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs, sor: 36
a következő helyen: Delta.Engine.Application.Run()
a következő helyen: Delta.Engine.Application.ij2dGWK5edPC8esQvPp(Object )
a következő helyen: Delta.Engine.Application.StartExecutionLoop()
a következő helyen: Delta.Platforms.Windows.WindowsApplication.U7iMTAtncySlPFHA4Bh(Object )
a következő helyen: Delta.Platforms.Windows.WindowsApplication.StartExecutionLoop()
a következő helyen: Delta.Engine.Application.yPSeuxoTpmQK6XwURC(Object )
a következő helyen: Delta.Engine.Application.Start(RunDelegate setOptionalRunCode)
a következő helyen: Delta.Tools.ExampleToolForm.Program.Main() hely: C:\Users\Felhasznalo\DeltaEngine\Samples\ExampleToolForm\Program.cs, sor: 33
a következő helyen: System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
a következő helyen: System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
a következő helyen: Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
a következő helyen: System.Threading.ThreadHelper.ThreadStart_Context(Object state)
a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
a következő helyen: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
a következő helyen: System.Threading.ThreadHelper.ThreadStart()




Any suggestion?
Thanks!

t.

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Thursday, January 26, 2012 5:36:17 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
It seems like you get some warnings because of new content types from v0.9.2.13 (just released today), which are not compatible with your version (v0.9.2.2).

However, the real problem seems to be that your shader content could not be loaded. Maybe it is just related to the first warning. I will test v0.9.2.2 and update the server so it should work out if that is the only problem.

Sorry for the inconvenience, but as you can see there were quite a lot of changes in v0.9.2.13: http://deltaengine.codep...eControl/list/changesets
Offline travis78  
#3 Posted : Thursday, January 26, 2012 5:50:32 PM(UTC)
travis78

Joined: 1/26/2012(UTC)
Posts: 4

Thanks for the very fast answer.
Please, share the result of the test with me/us.
I will wait your answer.

thx!
Offline jeden  
#4 Posted : Thursday, January 26, 2012 5:59:09 PM(UTC)
jeden

Joined: 1/14/2012(UTC)
Posts: 13

Hi,

if this is the same problem I am experiencing, you can solve by starting the app in debug mode 3 times.

In my case, the first time it fails after logging into the content manager, the second time when connecting to the content manager. At the 3rd attempt, it should download the content and run correctly.

I advise you to monitor this thread, where we're discussing about this problem.

http://forum.deltaengine...ew-project.aspx#post1518

Please let us know in either case, whether my suggestion works for you or not.

Thanks
Antonio
Offline Benjamin  
#5 Posted : Thursday, January 26, 2012 6:03:25 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
Actually, the error is very different (WPF problem vs unsupported ContentMetaData entries). Yes the result might be the same, the shader could not be loaded (because it could not be found) and thus it results in the same crash, but those are two issues that have to be fixed. The ContentMetaData problem from this thread is actually a bit easier because it can be fixed on the server side. The WPF problem is a client side problem and I have no idea how to debug it or fix it yet ..
Offline travis78  
#6 Posted : Thursday, January 26, 2012 6:20:11 PM(UTC)
travis78

Joined: 1/26/2012(UTC)
Posts: 4

If I comment the Font and Line class calls out, the application starts correctly, without any errors. But the form stays clean, of course.
Offline Benjamin  
#7 Posted : Thursday, January 26, 2012 7:29:16 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
The Content Warnings are already fixed, plus some other minor issues on the server side.

I was also able to reproduce the WPF problem, it seems to happen when deleting all content directories and all settings plus fallback settings .. really strange, but at least I could reproduce it. Now I am trying to figure out how to debug it (WPF is hard stuff) :D
Offline travis78  
#8 Posted : Friday, January 27, 2012 10:35:05 AM(UTC)
travis78

Joined: 1/26/2012(UTC)
Posts: 4

Any kind of class I try to instance from Delta namespace goes with this error. But only in running time.
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2018, Yet Another Forum.NET
This page was generated in 0.429 seconds.