1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Like RaceDepartment on Facebook.

Unhandled exception in 0.7.0.3 Terrain

Discussion in 'Bob's Track Builder' started by Fatboymart, Apr 28, 2009.

  1. I have a problem when trying to build a section of terrain to act as a pit.

    Default settings
    No objects
    Tarmac001 road texture


    XP Pro SP3
    Intel Core2 Quad
    CPU Q9399 @ 2.50GHz
    2.5GHz, 2.00 GB of RAM
    Nvidia GeForce 7800GT

    Select main track.
    Open Terrain editor
    Unselect option to cover entire track in favour of manual option
    Select right option only
    Place mouse onto main and drag off track to start terrain build
    Get to desired length – but go one step forward too far (which results in whole track terrain coverage) reverse action with mouse to reduce length – crash.

    New full install of direct x 9c.
    New install of .net up to version 3.5 (just in case)

    New Graphics drivers

    I didn’t get this far in .0.6.0.0 to know if its 0.7.0.0 related or not

    ERROR MESSAGE:

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

    ************** Exception Text **************
    System.ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length
    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
    at BobsBits.XPacks.GetMaterialByPath(String Path, XPack& XPack)
    at BobsTrackBuilder.frmTerrain.RetrieveMaterialsAndImages()
    at BobsTrackBuilder.frmTerrain.SetNewMaterial()
    at BobsTrackBuilder.frmTerrain.butMaterialOK_Click(Object sender, EventArgs e)
    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)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    MC
    Assembly Version: 3.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    ‹–š™‡›ŽœŒ“˜›œ‰˜
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    License
    Assembly Version: 1.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
    ----------------------------------------
    BobsTrackBuilder
    Assembly Version: 0.7.0.3
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
    ----------------------------------------
    BobsBits
    Assembly Version: 1.1.1.5
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.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.3053
    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/BobsTrackBuilder/ICSharpCode.SharpZipLib.DLL
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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.
     

    Attached Files:

  2. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

    You will need to include the XPack folder too as it contains stuff you have added otherwise I cannot open the file.
     
  3. OK ill find a site to upload them too.

    BTW The XPack folder contains the zipped default folder and the Savannah - Haywood - Rural - European folders, as well as a common file and zip folder.

    I have not made any changes (wouldn't know how to)

    Xpack is 150mb.
     
  4. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

    Unaltered zips aren't needed, only the content you have added (even if that is indirectly through the BTB interface ;) )
     
  5. Now I am confused:)

    If what your looking for is within the xpack folder and what is in the xpack folder is just the zipped xpacks what do I attach?:cyclops:

    I am guessing - if I have only used your default tarmac001 and one other road surface, are you asking for those two zip files IE Default and Savannah (gravel 03)


    sourced from this folder:

    C:\Program Files\BobsTrackBuilder\My Projects\Llwyn on 270409 terrain pits\XPacks
     
  6. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

    The file it first fails on is "Common\\Textures\\Merthyer close up.jpg".
     
  7. That Jpg is 11 meg. is that want you require?
     
  8. I have found if I allow the terrain wizard to add a full terrain both sides of the track I have no issues.

    The crash only applies when I try and manually add a short section
     
  9. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

  10. I'll continue as point 5. I'm just experimenting again having been to busy to catch up with the latest versions over the last few months.

    I'm really enjoying the simple way to create terrain and place objects.

    Even my track looks good.

    Thanks

    Martin
     
  11. Hello Piddy.

    I made the crash happen again.

    From file/new I create a closed track.

    I have all xpacks uncheck bar Default.

    Default road texture

    no background jpg

    open terrain editor, select click & drag.

    create terrain in the normal way.

    decide length of terrain before releasing left mouse (usually crashes now)

    I go back to editor to highlight "left 1" or "Right 1"

    Thats when I get uhhandled exception.

    I guess what your looking for is attached?
     

    Attached Files:

  12. Code:
    Parameter name: index
       at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at BobsTrackBuilder.frmTerrain.lboList_SelectedIndexChanged(Object sender, EventArgs e)
       at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
       at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
       at System.Windows.Forms.ListBox.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)
    
    here you go piddy, replicate fatboymart conditions.

    1)made closed track.open terrain click & dragged around top view,and exception error

    op: vista 64 bit
    memory: 4 gb
    gfx : 768mb gtx 7900 nvidia
    sound: sb xfi

    the only problem i saw here was the terrain was listed in the terrain box,but no actually terrain was in the 3dview


    yes i know about the non support for vista.please don't say it that, no other problem with it so far & btb
    loads all projects/xpacks/images .:)
     
  13. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

    I still can't replicate either problem. Can anyone else please test?
     
  14. Yes i can replicate the error

    It seems if i drag to the Right it's ok

    If i drag to the Left, the terrain disappears from the 3D view when i let go of the mouse button. Then if i select a terrain in the list it crashes.

    Win XP
    Nvidia GF 8600GT
    Q6600
     
  15. I'm still having the problem. I have updated my graphics drivers and downloaded DX and .NET just in case.
     
  16. Brendon Pywell

    Brendon Pywell
    Bob's Track Builder

    Thanks .. got it. ;)