soywiz-archive / cspspemu

C# PSP Emulator (.NET Core 3.1)
https://soywiz.com/
122 stars 26 forks source link

CSPspEmu on OSX #71

Open archanox opened 12 years ago

archanox commented 12 years ago

Mono may not be set up correctly. The mono website mentions that X11 needs to be installed to use mono's implementation of winforms. But could be due to the poor 3d driver implemented under VMWare.

Program : Info : Program.Main : Running ... plat:32bit ... int*:4 ... simd:SSE1, SSE2, SSE3, SSSE3, SSE41, SSE42
Missing method .ctor in assembly /Users/pierce/Desktop/Debug/Mono.Simd.dll, type System.Runtime.CompilerServices.ExtensionAttribute
Can't find custom attr constructor image: /Users/pierce/Desktop/Debug/Mono.Simd.dll mtoken: 0x0a00000a
Config : Error : PspStoredConfig.Load : System.IO.FileNotFoundException: Could not find file "/Users/pierce/Desktop/Debug/ms/EmulatorConfig.xml".
File name: '/Users/pierce/Desktop/Debug/ms/EmulatorConfig.xml'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0 
  at CSPspEmu.Core.PspStoredConfig.Load () [0x00000] in <filename unknown>:0 
HleModuleTypes: 76
OpenTK.Platform.MacOS.MacOSException: AGL Error from function aglCreateContext: BadPixelFormat  invalid pixel format
  at OpenTK.Platform.MacOS.AglContext.MyAGLReportError (System.String function) [0x00000] in <filename unknown>:0 
  at OpenTK.Platform.MacOS.AglContext.CreateContext (OpenTK.Graphics.GraphicsMode mode, OpenTK.Platform.MacOS.CarbonWindowInfo carbonWindow, IntPtr shareContextRef, Boolean fullscreen) [0x00000] in <filename unknown>:0 
  at OpenTK.Platform.MacOS.AglContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext) [0x00000] in <filename unknown>:0 
  at OpenTK.Platform.MacOS.MacOSFactory.CreateGLContext (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags) [0x00000] in <filename unknown>:0 
  at OpenTK.Graphics.GraphicsContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags) [0x00000] in <filename unknown>:0 
  at OpenTK.Graphics.GraphicsContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window) [0x00000] in <filename unknown>:0 
  at CSPspEmu.Core.Gpu.Impl.Opengl.OpenglGpuImpl+<>c__DisplayClassa.<InitSynchronizedOnce>b__8 () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: OpenTK.Platform.MacOS.MacOSException: AGL Error from function aglCreateContext: BadPixelFormat  invalid pixel format
  at OpenTK.Platform.MacOS.AglContext.MyAGLReportError (System.String function) [0x00000] in <filename unknown>:0 
  at OpenTK.Platform.MacOS.AglContext.CreateContext (OpenTK.Graphics.GraphicsMode mode, OpenTK.Platform.MacOS.CarbonWindowInfo carbonWindow, IntPtr shareContextRef, Boolean fullscreen) [0x00000] in <filename unknown>:0 
  at OpenTK.Platform.MacOS.AglContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext) [0x00000] in <filename unknown>:0 
  at OpenTK.Platform.MacOS.MacOSFactory.CreateGLContext (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags) [0x00000] in <filename unknown>:0 
  at OpenTK.Graphics.GraphicsContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags) [0x00000] in <filename unknown>:0 
  at OpenTK.Graphics.GraphicsContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window) [0x00000] in <filename unknown>:0 
  at CSPspEmu.Core.Gpu.Impl.Opengl.OpenglGpuImpl+<>c__DisplayClassa.<InitSynchronizedOnce>b__8 () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
archanox commented 12 years ago

I've installed X11 onto mountain lion, and it still yields the same results. I've also tried disabling "Accelerate 3D Graphics" but it too produces the same result. This may fare better on a real OSX machine that isn't virtualized, nor utilizing a Intel HD 2000 gpu on the host.

So this brings me to believe that we probably need to fix this in code.

AGL Error from function aglCreateContext: BadPixelFormat  invalid pixel format
soywiz commented 12 years ago

I have a mac mini. I can try it there.