1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Corrupt project (No temp files)

Discussion in 'Bob's Track Builder' started by M Keys, Feb 14, 2014.

  1. Regretfully, I wasnt saving versions along project. I am running the latest beta (0.9.0?) and the program dosent appear to be logging temp files. Is there anyone who could take a look, and see if they could recover the error? Many thanks in advance.

    Link to project files:
    https://mega.co.nz/#!kAQChaRa!1blxWrCOTSLmUsDaBefwIzdpqcR7zDlVEkgynfmWKxg

    I'm getting this on start up:

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

    ************** Exception Text **************
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at †††
    ††‰Š–—.†††
    ††‰Š––.SetMaterialPositions(†††
    ††‰Œ•ž& loSS)
    at †††
    ††‰Š’ˆ.†††
    ††‰Š’‡.SetMaterialPositions(†††
    ††‰Œ•ž& loSS)
    at †††
    ††‰‹˜—.†††
    ††‰‹˜–.SetStartPositions()
    at †††
    ††‰‹˜—.†††
    ††‰‹˜–.Calculate(Boolean UsingPointCloud)
    at †††
    ††‰‹Ž.†††
    ††‰‹.†††
    ††‰›”(Object , Boolean UsingPointCloud)
    at †††
    ††‰‹Ž.†††
    ††‰‹.CalculateTracks(Boolean UsingPointCloud)
    at †††
    ††‰‹Ž.†††
    ††‰‹.LoadFromBinary(String ProjectFolder, String Filename, Boolean ForAnUndo, String& ErrorMessage)
    at †††
    ††‰ˆ‡‡.†††
    ††‰ˆ‡†.OpenVenueFile(String ProjectFolder, String Filename, Boolean ForAnUndo)
    at †††
    ††‰ˆ‡‡.†††
    ††‰ˆ‡†.mnuFileOpen_Click(Object sender, EventArgs e)
    at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.MenuItem.MenuItemData.Execute()
    at System.Windows.Forms.Command.Invoke()
    at System.Windows.Forms.Command.DispatchID(Int32 id)
    at System.Windows.Forms.Control.WmCommand(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.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.4984 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    _
    Assembly Version: 0.0.0.0
    Win32 Version: 2.0.50727.4984 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    BobsTrackBuilder
    Assembly Version: 0.9.0.1
    Win32 Version: 2.0.50727.4984 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4985 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4986 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4985 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    0a9798cf-4445-4e10-977f-852768db9575
    Assembly Version: 1.0.0.0
    Win32 Version: 2.0.50727.4984 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
    ----------------------------------------
    Microsoft.DirectX
    Assembly Version: 1.0.2902.0
    Win32 Version: 5.04.00.2904
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
    ----------------------------------------
    Microsoft.DirectX.Direct3D
    Assembly Version: 1.0.2902.0
    Win32 Version: 9.05.132.0000
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll
    ----------------------------------------
    Microsoft.DirectX.Direct3DX
    Assembly Version: 1.0.2911.0
    Win32 Version: 9.12.589.0000
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.DirectX.Direct3DX/1.0.2911.0__31bf3856ad364e35/Microsoft.DirectX.Direct3DX.dll
    ----------------------------------------
    Microsoft.VisualC
    Assembly Version: 8.0.0.0
    Win32 Version: 8.00.50727.4927
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualC/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualC.dll
    ----------------------------------------
    ICSharpCode.SharpZipLib
    Assembly Version: 0.85.5.452
    Win32 Version: 0.85.5.452
    CodeBase: file:///C:/Program%20Files%20(x86)/BobsTrackBuilder/ICSharpCode.SharpZipLib.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.
     
    • Beer Beer x 1
  2. I cannot solve it, but I managed to get a different error message. I opened up venue.bin in a hex editor. There are a few keywords such as Surface1 and each track name. I tried copying what appeared to be one surface (from the second track) and overwriting the surface on the first track. BTB then said Object reference not set to an instance of an object.

    So it doesn't solve the problem, but I think the theory is reasonable.

    If your BTB folder is "protected", some files may not be stored where you expect. Try looking an Application Data to see if they've been put in there.
     
    Last edited: Feb 14, 2014
  3. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

    Thanks for posting your project. I have been able to identify why it won't load - there's a material in the last Track that attempts to use points beyond the end of the shape. I can modify BTB to load this so you will be able to continue the work, however the material will be adjusted and may not look right.

    It would be great to identify what occurred in the lead up to this situation prior to the project being saved. Was there an error? And if not (a longshot here), can you remember what kind of changes you were doing in BTB just prior?

    In any even I will create a new patch and release it soon so these projects can be loaded at least.
     
    • Like Like x 2
    • Agree Agree x 1
  4. could this be the same has my thread brendon, I had the same message but have now solved it, by removing any quick terrain fills I had in projected.
     
  5. Fantastic, thank you all for the response. I ended up starting over on the project, which didn't take too long second time around. Still handy information if this was to ever happen again.

    In regards to what I was doing in the lead up to the error, basically I was building a tunnel through an embankment. So I was using a combination of point to point tracks, and terrain fills. I remember loading or adding a texture to the tunnel, when I got the error window. Stupidly I saved before I restarted the program, and this overwrote my most recent save and locked in whatever the error was. I cant recall exactly what texture I was loading and or on what part of the tunnel it was.

    Appreciate the help, and look forward to the developing of this product!
     
  6. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

    Thanks for your reply. if you can replicate the original error I'd be very interested. ;)
     
    • Agree Agree x 1