• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Crash] Does this cause crash?

Status
Not open for further replies.
Something makes my map crash and I fear it could be one particular trigger... One trigger every 1 sec gathers all units on the map in a group and checks if they have specific buff.
Is it possible this to make the map crash? In multiplayer?

Reminder: the units in the map are the maximum - 8080....

Second question: - Is it possible if a unit is ordered to cast spell multiple times (the spell have cooldown) to make the map crash?

Question 3: Is it possible checking if timer remaining time is 0 to crash the map"?
 
Last edited:

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,196
Is it possible this to make the map crash?
Could cause a thread crash and maybe if that does not clean up properly it could crash. Try limiting the buff search to a more reasonable number of units like 100 or so.

Second question: - Is it possible if a unit is ordered to cast spell multiple times (the spell have cooldown) to make the map crash?
Should not but one cannot rule out stupid behaviour of object editor spells. Triggers might cause a crash if they do stuff in response to the ability order (you will need to check them).

Question 3: Is it possible checking if timer remaining time is 0 to crash the map"?
Should not crash the map as it is very harmless with well defined behaviour and a simple comparison.

Do note that comparing 0.0 == 0.0 is not the same as (not (0.0 != 0.0)). Real equality in JASS has an error margin applied to it. As such the statement A == B and A > B (or < and !=) can both be true if A and B are reals.
 
Level 6
Joined
Sep 13, 2013
Messages
155
well, if u fear one particular trigger is causing crash you can turn off the trigger and test the map again to see how that works :D
and don't forget to remove unit group after actions to prevent leaks.
 
Status
Not open for further replies.
Top