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

[Indev 0.47.2] Crashes when Unfocused

Fanta

Content Developer
P3D Developer
Global Moderator
It does not happen 100% of the time, but it happens a lot, there's also this issue after the last update, when i alt-tab i either crash with this bug report or the game hangs for about 5-10 secs, i.e it greys-out like it's about to crash in a (Pokemon3D has stopped working) kind of way but becomes normal after those 5-10 secs
.

Code:
Kolben Games Crash Log V 2.1
Pokémon 3D has crashed!
// Missingno.

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

Game information:

Pokémon 3D Indev version: 0.47.2 (77)
Content Packs: {}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (126000)
Playing on Servers: TRUE (Official P3D Server/karp.pokemon3d.net:15124)
Game Environment: PauseScreen
Actionscript: No script running
File Validation: True

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

System specifications:

Operating system: Microsoft Windows 8.1 Pro [6.2.9200.0]
System time: 16-May-14 5:57:20 AM
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: A previous Draw call threw an unhandled exception. See InnerException for details.
InnerException: Begin cannot be called again until End has been successfully called.
BaseException: Begin cannot be called again until End has been successfully called.
HelpLink: No helplink available.
Data: Items: 0
Source: Microsoft.Xna.Framework.Game

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

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

nilllzz

Original Developer
Administrator
P3D Developer
It does not happen 100% of the time, but it happens a lot, there's also this issue after the last update, when i alt-tab i either crash with this bug report or the game hangs for about 5-10 secs, i.e it greys-out like it's about to crash in a (Pokemon3D has stopped working) kind of way but becomes normal after those 5-10 secs
.

Code:
Kolben Games Crash Log V 2.1
Pokémon 3D has crashed!
// Missingno.

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

Game information:

Pokémon 3D Indev version: 0.47.2 (77)
Content Packs: {}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (126000)
Playing on Servers: TRUE (Official P3D Server/karp.pokemon3d.net:15124)
Game Environment: PauseScreen
Actionscript: No script running
File Validation: True

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

System specifications:

Operating system: Microsoft Windows 8.1 Pro [6.2.9200.0]
System time: 16-May-14 5:57:20 AM
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: A previous Draw call threw an unhandled exception. See InnerException for details.
InnerException: Begin cannot be called again until End has been successfully called.
BaseException: Begin cannot be called again until End has been successfully called.
HelpLink: No helplink available.
Data: Items: 0
Source: Microsoft.Xna.Framework.Game

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

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 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.
Your description is indication enough for me to believe that it's either your drivers, .Net/XNA framework or another program.
As I said before, I can't replicate this.
Try to downgrade to an older version and try there as well.

It's not a bug, so I will move this to Community Support.
 

Fanta

Content Developer
P3D Developer
Global Moderator
Your description is indication enough for me to believe that it's either your drivers, .Net/XNA framework or another program.
As I said before, I can't replicate this.
Try to downgrade to an older version and try there as well.

It's not a bug, so I will move this to Community Support.
It only happens in 0.47+, never had that issue before.
 

Fanta

Content Developer
P3D Developer
Global Moderator
Did you try?
well....i don't think anything changed with my computer between the updates....but sure, i'll try that. i just hope it's not a server related issue, cause i can't play on servers with an older version.
Thanks.
 

nilllzz

Original Developer
Administrator
P3D Developer
well....i don't think anything changed with my computer between the updates....but sure, i'll try that. i just hope it's not a server related issue, cause i can't play on servers with an older version.
Thanks.
It's not a bug, meaning nothing is wrong with the game. I guess the only crash reports on BugCatcher that are exactly the same source are yours.
 

Fanta

Content Developer
P3D Developer
Global Moderator
It's not a bug, meaning nothing is wrong with the game. I guess the only crash reports on BugCatcher that are exactly the same source are yours.
In that case i suggest you somehow block this exact report from reaching your database, or else it will probably flood it :p
 
J

jianmingyong

Guest
I have this bug only when unfocus... But no log and no crash. Just not responding ( either for 30 sec or forever )
 

Fanta

Content Developer
P3D Developer
Global Moderator
Did you test with an older version though?
I have been testing it for the past hour or two in version [0.46.2] , no problems what so ever,
Just to be fair, i was testing on an offline account and not on servers, (since i can't use the online account in previous versions)

Update: it also crashes while playing with an offline save in 0.47.2
 
Last edited:

goofyskaterguy

Fisherman
My screen has randomly been flashing since last update... idk if its really doing anything but it like flashing for a fraction of a second... idk why
 

nilllzz

Original Developer
Administrator
P3D Developer
I don't know what the actual problem is, but I am guessing from the crashlog:
There's a thing in the game (called "SpriteBatch") that starts up every single frame with a method called "Begin". And at the end of every frame, a method gets called with the name "End" (see resemblance in the crashlog).
I am interpreting the crashlog this way, that it cannot call or execute the "End" function (which is made by Microsoft btw, so not my fault, I can't fix it). Oddly enough, it doesn't throw a crash or does anything else. And because the SpriteBatch didn't get ended properly, the next time "Being" gets called, this happens:

Code:
"Begin cannot be called again until End has been successfully called."
So I worked around that by checking if End got called, and let the game not render until End got successfully called. It will be included in the next update. Let me know what happens then.
 

nilllzz

Original Developer
Administrator
P3D Developer
Just as a heads up, the "Not responding" issue is going to be fixed in the next version of the game.
Apparently, some XNA functions regarding the MediaPlayer aren't that polished so I had to find a way around them.
 

Fanta

Content Developer
P3D Developer
Global Moderator
Just as a heads up, the "Not responding" issue is going to be fixed in the next version of the game.
Apparently, some XNA functions regarding the MediaPlayer aren't that polished so I had to find a way around them.
Could that be a possible fix for the crash too, cause i'm pretty sure i swarmed the bug catcher databse with the same bug report by now :p
 
Top