Users browsing this thread: 1 Guest(s)
Ohana3DS gives me "Unable to read beyond the end of the stream" error
#1
Hey guys. Whenever I try to open a Pokemon US/UM .bin file, I get an error saying "Unable to read beyond the end of the stream." Followed by this long text:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
  at System.IO.__Error.EndOfFile()
  at System.IO.BinaryReader.ReadByte()
  at Ohana3DS_Rebirth.Ohana.IOUtils.readString(BinaryReader input, UInt32 address, Boolean advancePosition)
  at Ohana3DS_Rebirth.Ohana.Models.BCH.load(MemoryStream data)
  at Ohana3DS_Rebirth.Ohana.Models.PocketMonsters.PC.load(Stream data)
  at Ohana3DS_Rebirth.Ohana.FileIO.load(Stream data)
  at Ohana3DS_Rebirth.Ohana.FileIO.load(Stream data)
  at Ohana3DS_Rebirth.Ohana.FileIO.load(String fileName)
  at Ohana3DS_Rebirth.FrmMain.open(String fileName)
  at Ohana3DS_Rebirth.FrmMain.MenuOpen_Click(Object sender, EventArgs e)
  at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
  at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
  at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
  at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
  at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
  at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
  at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
  at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  at System.Windows.Forms.ToolStrip.WndProc(Message& m)
  at System.Windows.Forms.ToolStripDropDown.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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8943 (WinRelRS4.050727-8900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Ohana3DS Rebirth
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Teerapan/Downloads/o3ds_16_04_2016/Ohana3DS%20Rebirth.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8941 (WinRelRS4.050727-8900)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Even when I press "Continue", nothing happens. Can anyone please help? I wanna look at the Pokemon model animations in Ohana3DS, but the error keeps appearing.

Edit: I got the files from a downloaded .CIA ROM, the USA version. I extracted the ROM using HackingToolKit9DS and then I used Pk3DS to extract that "4" file to get those .bin files. I feel like I followed the guide at https://gbatemp.net/threads/wip-ultra-su...ns.490365/ correctly. Here are some of my files.    

I feel like I have gotten those files correctly, yet I still don't get what is causing this error. I opened an issue on the Ohana3DS Rebirth GitHub page. I feel like I followed the extraction method correctly, and those are the files that Ohana3DS should be able to open. But I don't know what is happening with the error. Can anyone please help?

Edit 2: I got a version of Ohana3DS from https://onedrive.live.com/?authkey=%21AB...ion=locate , and it worked. Thanks for the lack of replies.
Reply
Thanked by:


Forum Jump: