New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`OpenRA.Utility X --png` fails with NullReferenceException #15760

Open
ogrady opened this Issue Oct 31, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@ogrady

ogrady commented Oct 31, 2018

Issue Summary

When following the tutorial from the wiki on how to extract a PNG with the Utility, the final step fails with an exception on a clean install.

System Information

  • Operating System: Mac OS 10.13.6
  • .NET / Mono Version: Mono 5.10.1.47
  • OpenRA Version: 8b8a14e
  • Mod: -

Additional Information:

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at OpenRA.Graphics.Palette.AsSystemPalette (OpenRA.Graphics.IPalette palette) [0x00070] in <b5f72610442a4a0d91b2c8de25a08d33>:0
  at OpenRA.Mods.Common.UtilityCommands.ConvertSpriteToPngCommand.OpenRA.IUtilityCommand.Run (OpenRA.Utility utility, System.String[] args) [0x0014d] in <d5b77b84bf774f8e92497dcab4864a81>:0
  at OpenRA.Program.Main (System.String[] args) [0x002af] in <1623067990b4428ea97422d1518f3e41>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at OpenRA.Graphics.Palette.AsSystemPalette (OpenRA.Graphics.IPalette palette) [0x00070] in <b5f72610442a4a0d91b2c8de25a08d33>:0
  at OpenRA.Mods.Common.UtilityCommands.ConvertSpriteToPngCommand.OpenRA.IUtilityCommand.Run (OpenRA.Utility utility, System.String[] args) [0x0014d] in <d5b77b84bf774f8e92497dcab4864a81>:0
  at OpenRA.Program.Main (System.String[] args) [0x002af] in <1623067990b4428ea97422d1518f3e41>:0
@Phrohdoh

This comment has been minimized.

Member

Phrohdoh commented Oct 31, 2018

Are you using the files that the wiki tutorial uses as an example, or other files?

If the latter, which files?

@ogrady

This comment has been minimized.

ogrady commented Oct 31, 2018

I am using the exact commands as described in the wiki with the same arguments, so ttnkicon.shp and temperat.pal.

@pchote

This comment has been minimized.

Member

pchote commented Oct 31, 2018

IIRC the bit that is crashing was a workaround for a bug in mono version ~2.8.
We can safely remove that, and it will fix the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment