• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] War3 crashes - what to look for?

Status
Not open for further replies.
Level 4
Joined
Feb 5, 2005
Messages
38
hi guys

I'm writing an ai for a very old risk map (completely triggered). Now I added a lot of new triggers and many of them start each other (trigger run x (ignoring conditions)) and i use a lot of arrays. the code is quite complex so i didn't had the time to look through everything atm.

However if i try to run the map the game crashes with a memory alloc error (read error). Can anybody tell me, what i should look for in my code? array crap? trigger run? something different? i really don't have the slightiest idea where to look at.

otherwise i will start adding text output to see how far my triggers reach until it crashes :ugly:

thanks in advance, regards,

blackcud
 
With a lot of triggers activating eachother, it's pretty much possible you made a circle of triggers activating eachother.

trigger 1 ===> trigger 2
. . /\ . . . . . . . . || . . .
. . || . . . . . . . . || . . .
. . || . . . . . . . . \/ . . .
trigger 3 ===> trigger 4

This causes all 4 to be triggers infinitely, causing leaks. You must avoid infinitely running triggers, so make sure there are no such stuff as the 'image' above. Read the 'Things that Leak' thread (The sticky one in Triggers & Scripts) to see how to check for leaks and how to prevent them.
 
Impropper use of JASS, like the return bug can cause crashes. Issuing orders improperly can cause crashes (like moving to the units exact location). Some infinate loops can cause crashes. Also moving too many units in to hard to path areas is known to cause crashes. Destroying triggers to often has been known to cause a handle allocation error resulting in a crash, avoid doing it unnescescarily.
 
Impropper use of JASS, like the return bug can cause crashes. Issuing orders improperly can cause crashes (like moving to the units exact location). Some infinate loops can cause crashes. Also moving too many units in to hard to path areas is known to cause crashes. Destroying triggers to often has been known to cause a handle allocation error resulting in a crash, avoid doing it unnescescarily.

Hmm, you know if there is a list of known possible crashes for WC3?

If not, we should really make a list and sticky it or something.

I know about a couple of odd things that may cause WC3 to crash, we should make a list of them in a topic or something if there isn't already a list somewhere.
 
Status
Not open for further replies.
Back
Top