• 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.

[memory leaks] help please

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
When do the violations happen? I think every single crash of WC3 I have ever had had the same error message, but they were not all from the same source.

I tracked one down a couple months ago and it was happening when:
Aura with a buff
Slow spell with the same buff
Orb of lightning ability with the slow spell

When I hit a unit affected by the aura with the orb of lightning ability, it would crash. Due to the two items that had these abilities being rather late-game items, it always happened towards the end of the game and it didn't happen every game. It was tough to figure out, but it came down to something other than a memory leak.

All I'm trying to say is it may not be due to a memory leak.

I can't look at the map right now, but you could try:
Turning off a bunch of the triggers that are run a lot and see if it still crashes. - This will likely narrow it down as a memory leak
Try to play the exact way you did when it crashed and see if it still crashes. - This will check for its consistency
Try to play the exact way you did when it didn't crash and see if it crashes or not. - This will check for its consistency

It's tough to debug because sometimes it requires several long games to start pin-pointing the problem.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
but i still get access violations in 1 of 3 games.
That might not be caused by a memory leak. Memory leaks should cause a memory allocation error. In WC3 some times leaks can cause it but that is likely a result of overloading some system as a result of the leak rather than the memory leak.

Maybe send a replay of the violation occurring. This way debugging can occur to at least try and trackdown what may be the cause or not.
 
Level 5
Joined
Aug 19, 2015
Messages
68
thanks for the answers!
turning off triggers is not possible because it only happens in multiplayer
its strange that an access violation is no leak because before i reworked the whole code this happened a lot more often.
maybe its stable now anyway because it hasnt happened in the last 5-7 games.
i will post and check the next replay when this happens again
p.s. this is strange too: 1/3 of the players dont crash

( i have some endurance auras, all with the same buff i think. some slow enemies, some buff allies, some buff the unit itself.)
(and different debuffs based on the brilliance aura)
 
Level 12
Joined
May 22, 2015
Messages
1,051
Stacking auras I don't think is a problem. The problem with mine was that it was trying to stack an aura buff with a timed buff.

Only some of the players crashing is strange to me. I don't know what can cause that.
 
Status
Not open for further replies.
Top