Skip to content
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

1.08 crash when parsing NCAs #3

Guilhem30 opened this Issue Oct 13, 2018 · 2 comments


None yet
3 participants
Copy link

Guilhem30 commented Oct 13, 2018

1.08 crash while 1.07 works fine.
It's a generic error so it probably won't be much help but i don't know how to debug .net

System.Runtime.InteropServices.ExternalException (0x80004005): Une erreur générique s'est produite dans GDI+.
   à System.Drawing.Bitmap..ctor(Stream stream)
   à SwitchSDTool.ControlNACP..ctor(Romfs romfs, String baseTitleID) dans H:\DevProjects\SwitchSDTool\SwitchSDTool\ControlNACP.cs:ligne 67
   à SwitchSDTool.Form1.ReadControlInfo(String titleID, CnmtContentEntry entry) dans H:\DevProjects\SwitchSDTool\SwitchSDTool\Form1.cs:ligne 962
   à SwitchSDTool.Form1.btnParseNCA_Click(Object sender, EventArgs e) dans H:\DevProjects\SwitchSDTool\SwitchSDTool\Form1.cs:ligne 1512
   à System.Windows.Forms.Control.OnClick(EventArgs e)
   à System.Windows.Forms.Button.OnClick(EventArgs e)
   à System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   à System.Windows.Forms.Control.WndProc(Message& m)
   à System.Windows.Forms.ButtonBase.WndProc(Message& m)
   à System.Windows.Forms.Button.WndProc(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


This comment has been minimized.

Copy link

EternityShack commented Jan 12, 2019

I am getting the same error with 1.09, but the cause is different. When parsing NCAs, the tool is apparently trying to read information from a null source.

Parameter name: input
   at System.IO.BinaryReader..ctor(Stream input, Encoding encoding, Boolean leaveOpen)
   at LibHac.Pfs..ctor(Stream stream)
   at SwitchSDTool.Form1.btnParseNCA_Click(Object sender, EventArgs e) in H:\DevProjects\SwitchSDTool\SwitchSDTool\Form1.cs:line 1565
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

@CaitSith2 CaitSith2 closed this Jan 12, 2019


This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.