Sponsors



Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions

New Member?



 
Register Zunecentive FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Discussions All developers who are coding games may stop by here for any help, suggestions, and everything development related.

Reply
 
LinkBack Thread Tools
Old 07-03-2008, 03:13 AM   #1 (permalink)
Zuner
 
Join Date: Jan 2008
Posts: 54
Reputation: 31
$zB: 54
Donate
Default What happens when you run out of ram?

Im working on my new project (which I will be announcing shortly) but it seems to randomly lock up for no apparent reason. It does not give an error message, It hardlocks and I have to restart the zune. It happens in debug mode or when it is standalone. It happens on multiple zunes as well

I am thinking I might somehow be running out of RAM but am not sure. Is this was happens when you reach the limit? Or does it give a warning message of some kind. If anyone has had a similar problem please let me know. Thanks



Manticore-X is offline   Reply With Quote
Remove Advertisements Sponsored Links
Advertisement
 
Old 07-03-2008, 03:15 AM   #2 (permalink)
Zune Guardian
 
ShotgunSnipist's Avatar
 
Join Date: May 2008
Location: Colorado
Posts: 694
Reputation: 56
Send a message via AIM to ShotgunSnipist
$zB: 365
Donate
Default

Have you tried running it in debug mode?
__________________
Invisible Text. =P
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



ShotgunSnipist is offline   Reply With Quote
Old 07-03-2008, 03:33 AM   #3 (permalink)
zB Programmer
Jr. Member
 
DiNoGames's Avatar
 
Join Date: May 2008
Location: Bremen, germany
Posts: 347
Reputation: 101
Send a message via Skype™ to DiNoGames
$zB: 257
Donate
Default

