TASEmulators / BizHawk

BizHawk is a multi-system emulator written in C#. BizHawk provides nice features for casual gamers such as full screen, and joypad support in addition to full rerecording and debugging tools for all system cores.
http://tasvideos.org/BizHawk.html
Other
2.2k stars 385 forks source link

GNU/Linux NullReferenceException on startup #1633

Closed rdrpenguin04 closed 5 years ago

rdrpenguin04 commented 5 years ago

Followed Building->GNU+Linux instructions, using unix_emerg_patch branch to fix #1632. When I run the emulator (BizHawk_master/output/EmuHawkMono.sh), it crashes:

System.NullReferenceException: Object reference not set to an instance of an object
  at System.Xml.XmlReader.CalcBufferSize (System.IO.Stream input) [0x00006] in <c00f854287d54f4fbdcb5e254b701820>:0 
  at System.Xml.XmlTextReaderImpl.InitStreamInput (System.Uri baseUri, System.String baseUriStr, System.IO.Stream stream, System.Byte[] bytes, System.Int32 byteCount, System.Text.Encoding encoding) [0x0006f] in <c00f854287d54f4fbdcb5e254b701820>:0 
  at System.Xml.XmlTextReaderImpl.InitStreamInput (System.IO.Stream stream, System.Text.Encoding encoding) [0x00000] in <c00f854287d54f4fbdcb5e254b701820>:0 
  at System.Xml.XmlTextReaderImpl..ctor (System.String url, System.IO.Stream input, System.Xml.XmlNameTable nt) [0x0001e] in <c00f854287d54f4fbdcb5e254b701820>:0 
  at System.Xml.XmlTextReaderImpl..ctor (System.IO.Stream input, System.Xml.XmlNameTable nt) [0x00000] in <c00f854287d54f4fbdcb5e254b701820>:0 
  at System.Xml.XmlTextReader..ctor (System.IO.Stream input, System.Xml.XmlNameTable nt) [0x00006] in <c00f854287d54f4fbdcb5e254b701820>:0 
  at System.Xml.XmlDocument.Load (System.IO.Stream inStream) [0x00008] in <c00f854287d54f4fbdcb5e254b701820>:0 
  at Cyotek.Drawing.BitmapFont.BitmapFontLoader.LoadFontFromXmlFile (System.IO.Stream stream) [0x0001f] in <511dce0b5b06460384a622e81f60f787>:0 
  at BizHawk.Bizware.BizwareGL.StringRenderer..ctor (BizHawk.Bizware.BizwareGL.IGL owner, System.IO.Stream xml, System.IO.Stream[] textures) [0x00018] in <511dce0b5b06460384a622e81f60f787>:0 
  at BizHawk.Client.EmuHawk.DisplayManager..ctor (BizHawk.Client.EmuHawk.PresentationPanel presentationPanel) [0x00142] in <4bf196a5396e4e7393673a67d476a430>:0 
  at BizHawk.Client.EmuHawk.MainForm..ctor (System.String[] args) [0x00265] in <4bf196a5396e4e7393673a67d476a430>:0 
  at (wrapper remoting-invoke-with-check) BizHawk.Client.EmuHawk.MainForm..ctor(string[])
  at BizHawk.Client.EmuHawk.Program.SubMain (System.String[] args) [0x00281] in <4bf196a5396e4e7393673a67d476a430>:0

(Mono really wanted me to C/P the whole thing there)

The terminal is blank. When I close the window, the terminal reports that the program was killed. Is there a known fix for this? I tried to Ctrl-F in #1430, but no luck except for once the emulator has actually started.

Let me know if there's anything else I can post that can help, or if I should move this to #1430 or whatnot.

YoshiRulz commented 5 years ago

I've had another look at it and it seems my fix only works when I run msbuild from Rider (and is only necessary in this case), regardless of how I run the executable. Knowing this, I'll just use the command line instead.

YoshiRulz commented 5 years ago

You should be able to use master now. As for being helpful, keeping Linux-specific issues in #1430 is a good idea but IRC would be better.

rdrpenguin04 commented 5 years ago

Thank you for letting me know! BTW, what IRC do you mean? Do you mean the TASVideos Discord or something specific to this?

YoshiRulz commented 5 years ago

freenode #bizhawk