• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Duplicate [Indev 0.46.1] Crash Trying To Delete Non-Existent Chat Characters

Fanta

Content Developer
P3D Developer
Global Moderator
after some testing i found one of the reasons that causes the "StartIndex cannot be less than zero"
when you type something in chat then use the arrows to go back a few letters to correct something and keep holding the "Backspace" button till the end, the game will crash with the aforementioned error.

Code:
Kolben Games Crash Log V 2.0
Pokémon 3D has crashed!

---------------------------------------------------------------------------------

Game information:

Pokémon 3D Indev version: 0.46.1
Content Packs: {Anime Cries,HGSS Music Pack HD}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (126000)
Playing on Servers: TRUE (Arisonius's Server/72.24.255.222:15124)
Game Environment: ChatScreen
Actionscript: No script running
File Validation: True

---------------------------------------------------------------------------------

System specifications:

Operating system: Microsoft Windows 8.1 Pro [6.2.9200.0]
System time: 30-Mar-14 1:25:19 PM
System language: English (United States)(ENU) / Loaded game language: en
Decimal separator: .

---------------------------------------------------------------------------------

Graphics Card information:

[CardName(s): "ATI Mobility Radeon HD 4300/4500 Series"]
[CardRAM(s) : "536870912"]

---------------------------------------------------------------------------------

Error information:

Message: StartIndex cannot be less than zero.
Parameter name: startIndex
InnerException: NOTHING
BaseException: StartIndex cannot be less than zero.
Parameter name: startIndex
HelpLink: No helplink available.
Data: Items: 0
Source: mscorlib

---------------------------------------------------------------------------------

Error solution:
(The provided solution might not work for your problem)

Error ID: -1
Error Type: NaN
Error Description: The error is undocumented in the error handling system.
Error Solution: NaN

---------------------------------------------------------------------------------

CallStack:

   at System.String.Remove(Int32 startIndex, Int32 count)
   at _2._5DHero.ChatScreen.Update()
   at _2._5DHero.Basic.Update(GameTime gameTime)
   at _2._5DHero.DGame.Update(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameHost.OnIdle()
   at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at Microsoft.Xna.Framework.Game.Run()
   at _2._5DHero.Program.Main(String[] args)

---------------------------------------------------------------------------------

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.
 

Attachments

Last edited:

Tornado9797

Content Developer
P3D Developer
Global Moderator
after some testing i found the reason " if it is the only one" that causes the "StartIndex cannot be less than zero"
when you type something in chat then use the arrows to go back a few letters to correct something and keep holding the "Backspace" button till the end, the game will crash with the aforementioned error.



Kolben Games Crash Log V 2.0
Pokémon 3D has crashed!

---------------------------------------------------------------------------------

Game information:

Pokémon 3D Indev version: 0.46.1
Content Packs: {Anime Cries,HGSS Music Pack HD}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (126000)
Playing on Servers: TRUE (Arisonius's Server/72.24.255.222:15124)
Game Environment: ChatScreen
Actionscript: No script running
File Validation: True

---------------------------------------------------------------------------------

System specifications:

Operating system: Microsoft Windows 8.1 Pro [6.2.9200.0]
System time: 30-Mar-14 1:25:19 PM
System language: English (United States)(ENU) / Loaded game language: en
Decimal separator: .

---------------------------------------------------------------------------------

Graphics Card information:

[CardName(s): "ATI Mobility Radeon HD 4300/4500 Series"]
[CardRAM(s) : "536870912"]

---------------------------------------------------------------------------------

Error information:

Message: StartIndex cannot be less than zero.
Parameter name: startIndex
InnerException: NOTHING
BaseException: StartIndex cannot be less than zero.
Parameter name: startIndex
HelpLink: No helplink available.
Data: Items: 0
Source: mscorlib

---------------------------------------------------------------------------------

Error solution:
(The provided solution might not work for your problem)

Error ID: -1
Error Type: NaN
Error Description: The error is undocumented in the error handling system.
Error Solution: NaN

---------------------------------------------------------------------------------

CallStack:

at System.String.Remove(Int32 startIndex, Int32 count)
at _2._5DHero.ChatScreen.Update()
at _2._5DHero.Basic.Update(GameTime gameTime)
at _2._5DHero.DGame.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Microsoft.Xna.Framework.Game.Run()
at _2._5DHero.Program.Main(String[] args)

---------------------------------------------------------------------------------

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.
While we thank you for posting about this bug, next time paste the contents of the crash log in a Code Module (< > on the font menu) like so:
Code:
Kolben Games Crash Log V 2.0
Pokémon 3D has crashed!

---------------------------------------------------------------------------------

Game information:

Pokémon 3D Indev version: 0.46.1
Content Packs: {Anime Cries,HGSS Music Pack HD}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (126000)
Playing on Servers: TRUE (Arisonius's Server/72.24.255.222:15124)
Game Environment: ChatScreen
Actionscript: No script running
File Validation: True

---------------------------------------------------------------------------------

System specifications:

Operating system: Microsoft Windows 8.1 Pro [6.2.9200.0]
System time: 30-Mar-14 1:25:19 PM
System language: English (United States)(ENU) / Loaded game language: en
Decimal separator: .

---------------------------------------------------------------------------------

Graphics Card information:

[CardName(s): "ATI Mobility Radeon HD 4300/4500 Series"]
[CardRAM(s) : "536870912"]

---------------------------------------------------------------------------------

Error information:

Message: StartIndex cannot be less than zero.
Parameter name: startIndex
InnerException: NOTHING
BaseException: StartIndex cannot be less than zero.
Parameter name: startIndex
HelpLink: No helplink available.
Data: Items: 0
Source: mscorlib

---------------------------------------------------------------------------------

Error solution:
(The provided solution might not work for your problem)

Error ID: -1
Error Type: NaN
Error Description: The error is undocumented in the error handling system.
Error Solution: NaN

---------------------------------------------------------------------------------

CallStack:

   at System.String.Remove(Int32 startIndex, Int32 count)
   at _2._5DHero.ChatScreen.Update()
   at _2._5DHero.Basic.Update(GameTime gameTime)
   at _2._5DHero.DGame.Update(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameHost.OnIdle()
   at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at Microsoft.Xna.Framework.Game.Run()
   at _2._5DHero.Program.Main(String[] args)

---------------------------------------------------------------------------------

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.
Now, I'll go and see if I can replicate this crash.
 

Fanta

Content Developer
P3D Developer
Global Moderator
well....it was the first time i use spoiler tags, and i searched google on how to use it, didn't know i could use that.
 

Tornado9797

Content Developer
P3D Developer
Global Moderator
well....it was the first time i use spoiler tags, and i searched google on how to use it, didn't know i could use that.
It's actually code tags, which as [codeq](content)[/codeq], but without the q.

As for your crash, I have confirmed it. This happens with all text boxes (Multiplayer and Debug). It is the result of trying to delete something that doesn't exist:

1. Type any one letter into the chat.
2. Arrow key behind it.
3. Attempt to delete the nothing behind it.
4. Crash profit!

However, if you have absolutely nothing in the chat prompt, the crash will not occur. You need some characters in the prompt to trigger.
 
Top