• ✨ 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.47.2] Crash When Unfocused

Exemplary

Gym Leader
Describe the bug you experienced here.

What I expected to happen:
I switched to my internet browser to check something on bulbapedia. I expected to be able to go back to my game.

What actually happened:
It crashed.

Steps to reproduce:
1. Go look something up on bulbapedia
2. maybe your game will crash?

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 (37802)
Playing on Servers: FALSE
Game Environment: PauseScreen
Actionscript: No script running
File Validation: True

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

System specifications:

Operating system: Microsoft Windows 7 Home Premium  [6.1.7601.65536]
System time: 5/22/2014 4:36:10 PM
System language: English (United States)(ENU) / Loaded game language: en
Decimal separator: .

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

Graphics Card information:

[CardName(s): "ATI Radeon HD 4650 "]
[CardRAM(s) : "1073741824"]

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

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.
 

Malcaroni

Bugs Moderator
Trusted Support
Retired Mod
Was it originally full screen and then you alt-tabbed out of it while still in fullscreen?
 
J

jianmingyong

Guest
I am sorry to say that this seem to be duplicate of someone report that was being moved to the community support zone for quite sometime and nilllzz said that it might be fixed in the next version :)
 

Tornado9797

Content Developer
P3D Developer
Global Moderator
I am sorry to say that this seem to be duplicate of someone report that was being moved to the community support zone for quite sometime and nilllzz said that it might be fixed in the next version :)
This appears to be the same unfocused crash bug from earlier. Since the original post is now in Community Support, I'll make this thread the official "bug" thread.
 

Fanta

Content Developer
P3D Developer
Global Moderator
This appears to be the same unfocused crash bug from earlier. Since the original post is now in Community Support, I'll make this thread the official "bug" thread.
Just wondering!, why is this marked as fixed in next version?
This is the other thread http://pokemon3d.net/forum/threads/7456
What nilllzz said might be fixed in the next version is not the crash, it was something else.
 

Fanta

Content Developer
P3D Developer
Global Moderator
So....I've been testing this for awhile now, and I'm like 97.6% sure that the game only crash when I alt-tab the game.
but it does not happen when I minimize the game. since the server is offline most of the time, i can't be 100%, cause I only test there. but it can be (and can be not) related to the game accepting mouse-clicks while unfocused (since the game also doesn't accept mouse clicks while minimized). hope that may help you somehow :p
 

nilllzz

Original Developer
Administrator
P3D Developer
So....I've been testing this for awhile now, and I'm like 97.6% sure that the game only crash when I alt-tab the game.
but it does not happen when I minimize the game. since the server is offline most of the time, i can't be 100%, cause I only test there. but it can be (and can be not) related to the game accepting mouse-clicks while unfocused (since the game also doesn't accept mouse clicks while minimized). hope that may help you somehow :p
The problem is an XNA implementation of the Windows media player interface which for some reason doesn't request any new resources once the program is not focused anymore. But since the latest update, the game requests access to this interface every tick, and once there are not enough resources for accessing and executing this interface method, the game cannot allocate more resources and will crash until you focus it again, or it will just crash entirely.
 
Top