Marlamin / WoWExportTools

Tool for exporting WoW assets to more portable formats
MIT License
46 stars 16 forks source link

AccessViolationException #14

Open CorellianAle opened 7 years ago

CorellianAle commented 7 years ago

I've ran into AccessViolationException after the initial setup window (where you choose online/retail and export folder path).

Here is the event log data:

Application: OBJExporterUI.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
   at OpenTK.Graphics.OpenGL.GL.BindFragDataLocation(Int32, Int32, System.String)
   at OBJExporterUI.Shader.CompileShader(System.String)
   at OBJExporterUI.PreviewControl.RenderCanvas_Load(System.Object, System.EventArgs)
   at System.Windows.Forms.UserControl.OnLoad(System.EventArgs)
   at System.Windows.Forms.UserControl.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean)
   at System.Windows.Forms.Control.CreateControl(Boolean)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)

I am running it on a Windows 8.1 inside Parallels Virtual Machine for macOS. I could be related to graphics and the my weird setup, but other complicated software runs fine (playstation emulators, various native rendering programs and so on). WoW runs just fine. I am also using this setup for day-to-day C++ and C# development, so I can assist you with debug if you need, just not familiar with graphics, although I played with XNA so I might understand.

Marlamin commented 7 years ago

Hmm, interesting. My OpenGL implementation isn't really capable of handling different setups well yet. I've tested it on recent Intel, AMD and NVIDIA drivers but I guess Parallels runs its own graphics stack seeing it's a VM. The BindFragDataLocation call seems to be causing the access violation. Maybe I'm relying on some functionality that isn't by the standard. I'll take a look, thanks!