When you run out of ram in debug mode (connected to XNA/C#) then C# throws an out of memory exception (at least when you load too much textures or such).

The Zune itself should just reboot after a serious error occured. What do you mean with lockup and you have to reboot? The Zune does not do anything and you have to press back and up?

Then it sounds like an endless while loop to me... or similar....

EDIT: You know your code best, so if there are any potential while or repeat loops then put a break point into it AFTER the Zune locked up... If Visual Studio jumps into the loop to the breakpoint then, you have found your problem. If the game crashes or somehing, the code does not run any further. If it just encounters an endless loop, it will run through that loop over and over again and you may not notice anything on the Zune (even if its working).
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

Last edited by DiNoGames : 07-03-2008 at 03:37 AM.






DiNoGames is offline   Reply With Quote
Old 07-03-2008, 03:40 AM   #4 (permalink)
Zune Guardian
 
ShotgunSnipist's Avatar
 
Join Date: May 2008
Location: Colorado
Posts: 694
Reputation: 56
Send a message via AIM to ShotgunSnipist
$zB: 365
Donate
Default

How Many and what Zunes have you tested it on?
I suggest testing it on the different types of zunes.
__________________
Invisible Text. =P
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



ShotgunSnipist is offline   Reply With Quote
Old 07-03-2008, 03:52 AM   #5 (permalink)
Zuner
 
Join Date: Jan 2008
Posts: 54
Reputation: 31
$zB: 54
Donate
Default

As I said, Yes I have run in debug mode. It is not an endless loop because that would freeze it in a different sense. It runs fine in windows, it is just on the zune that it dies. I'll try and explain a little more about the freeze.

When it freezes:
I cannot pause the debug
No error comes up except for a "Device is not connected error"
The zune will not restart on its own, I must manually restart it
I have personally tested on a 30 and an 80 and someone else (I believe) tested on an 8

Edit* Oh and I also wanted to add, I was using a library I didnt write that had unsafe code. On a whim I went in and changed it to "safe" code, but the darn thing still crashes

Last edited by Manticore-X : 07-03-2008 at 04:09 AM.



Manticore-X is offline   Reply With Quote
Old 07-03-2008, 04:10 AM   #6 (permalink)
Zune Guardian
 
ShotgunSnipist's Avatar
 
Join Date: May 2008
Location: Colorado
Posts: 694
Reputation: 56
Send a message via AIM to ShotgunSnipist
$zB: 365
Donate
Default

I'm assuming you think it's freezing because of an over load.
Have you tried not using as many textures?
__________________
Invisible Text. =P
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



ShotgunSnipist is offline   Reply With Quote
Old 07-03-2008, 04:11 AM   #7 (permalink)
Zuner
 
Join Date: Jan 2008
Posts: 54
Reputation: 31
$zB: 54
Donate
Default

Well, I am only using two textures, I am using a pretty large array though which is what MIGHT be causing it. But It isnt a very large chance. It was just something I thought there was a chance it could be



Manticore-X is offline   Reply With Quote
Old 07-03-2008, 04:16 AM   #8 (permalink)
Zune Guardian
 
ShotgunSnipist's Avatar
 
Join Date: May 2008
Location: Colorado
Posts: 694
Reputation: 56
Send a message via AIM to ShotgunSnipist
$zB: 365
Donate
Default

Could it possibly be the thing that you changed BEFORE it started freezing?
lol
__________________
Invisible Text. =P
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



ShotgunSnipist is offline   Reply With Quote
Old 07-03-2008, 04:19 AM   #9 (permalink)
Zuner
 
Join Date: Jan 2008
Posts: 54
Reputation: 31
$zB: 54
Donate
Default

The problem is, I've done a lot since I realised it started freezing. My zune broke, and I have been programming most of it for windows and changing the input for zune. On windows it works perfect. Thats what is confusing me the most



Manticore-X is offline   Reply With Quote
Old 07-03-2008, 04:25 AM   #10 (permalink)
Zune Guardian
 
ShotgunSnipist's Avatar
 
Join Date: May 2008
Location: Colorado
Posts: 694
Reputation: 56
Send a message via AIM to ShotgunSnipist
$zB: 365
Donate
Default

At what point does it freeze?
Does it freeze as soon as you say "start game"
or have you even coded a menu yet?
__________________
Invisible Text. =P
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



ShotgunSnipist is offline   Reply With Quote
Old 07-03-2008, 04:44 AM   #11 (permalink)
Zuner
 
Join Date: Jan 2008
Posts: 54
Reputation: 31
$zB: 54
Donate
Default

OK, I think I fixed it.....sigh

It turned out some of my calculations were outputting Infinity and NaN for the answers and when the rest of my game tried to function it would freeze up. What confused me is that it would work sometimes and othertimes crash. So i guess it was an infinate loop in a sense, but the game just REALLY didnt like it. Thanks for the help (and I hope to announce the game later today!)



Manticore-X is offline   Reply With Quote
Old 07-03-2008, 04:47 AM   #12 (permalink)
Zune Guardian
 
ShotgunSnipist's Avatar
 
Join Date: May 2008
Location: Colorado
Posts: 694
Reputation: 56
Send a message via AIM to ShotgunSnipist
$zB: 365
Donate
Default

AWESOME!
Ill be the first to download.
!
__________________
Invisible Text. =P
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



ShotgunSnipist is offline   Reply With Quote
Old 07-03-2008, 11:22 AM   #13 (permalink)
Jr. Member
 
Tiptup300's Avatar
 
Join Date: Apr 2008
Posts: 386
Reputation: 114
$zB: 285
Donate
Default

Also if you load a texture using the ContentManager, then dispose it, then load it again, the zune won't throw an exception, it will just crash and lose connection to the pc.



Tiptup300 is offline   Reply With Quote
Old 07-03-2008, 11:05 PM   #14 (permalink)
zB Programmer
Jr. Member
 
DiNoGames's Avatar
 
Join Date: May 2008
Location: Bremen, germany
Posts: 347
Reputation: 101
Send a message via Skype™ to DiNoGames
$zB: 257
Donate
Default

I'd say that the best way to unload content, such as textures, is using the unload method of the ContentManager.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.






DiNoGames is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Register and remove this ad

All times are GMT -8. The time now is 10:28 PM.

 
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC8
vB Ad Management by =RedTyger=
(C) ZuneBoards 2006-2007
Copyright © 2006 - 2008 Zune Boards | About Zune Boards | Legal | A member of the Crowdgather Forum Community