ID:175368
 
Whenever I run my game, it freezes. I'd paste the trace file, but opening it is kinda unatractive (26.0MB). Anyway, is there anything that could cause a crash like this?
Hazman wrote:
Whenever I run my game, it freezes. I'd paste the trace file, but opening it is kinda unatractive (26.0MB). Anyway, is there anything that could cause a crash like this?

Yes. An infinite loop.

If you open your trace file in an editor worth its salt, and skip to the end, you'll find the same proc(s) being called over and over. That's where your infinite loop is.

Before you run the program again, though, delete trace.txt. Otherwise the file just keeps growing.

Lummox JR
In response to Lummox JR
you mean we can delete trace.txt every now and then?! mines like 50mb
In response to Airjoe
Airjoe wrote:
you mean we can delete trace.txt every now and then?! mines like 50mb

Yep. It's totally safe to delete your trace.txt file.

Lummox JR
In response to Lummox JR
Removed infinite loop - game still not working. There should be a check list on the website for this.
In response to Hazman
Hazman wrote:
Removed infinite loop - game still not working. There should be a check list on the website for this.

Well, consider this part of it.

Problem: Not working.

Solution: Describe your problem in more detail. Duh.

Lummox JR
In response to Lummox JR
Problem: Game freezes on startup, usually before the hub even has a chance to load
Solution: If I knew that, this thread would never had happened. A checklist on the site, perhaps. Maybe a part of the site 'what to do if your game isn't working'.
In response to Hazman
Just your game, or all games? If it's just your game, you still have an infinite loop.

A "what to do if your game isn't working" checklist might help in a few very common cases, but for most it's easier just to do something like this:

1. Check the reference.
2. Check the guide/Blue Book.
3. Check your code several times over.
4. If none of the above things solve your problem, come here. That's what Newbie Central is for, after all. =)
In response to Hazman
Turn off bits of code until it opens up.

Hopefully you arn't just programming in one big .dm file.

-Salarn
In response to Salarn
Salarns post on the 'How does your garden grow' thread rang a few bells, and I realized I'd missed off a spawn(1) at an objects New().
So its not crashing outright now, but it's not loading properly. When I load up seeker to run it from DreamMaker, I get the following:
Welcome BYOND!  (Dream Seeker release 334)
You've got upgrades!
Looking for some action? Check out the hub.
Pager on.
And nought else.
In response to Hazman
BTW, just found out that sometimes it decides to work, sometimes it doesn't. Doh...
Also, I see repeated
calling()
exiting()
And also a lot of
C:\WINDOWS\Desktop\dung.current\libdung\server\Sfile.cpp:1510
Other than that, my untrained eye sees no huge error messages.
In response to Hazman
Is this just happening on this project or all projects?
If just this project, then try doing a Complete Build. If that doesn't resolve your problem, then delete all the build files, and do a complete build again. Sometimes files get corrupted and the only sure way to get rid of the problems if they keep happening is to delete the build files and do a new build.

Also make sure your program has something to do. Put a
client/Login()
src << "This is a test!"

LJR
In response to LordJR
I managed to fix it - I was calling the parent world.New twice, so it wasn't running halve of the startup code. Thanks for your help everybody!