• ✨ 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 (0.25) Music Bug

Status
Not open for further replies.

Sola

Elite
Contributor
After i stayed some time with the game minimized, but with music on while in one pokecenter, the music just stopped. The game still runs normally, but without music. To make it back i had to go out or turn off and turn on the music.
 

nilllzz

Original Developer
Administrator
P3D Developer
This is not a bug but rather a methode of the XNA framework to reduce RAM/CPU usage by disposing stuff while the window is minimized. This contains to not udpate the intern mediaplayer class.
To enable the music again, you would have to make the game to start the music at some point again because I know about this and every time the music gets started it sets looping to true again.
I cannot do anything about this.
 

nilllzz

Original Developer
Administrator
P3D Developer
Everytime i alt+tab now, the music stops.
I don't really know how you guys do these alt + tab things so that programs crash o_O I tried it like 100 times in a row and music + the game itself worked perfectly...
 

Sola

Elite
Contributor
The crash happened again once. I really don`t know why, i was just stopped in some random spot. The music one happened only after the game stop it because of the reason you gave up there.
 

Sola

Elite
Contributor
nilllzz it happend again, the music one. I think it is happening when I atl+tab the game while it is in the middle on the loop, when the music stops before it restart to play
 

nilllzz

Original Developer
Administrator
P3D Developer
since it crashes, can you give me the crash log it generates?
 

Sola

Elite
Contributor
it was in the last update and after that my log file was cleared. If it happens again I post it. But it was the same as other times, the same message, but it didn`t generated that big file that crashes do now.
 

Sola

Elite
Contributor
Good (or Bad) News!!! nilllzz
the game just crashed when i alt+tab
Here it is:

Pokémon 3D has crashed!
---------------------------

System specifications:
Pokémon 3D version: 0.25
Operating system: Microsoft Windows 7 Home Premium [6.1.7601.65536]
Decimal seperator: ,
---------------------------

Here is further information:
Message: Object reference not set to an instance of an object.
InnerException: NOTHING
Source: 2.5DHero
StackTrace: at _2._5DHero.PauseScreen..ctor(Screen currentScreen)
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://www.pokemon3d.net/forum/" to report the error in the bugs section.
 

nilllzz

Original Developer
Administrator
P3D Developer
Maybe fixed it (I checked for each object that could get a non-pointer-exception)
 

Daziman

Champion
Trusted Support
Retired Mod
I press Alt+tab and my game crashed too!
Code:
Pokémon 3D has crashed!
---------------------------
 
System specifications:
Pokémon 3D version: 0.25
Operating system: Microsoft Windows 7 Home Premium  [6.1.7601.65536]
Decimal seperator: ,
---------------------------
 
Here is further information:
Message: Referencia a objeto no establecida como instancia de un objeto.
InnerException: NOTHING
Source: 2.5DHero
StackTrace:    en _2._5DHero.PauseScreen..ctor(Screen currentScreen)
  en _2._5DHero.Basic.Update(GameTime gameTime)
  en _2._5DHero.DGame.Update(GameTime gameTime)
  en Microsoft.Xna.Framework.Game.Tick()
  en Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
  en Microsoft.Xna.Framework.GameHost.OnIdle()
  en Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
  en Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
  en System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
  en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
  en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
  en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
  en System.Windows.Forms.Application.Run(Form mainForm)
  en Microsoft.Xna.Framework.WindowsGameHost.Run()
  en Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
  en Microsoft.Xna.Framework.Game.Run()
  en _2._5DHero.Program.Main(String[] args)
 
You should report this error.
 
Go to "http://www.pokemon3d.net/forum/" to report the error in the bugs section.
I pressed Alt+tab a good couples of times, this is the second time that my game crash by the same bug
 

nilllzz

Original Developer
Administrator
P3D Developer
That's always Win7 (I am running 8) maybe it has something to do with that.
I just checked everything in the crashing method and there is nothing wrong.
The bug is about an object that is not initialized. SO I just made a few If statements for each object in this method that could cause a object reference not set to an instance bug.
 
Status
Not open for further replies.
Top