Unhandled exception in 0.7.0.3 Terrain

F

Fatboymart

  • Fatboymart

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.
 

Attachments

  • Venue.rar
    8.6 KB · Views: 167
  • Unhandled exception.JPG
    Unhandled exception.JPG
    126.2 KB · Views: 362
  • Fatboymart

You will need to include the XPack folder too as it contains stuff you have added otherwise I cannot open the file.

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.
 
  • Fatboymart

Unaltered zips aren't needed, only the content you have added (even if that is indirectly through the BTB interface ;) )

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
 
  • Fatboymart

Yes.

Although you could follow point 5 of http://forum.racedepartment.com/bobs-track-builder/15627-reporting-problem.html and reduce the track to a minimum required to replicate the problem - if that eliminates the image then no I don't need it.

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
 
  • Fatboymart

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?
 

Attachments

  • Venue.rar
    580 bytes · Views: 179
  • Common.zip
    285 bytes · Views: 162
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 .:)
 
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
 
  • Fatboymart

I'm still having the problem. I have updated my graphics drivers and downloaded DX and .NET just in case.
 

Latest News

How long have you been simracing

  • < 1 year

    Votes: 102 12.6%
  • < 2 years

    Votes: 78 9.6%
  • < 3 years

    Votes: 79 9.8%
  • < 4 years

    Votes: 52 6.4%
  • < 5 years

    Votes: 108 13.3%
  • < 10 years

    Votes: 117 14.5%
  • < 15 years

    Votes: 68 8.4%
  • < 20 years

    Votes: 49 6.1%
  • < 25 years

    Votes: 38 4.7%
  • Ok, I am a dinosaur

    Votes: 118 14.6%
Back
Top