• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Crash] Fatal Errors

Status
Not open for further replies.
Level 10
Joined
Oct 16, 2012
Messages
555
:goblin_jawdrop::goblin_cry:

Hello everyone,
i just finished beta of my map. As i suspected Fatal Error appeared after 12 minutes of gameplay. Im sure it was caused by a trigger. I cant delete those "corrupted triggers" becuse they are very important for the game. Ive read some articles about Memory Leaks and usage of custom scripts, but none of it made me any wiser. I beg anyone to help me solve this issue and end my agony. Just write to me and il post my map here.

Thanks Guys
 
What happens around the time you get a fatal error (what trigger is running? What is happening when it is about to crash?)? They can occur for several reasons, and a lot of times it is just some minor thing you overlooked. (e.g. doing anything with a lightning that is already destroyed)

Without the triggers in question, we won't be able to help much. We can only guess at what the issue is, especially without the actual error message.
 
Level 17
Joined
Mar 21, 2011
Messages
1,611
if sth is leakless, it doenst mean that it could give you an error. maybe you did some mistake importing the system. (some things like creating a unit dont copy right, you have to set it by yourself). Maybe theres an endless loop anywhere or you divide through zero. would be helpful if you send the trigger. (your trigger, not the link to the system)
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
In the defeat triggers, you change the owner of the defeated player's remaining units. This includes control points. In CP Loop Copy, you determine the currently dominating player of a control point by comparing the units standing on it. But this loop can fail for all players from 1 to 12, then testIndex has still the initial value of 0, which is no valid player index (in GUI). Converting a player from an invalid index causes a fatal error.
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
leak =/= fatal error
leaks are incorrectly removed pieces of memory, so they take up more and more of your memory, these may cause lag, since the game will take too much memory to handle quickly and efficiently (thought this can happen when you leak a lot and after quite some time)

fatal error crashes your game, because something simply went wrong => e.g. infinite loop, doing anything with destroyed lightning, etc.

It matters little how much space your map takes, or how many leaks you have, but if something causes crash, it does not mean it is also a leak, so a leakless map may still crash.
 
Status
Not open for further replies.
Top