Preview fails silently

Hi, I’m just playing around with the example project. I’m working in a virtualized Mac OS X el capitan.

When I use the fuse app to preview I get a successfully build message and nothing happens. If I do the same but using Sublime Text, then I get this error message:

Unexpected fatal error! Please report this to us.
Build started: FullCompile
Configuring
No OpenGL pixel format
fuse: unhandled exception: Argument cannot be null.
Parameter name: format
  at MonoMac.AppKit.NSOpenGLContext..ctor (MonoMac.AppKit.NSOpenGLPixelFormat format, MonoMac.AppKit.NSOpenGLContext shareContext) [0x00000] in <filename unknown>:0 
  at Outracks.Fusion.Native.DisplayLinkView..ctor (RectangleF frame) [0x00084] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fusion.Native-OSX/DisplayLinkView.cs:37 
  at Outracks.Fusion.Native.UnoGLView..ctor (IErrorHandler errorHandler, RectangleF rect) [0x00021] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fusion.Native-OSX/UnoGLView.cs:91 
  at Outracks.Fusion.Native.MonoMacWindow..ctor (IErrorHandler errorHandler, Size1 windowSize) [0x00089] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fusion.Native-OSX/MonoMacWindow.cs:177 
  at Outracks.Fusion.Native.MonoNative.CreateWindowApplication (IErrorHandler errorHandler) [0x00000] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fusion.Native-OSX/MonoNative.cs:14 
  at Outracks.Fuse.Program+&lt;Run&gt;cAnonStorey0.&lt;&gt;m2 () [0x00000] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Bootstrap/Program.cs:159 
  at Outracks.Fuse.Preview.PreviewLocally.RunLocally (Outracks.Fuse.Preview.PreviewArguments args, IMessagingService client, Outracks.Building.CacheCleaner cacheCleaner) [0x000cc] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/PreviewLocally.cs:85 
  at Outracks.Fuse.Preview.PreviewMain.Run (Outracks.Fuse.Preview.PreviewArguments args, IMessagingService client) [0x00037] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/PreviewMain.cs:39 
  at Outracks.Fuse.Preview.PreviewWithDaemon.Preview (Outracks.Fuse.Preview.PreviewArguments argument) [0x000d2] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/PreviewWithDaemon.cs:70 
  at Outracks.Fuse.Preview.CLI.PreviewCliCommand.RunInternal (System.String[] args) [0x00033] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/CLI/PreviewCliCommand.cs:135 
  at Outracks.Fuse.Preview.CLI.PreviewCliCommand.Run (System.String[] args) [0x00000] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/CLI/PreviewCliCommand.cs:97 
Unhandled exception: Argument cannot be null.
Parameter name: format
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Argument cannot be null.
Parameter name: format
  at MonoMac.AppKit.NSOpenGLContext..ctor (MonoMac.AppKit.NSOpenGLPixelFormat format, MonoMac.AppKit.NSOpenGLContext shareContext) [0x00000] in &lt;filename unknown&gt;:0 
  at Outracks.Fusion.Native.DisplayLinkView..ctor (RectangleF frame) [0x00084] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fusion.Native-OSX/DisplayLinkView.cs:37 
  at Outracks.Fusion.Native.UnoGLView..ctor (IErrorHandler errorHandler, RectangleF rect) [0x00021] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fusion.Native-OSX/UnoGLView.cs:91 
  at Outracks.Fusion.Native.MonoMacWindow..ctor (IErrorHandler errorHandler, Size1 windowSize) [0x00089] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fusion.Native-OSX/MonoMacWindow.cs:177 
  at Outracks.Fusion.Native.MonoNative.CreateWindowApplication (IErrorHandler errorHandler) [0x00000] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fusion.Native-OSX/MonoNative.cs:14 
  at Outracks.Fuse.Program+<Run>cAnonStorey0.<>m2 () [0x00000] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Bootstrap/Program.cs:159 
  at Outracks.Fuse.Preview.PreviewLocally.RunLocally (Outracks.Fuse.Preview.PreviewArguments args, IMessagingService client, Outracks.Building.CacheCleaner cacheCleaner) [0x000cc] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/PreviewLocally.cs:85 
  at Outracks.Fuse.Preview.PreviewMain.Run (Outracks.Fuse.Preview.PreviewArguments args, IMessagingService client) [0x00037] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/PreviewMain.cs:39 
  at Outracks.Fuse.Preview.PreviewWithDaemon.Preview (Outracks.Fuse.Preview.PreviewArguments argument) [0x000d2] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/PreviewWithDaemon.cs:70 
  at Outracks.Fuse.Preview.CLI.PreviewCliCommand.RunInternal (System.String[] args) [0x00033] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/CLI/PreviewCliCommand.cs:135 
  at Outracks.Fuse.Preview.CLI.PreviewCliCommand.Run (System.String[] args) [0x00000] in /Users/outracks/buildAgent1/work/b939dc4c6ac331f9/Source/Outracks.Fuse.Preview/CLI/PreviewCliCommand.cs:97

Any ideas?

Best regards,

Roberto.

Hey,

Unfortunaly we’re not supporting preview of apps in VM’s, which doesn’t implement/simulate a proper graphic driver. Sorry for the inconvenience, however preview on Android and iOS should work just fine.

I hope it was okey for you that I formated your post a bit.

Hi,

I am getting the same error and I am using a MAC. No Virtual Machine. Can you please let me know why it is not building.

Another thing, I have used template as Example Project and created a new appliaction. When I Preview for iOS, it opens the app in Xcode, thats good. But just for the sample application it is creating many files that are not relevant to the app example. The app example only displays 3 pages with some simple functionality. I created the .IPA file and it is 19MB which I think is not good from developer side.

Hi,

So you get the exact error “No OpenGL pixel format”? If so could you tell me more about your Mac, type of mac and OS X version?

To clarify your second point. Preview mode is not the same as deployment mode. In preview mode, all types must be included in the build, so that you are able to edit code without needing to redeploy (auto reload feature). Preview mode is only meant to be used during development. The negative effect is that the app becomes huge in terms of size. However you should use fuse build in case you want to build an app ready for deployment (it generates a much smaller app, by stripping away code that isn’t in use).

Hi,

Could you include some information about your hardware? Specifically the GPU is interesting, as error seems to indicate that Fuse is unable to find a suitable pixel format for the preview window’s OpenGL context.