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

Fixed [Indev 0.52.1] Battle End Crash

Arthur117

Trainer
Random Game crash upon knocking out a wild pokémon. It happened when I knocked out a wild Pidgey with my Pidgey in one hit on route 29, but before I received EXP.

What I expected to happen:
The battle to end normally

What actually happened:
The game crashed

Steps to reproduce:
Random.
(Add a crash log here if available and enclose it in the code tag with this button:
)

Code:
Kolben Games Crash Log V 2.4
Pokémon 3D has crashed!
// GET TO DA CHOPPA

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

Game information:

Pokémon 3D Indev version: 0.52.1 (86)
Content Packs: {XY Models,HQ4X,Emerald Texture Pack,HGSS Music Pack HD}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (595056)
Playing on Servers: TRUE (Arthur's Server/thuis.webstudiovandijk.nl:15124)
Game Environment: OverworldScreen
Actionscript: No script running
File Validation: True
Sandboxmode: False

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

Screen state for the current screen (OverworldScreen)

IsSurfing=False
IsRiding=False
LevelFile=route29.dat
UsedStrength=False
EntityCount=1269

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

System specifications:

Operating system: Microsoft Windows 7 Ultimate  [6.1.7601.65536]
Core architecture: 64 Bit
System time: 7-2-2015 17:37:52
System language: Dutch (Netherlands)(NLD) / Loaded game language: en
Decimal separator: ,
Available physical memory: 7,89 Gigabyte
Available logical processors: 8

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

.Net installation information:

v2.0.50727  2.0.50727.5420  SP2
v3.0  3.0.30729.5420  SP2
v3.5  3.5.30729.5420  SP1
v4 
  Client  4.5.52213
  Full  4.5.52213
v4.0 
  Client  4.0.0.0

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

Graphics Card information:

[CardName(s): "Intel(R) HD Graphics 4600; NVIDIA GeForce GTX 850M"]
[CardRAM(s) : "1073741824; 2147483648"]

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

Error information:

Message: Resource size must be greater than zero.
Parameternaam: width
InnerException: NOTHING
BaseException: Resource size must be greater than zero.
Parameternaam: width
HelpLink: No helplink available.
Data: Items: 0
Source: Microsoft.Xna.Framework.Graphics
Win32 Errorcode: -1

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

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:

   bij Microsoft.Xna.Framework.Graphics.Texture2D.ValidateCreationParameters(ProfileCapabilities profile, Int32 width, Int32 height, SurfaceFormat format, Boolean mipMap)
   bij Microsoft.Xna.Framework.Graphics.RenderTarget2D.CreateRenderTarget(GraphicsDevice graphicsDevice, Int32 width, Int32 height, Boolean mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, Int32 preferredMultiSampleCount, RenderTargetUsage usage)
   bij Microsoft.Xna.Framework.Graphics.RenderTarget2D..ctor(GraphicsDevice graphicsDevice, Int32 width, Int32 height)
   bij net.Pokemon3D.Game.NetworkPlayer.SpriteFontTextToTexture(SpriteFont font, String text)
   bij net.Pokemon3D.Game.NetworkPlayer.Update()
   bij net.Pokemon3D.Game.Level.UpdateEntities()
   bij net.Pokemon3D.Game.Level.Update()
   bij net.Pokemon3D.Game.OverworldScreen.Update()
   bij net.Pokemon3D.Game.Core.Update(GameTime gameTime)
   bij net.Pokemon3D.Game.GameController.Update(GameTime gameTime)
   bij Microsoft.Xna.Framework.Game.Tick()
   bij Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   bij Microsoft.Xna.Framework.GameHost.OnIdle()
   bij Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
   bij Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   bij System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   bij System.Windows.Forms.Application.Run(Form mainForm)
   bij Microsoft.Xna.Framework.WindowsGameHost.Run()
   bij Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   bij Microsoft.Xna.Framework.Game.Run()
   bij net.Pokemon3D.Game.Program.Main(String[] args)

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

Fanta

Content Developer
P3D Developer
Global Moderator
yea, I just got that crash as well, in my case I was battling a trainer and exactly after finishing the battle it crashed.
 

nilllzz

Original Developer
Administrator
P3D Developer
It is not related to battling however.

Code:
CallStack:

  bij Microsoft.Xna.Framework.Graphics.Texture2D.ValidateCreationParameters(ProfileCapabilities profile, Int32 width, Int32 height, SurfaceFormat format, Boolean mipMap)
  bij Microsoft.Xna.Framework.Graphics.RenderTarget2D.CreateRenderTarget(GraphicsDevice graphicsDevice, Int32 width, Int32 height, Boolean mipMap, SurfaceFormat preferredFormat, DepthFormat preferredDepthFormat, Int32 preferredMultiSampleCount, RenderTargetUsage usage)
  bij Microsoft.Xna.Framework.Graphics.RenderTarget2D..ctor(GraphicsDevice graphicsDevice, Int32 width, Int32 height)
This shows that it is a problem in Microsoft's XNA framework.

Edit: Totally forgot: this is fixed in next version, this occurs when a network player's name is not correctly transported over to a client.
 

Arthur117

Trainer
So then the game tries to draw a player name, but the resource is "zero" in width (No characters or a "nul" character)... I see.

Well, that just goes to show: Save early, save often hehe. I'm gonna re-train my pidgey now.

Thanks for the feedback :)
 
Top