HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Difficult Access Violation

04-04-2008, 10:20 PM#1
GosuSheep
I have a map where whenever I end the game with a command, it gives all the players their defeat, but immediately afterwards, i get an access violation.

Heres my trigger

Trigger:
end
Collapse Events
Player - Player 1 (Red) types a chat message containing -end as An exact match
Player - Player 2 (Blue) types a chat message containing -end as An exact match
Player - Player 3 (Teal) types a chat message containing -end as An exact match
Player - Player 4 (Purple) types a chat message containing -end as An exact match
Player - Player 5 (Yellow) types a chat message containing -end as An exact match
Player - Player 6 (Orange) types a chat message containing -end as An exact match
Player - Player 7 (Green) types a chat message containing -end as An exact match
Player - Player 8 (Pink) types a chat message containing -end as An exact match
Player - Player 9 (Gray) types a chat message containing -end as An exact match
Player - Player 10 (Light Blue) types a chat message containing -end as An exact match
Player - Player 11 (Dark Green) types a chat message containing -end as An exact match
Player - Player 12 (Brown) types a chat message containing -end as An exact match
Collapse Conditions
(Triggering player) Equal to Custom
Collapse Actions
Collapse Player Group - Pick every player in (All players) and do (Actions)
Collapse Loop - Actions
Game - Defeat (Picked player) with the message: West: Clan AsTc Ea...

And heres the violation
Collapse JASS:
Exception:        0xC0000005 (ACCESS_VIOLATION) at 001B:6F0ED8A0

The instruction at '0x6F0ED8A0' refernced memory at '0x0000001C'
The memory could not be 'read'



Does anyone know how to debug or trace this access violation?

Replies are greatly appreciated
04-04-2008, 10:23 PM#2
Captain Griffen
Are you using Grimoire or anything?
04-04-2008, 10:25 PM#3
GosuSheep
im afraid i dont know what a grimoire is
04-04-2008, 10:46 PM#4
Toadcop
lol sometmes i have the same issue in TcX xD is so funny. nothing happens while in game but after you leave the map war3 crashes xD
maybe some specific setups etc idk. but it's random so =\

post the map...
04-04-2008, 10:52 PM#5
cohadar
Quote:
Originally Posted by GosuSheep
im afraid i dont know what a grimoire is

Download and learn to use.
04-04-2008, 11:13 PM#6
GosuSheep
Yes. I'm using jass new gen. Or atleast the "newloader" that works with it since the new patch.

And about posting the map... I assume you want me to post it unprocted... I cannot do that.

Basically what I'm looking for is a way to determine the contents of that memory address. If anyone knows how the hell to do that, then tracing the violation would be a snap.
04-05-2008, 02:52 AM#7
darkwulfv
What is that condition "(Triggering Player) equal to Custom"? I've never seen it before.
04-05-2008, 03:03 AM#8
PurgeandFire111
Quote:
Originally Posted by darkwulfv
What is that condition "(Triggering Player) equal to Custom"? I've never seen it before.

It is a player comparison. I assume that "Custom" is a player variable, correct?

Did you try disabling any NewGen options in the "Extensions" tab?

Any other tools/trigger that may cause the problem?
04-05-2008, 03:43 AM#9
grim001
If the variable "Custom" is not initialized or contains an incorrect value it may be causing the crash.
04-05-2008, 07:49 AM#10
Alexander244
If you are using NewGen 4d, try disabling war3err and see if that helps; if it does, download the rollback and paste it in the bin folder of NewGen.
04-06-2008, 03:53 PM#11
[VDM]Amn
copy&paste that trigger on a new map and test it
04-06-2008, 09:51 PM#12
darkwulfv
Gosu, I would definitely consider turning War3err off. It seems to crash Wc3 when interacting with players, as I had the same exact problem. (I would do something which created a unit for a player while War3err was on and it would crash). Either disable War3err or download and use the rollback Alexander mentioned.