{"action":"created","issue":{"url":"https://api.github.com/repos/LogicAndTrick/sledge/issues/227","labels_url":"https://api.github.com/repos/LogicAndTrick/sledge/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/LogicAndTrick/sledge/issues/227/comments","events_url":"https://api.github.com/repos/LogicAndTrick/sledge/issues/227/events","html_url":"https://github.com/LogicAndTrick/sledge/issues/227","id":129386265,"number":227,"title":"Crash due to AccessViolationException","user":{"login":"fnky","id":995050,"avatar_url":"https://avatars.githubusercontent.com/u/995050?v=3","gravatar_id":"","url":"https://api.github.com/users/fnky","html_url":"https://github.com/fnky","followers_url":"https://api.github.com/users/fnky/followers","following_url":"https://api.github.com/users/fnky/following{/other_user}","gists_url":"https://api.github.com/users/fnky/gists{/gist_id}","starred_url":"https://api.github.com/users/fnky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnky/subscriptions","organizations_url":"https://api.github.com/users/fnky/orgs","repos_url":"https://api.github.com/users/fnky/repos","events_url":"https://api.github.com/users/fnky/events{/privacy}","received_events_url":"https://api.github.com/users/fnky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-28T08:56:31Z","updated_at":"2016-01-28T09:32:56Z","closed_at":"2016-01-28T09:32:55Z","body":"#### Bug\r\n\r\nUsing Sledge Editor 0.1.0.28 - The application crashes due to the exception `System.AccessViolationException` being thrown. This is thrown upon creating a new file.\r\n\r\nI have also tried to run the program as administrator, but didn't work either.\r\n\r\n#### Configuration\r\n\r\nI used ZHLT 3.0 build tools and copied Half-Life (GoldSrc) game files from Steam installation (wads, sprites & models) without the game executable (as I debug on my host machine).\r\n\r\n#### System Information\r\n\r\n```\r\nMicrosoft Windows 10 Pro (64-bit)\r\nVersion\t10.0.10586 Build 10586\r\nIntel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz, 1995 Mhz, 1 Core(s), 1 Logical Processor(s)\r\n```\r\n\r\n> Note: Running on VirtualBox.\r\n\r\n#### Error Log\r\n\r\n##### .NET Runtime\r\n```\r\nApplication: Sledge.Editor.exe\r\nFramework Version: v4.0.30319\r\nDescription: The process was terminated due to an unhandled exception.\r\nException Info: System.AccessViolationException\r\n   at OpenTK.Graphics.OpenGL.GL.GenBuffers(Int32, Int32 ByRef)\r\n   at Sledge.Graphics.Arrays.VBO`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Sledge.Editor.Rendering.Arrays.MapObjectVertex, Sledge.Editor, Version=0.1.0.28, Culture=neutral, PublicKeyToken=null]].Commit()\r\n   at Sledge.Graphics.Arrays.VBO`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Sledge.Editor.Rendering.Arrays.MapObjectVertex, Sledge.Editor, Version=0.1.0.28, Culture=neutral, PublicKeyToken=null]].Update(System.Collections.Generic.IEnumerable`1<System.__Canon>)\r\n   at Sledge.Graphics.Arrays.VBO`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Sledge.Editor.Rendering.Arrays.MapObjectVertex, Sledge.Editor, Version=0.1.0.28, Culture=neutral, PublicKeyToken=null]]..ctor(System.Collections.Generic.IEnumerable`1<System.__Canon>)\r\n   at Sledge.Editor.Rendering.Renderers.ModernRenderer..ctor(Sledge.Editor.Documents.Document)\r\n   at Sledge.Editor.Rendering.RenderManager..ctor(Sledge.Editor.Documents.Document)\r\n   at Sledge.Editor.Documents.Document..ctor(System.String, Sledge.DataStructures.MapObjects.Map, Sledge.Settings.Models.Game)\r\n   at Sledge.Editor.Editor.FileNew()\r\n\r\nException Info: System.Reflection.TargetInvocationException\r\n   at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)\r\n   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])\r\n   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)\r\n   at Sledge.Common.Mediator.Mediator.ExecuteDefault(System.Object, System.String, System.Object)\r\n   at Sledge.Editor.Editor.Notify(System.String, System.Object)\r\n\r\nException Info: System.Reflection.TargetInvocationException\r\n   at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)\r\n   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])\r\n   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)\r\n   at Sledge.Common.Mediator.Mediator.Publish(System.String, System.Object)\r\n   at Sledge.Editor.Menu.UpdatingToolStripMenuItem.OnClick(System.EventArgs)\r\n   at System.Windows.Forms.ToolStripItem.HandleClick(System.EventArgs)\r\n   at System.Windows.Forms.ToolStripItem.HandleMouseUp(System.Windows.Forms.MouseEventArgs)\r\n   at System.Windows.Forms.ToolStripItem.FireEventInteractive(System.EventArgs, System.Windows.Forms.ToolStripItemEventType)\r\n   at System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs, System.Windows.Forms.ToolStripItemEventType)\r\n   at System.Windows.Forms.ToolStrip.OnMouseUp(System.Windows.Forms.MouseEventArgs)\r\n   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(System.Windows.Forms.MouseEventArgs)\r\n   at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)\r\n   at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)\r\n   at System.Windows.Forms.ToolStrip.WndProc(System.Windows.Forms.Message ByRef)\r\n   at System.Windows.Forms.ToolStripDropDown.WndProc(System.Windows.Forms.Message ByRef)\r\n   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)\r\n   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)\r\n   at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)\r\n   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)\r\n   at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)\r\n   at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)\r\n   at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])\r\n   at Sledge.Editor.SingleInstance.Start(System.Type)\r\n   at Sledge.Editor.Program.Main()\r\n```\r\n\r\n##### Application Error\r\n```\r\nFaulting application name: Sledge.Editor.exe, version: 0.1.0.28, time stamp: 0x53d4afb2\r\nFaulting module name: KERNELBASE.dll, version: 10.0.10586.0, time stamp: 0x5632da1c\r\nException code: 0xe0434352\r\nFault offset: 0x000bd8a8\r\nFaulting process ID: 0x1334\r\nFaulting application start time: 0x01d159a5deb9702c\r\nFaulting application path: C:\\Program Files (x86)\\Sledge Editor\\Sledge.Editor.exe\r\nFaulting module path: C:\\Windows\\SYSTEM32\\KERNELBASE.dll\r\nReport ID: 2db0355b-8d33-4c7e-84f6-ff5b69b90860\r\nFaulting package full name: \r\nFaulting package-relative application ID: \r\n```\r\n\r\n##### Windows Error Report\r\n```\r\nFault bucket 94576025281, type 5\r\nEvent Name: CLR20r3\r\nResponse: Not available\r\nCab Id: 0\r\n\r\nProblem signature:\r\nP1: Sledge.Editor.exe\r\nP2: 0.1.0.28\r\nP3: 53d4afb2\r\nP4: OpenTK\r\nP5: 1.1.1475.5656\r\nP6: 52d68b14\r\nP7: 1153\r\nP8: 0\r\nP9: System.AccessViolationException\r\nP10: \r\n\r\nAttached files:\r\nC:\\Users\\cp\\AppData\\Local\\Temp\\WER98E.tmp.WERInternalMetadata.xml\r\nC:\\Users\\cp\\AppData\\Local\\Temp\\WERF9A.tmp.appcompat.txt\r\n\r\nThese files may be available here:\r\nC:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive\\AppCrash_Sledge.Editor.ex_969ba18ba7d023c27e2ba05ee83259c1936faeee_3d899fde_04370fd7\r\n\r\nAnalysis symbol: \r\nRechecking for solution: 0\r\nReport ID: 2db0355b-8d33-4c7e-84f6-ff5b69b90860\r\nReport Status: 1\r\nHashed bucket: 6a015e5299fff755183f9bb0049a3c65\r\n```\r\n\r\n#### Reproduction\r\n\r\nI do not know how to reproduce this problem. However, I run my system on VirtualBox and started a configuration with files referenced to Shared Folder over Network. I later moved the files to disk and reconfigurate, without luck."},"comment":{"url":"https://api.github.com/repos/LogicAndTrick/sledge/issues/comments/176082477","html_url":"https://github.com/LogicAndTrick/sledge/issues/227#issuecomment-176082477","issue_url":"https://api.github.com/repos/LogicAndTrick/sledge/issues/227","id":176082477,"user":{"login":"LogicAndTrick","id":3071180,"avatar_url":"https://avatars.githubusercontent.com/u/3071180?v=3","gravatar_id":"","url":"https://api.github.com/users/LogicAndTrick","html_url":"https://github.com/LogicAndTrick","followers_url":"https://api.github.com/users/LogicAndTrick/followers","following_url":"https://api.github.com/users/LogicAndTrick/following{/other_user}","gists_url":"https://api.github.com/users/LogicAndTrick/gists{/gist_id}","starred_url":"https://api.github.com/users/LogicAndTrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogicAndTrick/subscriptions","organizations_url":"https://api.github.com/users/LogicAndTrick/orgs","repos_url":"https://api.github.com/users/LogicAndTrick/repos","events_url":"https://api.github.com/users/LogicAndTrick/events{/privacy}","received_events_url":"https://api.github.com/users/LogicAndTrick/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T09:32:55Z","updated_at":"2016-01-28T09:32:55Z","body":"Great! GPU support is one of the most difficult things to debug, so I'm glad that fixed the issue!"}}