• 🏆 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] Keep getting a fatal error: The memory could not be 'written'.

Status
Not open for further replies.
Level 26
Joined
Nov 5, 2010
Messages
1,383
Hey everyone, I keep getting a fatal error when testing a part of one map I'm currently working on and I have no idea why. I've tried disabling some triggers, removing some spells from units present, but I still can't figure it out. I'm not sure what is causing the error, because it never happens in the same moment, though it only happens during this part of the map so I'm gonna list all the new triggers and things that happen during this part:

1) There is a trigger that every 16 seconds orders multiple times a random unit from a unit group to attack-move to a random point in a region.

2) A trigger that adds -1 to an integer every time a unit owned by Player 4 (Purple) dies and updates the leaderboard.

3) A trigger that plays a soundtrack every 71 seconds. Doubt this one is causing the error because it's used throughout the entire map.

4) A new hero also appears at this point in the map who has these abilities: variations of Summon Water Elemental, Feral Spirit, Devotion Aura (just different names, icons and units summoned) and Ethereal. Could any of that possibly be causing the error?

Here's also the error message I get:

JASS:
FATAL ERROR!

Program:	d:\igre\warcraft iii\war3.exe
Exception:	0xC0000005 (ACCESS_VIOLATION) at 0023:01EC9C3F

The instruction at '0x01EC9C3F' referenced memory at '0x41700004'.
The memory could not be 'written'.


War3Build: 1.26.0.6401
Played Dragon02.w3x
Player  0 Red Dragonflight  	Race NightElf	StartLoc  0
Player  1 tomo              	Race NightElf	StartLoc  1
Player  2 <Unused>          	Race NightElf	StartLoc -1
Player  3 Twilight Dragon Invaders	Race NightElf	StartLoc  2
Player  4 <Unused>          	Race NightElf	StartLoc -1
Player  5 <Unused>          	Race Human	StartLoc -1
Player  6 <Unused>          	Race Orc	StartLoc -1
Player  7 <Unused>          	Race Undead	StartLoc -1
Player  8 <Unused>          	Race Undead	StartLoc -1
Player  9 <Unused>          	Race Undead	StartLoc -1
Player 10 <Unused>          	Race NightElf	StartLoc -1
Player 11 <Unused>          	Race Human	StartLoc -1
------------------------------------------------------------------------------

----------------------------------------
    x86 Registers
----------------------------------------

EAX=41700000  EBX=0E1447C4  ECX=00000000  EDX=0243A7B0  ESI=07FBBC14
EDI=07FBB40C  EBP=026B09CC  ESP=0018F90C  EIP=01EC9C3F  FLG=00210206
CS =0023      DS =002B      ES =002B      SS =002B      FS =0053      GS =002B


----------------------------------------
    Stack Trace (Manual)
----------------------------------------

Address  Frame    Logical addr  Module

01EC9C3F 026B09CC 0001:000B8C3F d:\igre\warcraft iii\Game.dll

----------------------------------------
    Stack Trace (Using DBGHELP.DLL)
----------------------------------------

01EC9C3F Game.dll     GameMain+721903 (0x00000000,0x3EA8F5C3,0x0E1447C4,0x1BEA4374)


----------------------------------------
    Loaded Modules
----------------------------------------

0x00400000 - 0x0047D000  d:\igre\warcraft iii\war3.exe
0x01E10000 - 0x029C5000  d:\igre\warcraft iii\Game.dll
0x15000000 - 0x15061000  d:\igre\warcraft iii\Storm.dll
0x21100000 - 0x2115F000  d:\igre\warcraft iii\mss32.dll
0x22600000 - 0x22616000  d:\igre\warcraft iii\redist\miles\Mssfast.m3d
0x22700000 - 0x22717000  d:\igre\warcraft iii\redist\miles\Mssdolby.m3d
0x22C00000 - 0x22C18000  d:\igre\warcraft iii\redist\miles\Msseax2.m3d
0x24600000 - 0x24611000  d:\igre\warcraft iii\redist\miles\Reverb3.flt
0x26F00000 - 0x26F2A000  d:\igre\warcraft iii\redist\miles\Mp3dec.asi
0x60000000 - 0x6005D000  d:\igre\warcraft iii\ijl15.dll
0x6A350000 - 0x6A3C2000  C:\Windows\system32\DSOUND.DLL
0x6A3D0000 - 0x6A4D5000  C:\Windows\system32\d3d8.dll
0x6D020000 - 0x6D056000  C:\Windows\system32\AUDIOSES.DLL
0x6D060000 - 0x6D128000  C:\Windows\system32\OPENGL32.dll
0x6D140000 - 0x6D200000  C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvSCPAPI.dll
0x6E0B0000 - 0x6E0E9000  C:\Windows\System32\MMDevApi.dll
0x6E0F0000 - 0x6E112000  C:\Windows\system32\GLU32.dll
0x6F020000 - 0x6F349000  C:\Windows\system32\nvapi.dll
0x6F360000 - 0x6F392000  C:\Windows\system32\WINMM.dll
0x6F680000 - 0x702A9000  C:\Windows\system32\nvd3dum.dll
0x70770000 - 0x70865000  C:\Windows\System32\PROPSYS.dll
0x70890000 - 0x70896000  C:\Windows\system32\DCIMAN32.dll
0x708A0000 - 0x70987000  C:\Windows\system32\DDRAW.dll
0x70990000 - 0x709A3000  C:\Windows\system32\dwmapi.dll
0x709F0000 - 0x70A70000  C:\Windows\system32\uxtheme.dll
0x70A70000 - 0x70B5B000  C:\Windows\system32\dbghelp.dll
0x70B60000 - 0x70BFB000  C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll
0x70CC0000 - 0x70D44000  C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\COMCTL32.dll
0x70E30000 - 0x70E6C000  C:\Windows\system32\mswsock.dll
0x71020000 - 0x71027000  C:\Windows\system32\avrt.dll
0x71030000 - 0x71036000  C:\Windows\system32\d3d8thk.dll
0x71370000 - 0x71376000  C:\Windows\system32\SensApi.dll
0x71830000 - 0x71855000  C:\Windows\system32\powrprof.dll
0x71FE0000 - 0x71FF5000  C:\Windows\system32\Cabinet.dll
0x72000000 - 0x7201C000  C:\Windows\system32\cryptnet.dll
0x721D0000 - 0x721E7000  C:\Windows\system32\USERENV.dll
0x725C0000 - 0x725FB000  C:\Windows\system32\rsaenh.dll
0x72600000 - 0x72616000  C:\Windows\system32\CRYPTSP.dll
0x727C0000 - 0x727D6000  C:\Windows\system32\GPAPI.dll
0x72840000 - 0x729B7000  C:\Windows\system32\nvspcap.dll
0x729C0000 - 0x729FD000  C:\Windows\SysWOW64\bcryptprimitives.dll
0x72AA0000 - 0x72AB7000  C:\Windows\system32\bcrypt.dll
0x72BD0000 - 0x72C08000  C:\Windows\system32\ncrypt.dll
0x747A0000 - 0x747AB000  C:\Windows\system32\profapi.dll
0x748F0000 - 0x7493F000  C:\Windows\system32\webio.dll
0x74940000 - 0x74998000  C:\Windows\system32\WINHTTP.dll
0x74F10000 - 0x74F17000  C:\Windows\system32\WSOCK32.dll
0x74F40000 - 0x74F4E000  C:\Windows\system32\DEVRTL.dll
0x74F50000 - 0x74F71000  C:\Windows\system32\ntmarta.dll
0x74FE0000 - 0x74FE9000  C:\Windows\system32\VERSION.dll
0x750B0000 - 0x750BC000  C:\Windows\syswow64\CRYPTBASE.dll
0x750C0000 - 0x75120000  C:\Windows\syswow64\SspiCli.dll
0x75120000 - 0x751BD000  C:\Windows\syswow64\USP10.dll
0x751C0000 - 0x75205000  C:\Windows\syswow64\WLDAP32.dll
0x75210000 - 0x7540B000  C:\Windows\syswow64\iertutil.dll
0x754A0000 - 0x754AC000  C:\Windows\syswow64\MSASN1.dll
0x754B0000 - 0x760FA000  C:\Windows\syswow64\SHELL32.dll
0x76100000 - 0x76210000  C:\Windows\syswow64\kernel32.dll
0x76210000 - 0x76267000  C:\Windows\syswow64\SHLWAPI.dll
0x76270000 - 0x76365000  C:\Windows\syswow64\WININET.dll
0x76370000 - 0x7648D000  C:\Windows\syswow64\CRYPT32.dll
0x76490000 - 0x7649A000  C:\Windows\syswow64\LPK.dll
0x764A0000 - 0x765D6000  C:\Windows\syswow64\urlmon.dll
0x765F0000 - 0x766BC000  C:\Windows\syswow64\MSCTF.dll
0x766C0000 - 0x76720000  C:\Windows\syswow64\IMM32.dll
0x76720000 - 0x767A3000  C:\Windows\syswow64\CLBCatQ.DLL
0x767B0000 - 0x768A0000  C:\Windows\syswow64\RPCRT4.dll
0x768A0000 - 0x768A5000  C:\Windows\syswow64\PSAPI.DLL
0x768B0000 - 0x76A4D000  C:\Windows\syswow64\SETUPAPI.dll
0x76A50000 - 0x76AE0000  C:\Windows\syswow64\GDI32.dll
0x76AE0000 - 0x76BE0000  C:\Windows\syswow64\USER32.dll
0x76BE0000 - 0x76C0D000  C:\Windows\syswow64\WINTRUST.dll
0x76C10000 - 0x76C45000  C:\Windows\syswow64\WS2_32.dll
0x76C50000 - 0x76C96000  C:\Windows\syswow64\KERNELBASE.dll
0x76CA0000 - 0x76D40000  C:\Windows\syswow64\ADVAPI32.dll
0x76D40000 - 0x76E9C000  C:\Windows\syswow64\ole32.dll
0x76ED0000 - 0x76EE9000  C:\Windows\SysWOW64\sechost.dll
0x76F50000 - 0x76FFC000  C:\Windows\syswow64\msvcrt.dll
0x77000000 - 0x77027000  C:\Windows\syswow64\CFGMGR32.dll
0x77030000 - 0x77042000  C:\Windows\syswow64\DEVOBJ.dll
0x77050000 - 0x770CB000  C:\Windows\syswow64\comdlg32.dll
0x770D0000 - 0x7715F000  C:\Windows\syswow64\OLEAUT32.dll
0x77530000 - 0x77536000  C:\Windows\syswow64\NSI.dll
0x77560000 - 0x776E0000  C:\Windows\SysWOW64\ntdll.dll


----------------------------------------
    Memory Dump
----------------------------------------

Code: 16 bytes starting at (EIP = 01EC9C3F)

01EC9C3F: 83 40 04 FF  8B C8 83 C0  04 83 38 00  75 06 8B 01  [email protected]...


Stack: 1024 bytes starting at (ESP = 0018F90C)

* = addr                                         **                       *   
0018F900: 2F 9C EC 01  58 F9 18 00  C4 47 14 0E  38 F9 18 00  /...X....G..8...
0018F910: 48 F9 18 00  34 F9 18 00  88 F9 18 00  54 F9 18 00  H...4.......T...
0018F920: 8D 39 5F F2  74 43 EA 1B  14 BC FB 07  84 9D 1E 18  .9_.tC..........
0018F930: 8C B2 E2 0A  00 00 20 41  00 00 70 41  00 00 00 00  ...... A..pA....
0018F940: 09 A9 43 02  00 00 00 00  C3 F5 A8 3E  C4 47 14 0E  ..C........>.G..
0018F950: 74 43 EA 1B  00 7B D4 3F  73 66 48 42  00 00 00 00  tC...{.?sfHB....
0018F960: 00 00 00 00  00 00 00 00  00 00 00 00  FF FF FF FF  ................
0018F970: 0A D7 A3 3E  0A D7 A3 3E  A4 F9 18 00  B0 23 60 02  ...>...>.....#`.
0018F980: 01 00 00 00  0D 8A F6 01  00 00 80 3F  48 96 6D 18  ...........?H.m.
0018F990: 14 BC FB 07  6A 96 0B 02  74 43 EA 1B  09 39 5F F2  ....j...tC...9_.
0018F9A0: 14 BC FB 07  04 FA 18 00  E8 61 62 02  00 00 00 00  .........ab.....
0018F9B0: 20 A0 0B 02  74 43 EA 1B  96 83 EA 01  E8 3B 89 02   ...tC.......;..
0018F9C0: 84 9D 1E 18  FD A6 43 02  E8 3B 89 02  79 39 5F F2  ......C..;..y9_.
0018F9D0: 14 BC FB 07  28 BC FB 07  03 00 00 00  D0 5B 41 1A  ....(........[A.
0018F9E0: 00 00 00 00  01 00 00 00  48 96 6D 18  F4 F9 18 00  ........H.m.....
0018F9F0: 84 9D 1E 18  84 9D 1E 18  5C FA 18 00  00 00 00 00  ........\.......
0018FA00: A0 00 52 0F  58 FA 18 00  88 0A 65 02  00 00 00 00  ..R.X.....e.....
0018FA10: D0 A7 43 02  F7 A5 00 00  E8 3B 89 02  14 BC FB 07  ..C......;......
0018FA20: 14 BC FB 07  ED 1F 28 02  F7 A5 00 00  E8 3B 89 02  ......(......;..
0018FA30: 14 BC FB 07  74 43 EA 1B  62 26 28 02  F7 A5 00 00  ....tC..b&(.....
0018FA40: E8 3B 89 02  00 00 00 00  E5 3A 5F F2  90 FA 18 00  .;.......:_.....
0018FA50: 14 BC FB 07  D0 5B 41 1A  44 FB 18 00  C8 F6 63 02  .....[A.D.....c.
0018FA60: 00 00 00 00  BB 2B 28 02  D0 5B 41 1A  74 43 EA 1B  .....+(..[A.tC..
0018FA70: 00 00 00 00  90 FA 18 00  84 FD 28 02  65 69 70 60  ..........(.eip`
0018FA80: 90 FA 18 00  B8 00 DE 07  66 7E 2B 02  90 FA 18 00  ........f~+.....
0018FA90: 73 69 6C 5E  6C 69 70 60  65 69 70 60  D0 5B 41 1A  sil^lip`eip`.[A.
0018FAA0: B8 93 23 1A  00 00 00 00  00 00 00 00  00 00 00 00  ..#.............
0018FAB0: 00 00 00 00  FF FF FF FF  FF FF FF FF  9C 80 2B 02  ..............+.
0018FAC0: B8 93 23 1A  B8 00 BE 07  D0 5B 41 1A  18 B8 91 18  ..#......[A.....
0018FAD0: 70 02 BE 07  00 00 00 00  24 00 00 00  27 B8 00 00  p.......$...'...
0018FAE0: 27 B8 00 00  00 00 00 00  57 88 2B 02  03 00 00 00  '.......W.+.....
0018FAF0: 00 00 00 00  67 A4 BD 42  D0 00 EF 07  B4 04 E4 0A  ....g..B........
0018FB00: 14 BC FB 07  A7 91 28 02  00 00 00 00  03 8E 0B 02  ......(.........
0018FB10: 00 00 00 00  14 BC FB 07  3E 00 00 00  01 00 00 00  ........>.......
0018FB20: 5C FB 18 00  12 A0 0B 02  96 83 EA 01  A0 3D 89 02  \............=..
0018FB30: 14 BC FB 07  E7 7D 28 02  A0 3D 89 02  E9 3B 5F F2  .....}(..=...;_.
0018FB40: D4 4D 7F 14  E4 FB 18 00  28 F9 63 02  00 00 00 00  .M......(.c.....
0018FB50: 38 D5 27 02  14 BC FB 07  88 00 EF 07  B4 E3 27 02  8.'...........'.
0018FB60: C8 00 EF 07  88 00 EF 07  67 A4 BD 42  61 E5 27 02  ........g..Ba.'.
0018FB70: B8 00 BE 07  9C 00 E2 0A  6C FC 18 00  67 A4 BD 42  ........l...g..B
0018FB80: 00 00 80 3F  00 00 00 00  DB E9 27 02  8E 0C 28 02  ...?......'...(.
0018FB90: 6C FC 18 00  84 A1 6C 18  B4 04 E4 0A  58 49 10 02  l.....l.....XI..
0018FBA0: BE 75 34 02  FD A6 43 02  58 FC 18 00  19 3B 5F F2  .u4...C.X....;_.
0018FBB0: 58 FC 18 00  BC 00 84 09  05 00 00 00  00 00 00 00  X...............
0018FBC0: 00 00 00 00  42 00 00 00  84 A1 6C 18  24 84 BE 1A  ....B.....l.$...
0018FBD0: 54 04 E4 0A  54 04 E4 0A  E8 0F 84 09  00 00 00 00  T...T...........
0018FBE0: 02 00 00 00  70 FC 18 00  88 0A 65 02  00 00 00 00  ....p.....e.....
0018FBF0: D0 A7 43 02  92 00 09 40  58 FC 18 00  58 FC 18 00  [email protected]...
0018FC00: 80 07 78 02  A1 9A 43 02  92 00 09 40  58 FC 18 00  ..x...C....@X...
0018FC10: B8 00 84 09  F7 78 34 02  58 FC 18 00  03 00 00 00  .....x4.X.......
0018FC20: B0 00 84 09  B8 00 84 09  85 37 36 02  58 FC 18 00  .........76.X...
0018FC30: 9D 3C 5F F2  D0 FC 18 00  B0 00 84 09  00 00 00 00  .<_.............
0018FC40: 20 01 78 04  02 00 00 00  00 00 00 00  00 00 00 00   .x.............
0018FC50: 00 00 00 00  1F 00 00 00  E4 80 76 02  00 00 00 00  ..........v.....
0018FC60: 92 00 09 40  00 00 00 00  00 00 00 00  0A D7 A3 3B  ...@...........;
0018FC70: B8 FC 18 00  38 75 64 02  00 00 00 00  13 39 36 02  ....8ud......96.
0018FC80: 19 00 00 00  48 01 7A 04  3D 25 44 02  39 3C 5F F2  ....H.z.=%D.9<_.
0018FC90: 88 00 78 04  88 00 78 04  34 DD 19 00  05 00 00 00  ..x...x.4.......
0018FCA0: 48 01 7A 04  E8 00 7A 04  98 00 78 04  00 00 00 00  H.z...z...x.....
0018FCB0: 88 00 78 04  01 00 00 00  78 FF 18 00  38 11 65 02  ..x.....x...8.e.
0018FCC0: 00 00 00 00  8B D7 43 02  D0 FC 18 00  B7 F3 FD 3C  ......C........<
0018FCD0: B7 F3 FD 3C  34 DD 19 00  7C 03 44 02  D7 49 11 76  ...<4...|.D..I.v
0018FCE0: 00 00 E1 01  C8 34 11 76  22 12 11 76  00 00 00 00  .....4.v"..v....
0018FCF0: 00 00 00 00  45 6E 67 69  6E 65 20 37  34 30 00 77  ....Engine 740.w
0018FD00: B0 E1 A5 04  D7 49 11 76  E2 F9 57 77  5D B7 C5 76  .....I.v..Ww]..v


------------------------------------------------------------------------------
[/hidden]

Thanks in advance, if anyone would also like to check out the map, I can PM it to you.
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,188
Unusual error. It is not a null dereference, but rather a dereference of some random unallocated page. Or so one would think, WC3 has been known to report the wrong errors before.

Make sure you are not doing something stupid like "Player(random number >=16 or <0 here)" since that native dereferences an array without performing bounds checks.
 
Level 28
Joined
Feb 18, 2014
Messages
3,576
Wait... did you say model? Well he probably is the issue, If it's a new model (imported), he will cause this crash if he still have some geoset animation remaind on the model
I don't know if you use Mogos to edit model? Anyway, if you use it
Open this model/Geoset animation/ check if there still some geo anim that refer to none geoset and remove them (those none geoset)
This should fix the problem if it's about a model :)
 
Level 28
Joined
Feb 18, 2014
Messages
3,576
Well maybe there still some models who still missing some edit (Older models, Pending) I recommand you to export that model who cause the crash and edit it and then you will see

Edit : Send that uploaded model in your map by his link (THW)
 
Level 28
Joined
Feb 18, 2014
Messages
3,576
4) A new hero also appears at this point in the map who has these abilities: variations of Summon Water Elemental, Feral Spirit, Devotion Aura (just different names, icons and units summoned) and Ethereal. Could any of that possibly be causing the error?

Well yes sometime models cause crash for maps, Anyway, it's probably something else...
 
Level 11
Joined
Jun 2, 2013
Messages
613
This isn't part of the above list, and I'm not sure what causes it or how common it is, but I've also seen structures that train units crash the game when being selected because of one of the trained units.

In that persons' case it happened to be a modified campaign unit that was causing it, though I don't know why.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Is the buff for summon water elementals and the aura the same? That can probably crash the game. Is feral spirit a summon spell as well? Check the buff on that as well.
 
Level 23
Joined
Apr 12, 2014
Messages
1,846
Well, I was just wondering about this.

4) A new hero also appears at this point in the map who has these abilities: variations of Summon Water Elemental, Feral Spirit, Devotion Aura (just different names, icons and units summoned) and Ethereal. Could any of that possibly be causing the error?

6. Certain summoning spells, but not all, if set up with an invalid unit type, will crash the game when cast.
 
Status
Not open for further replies.
Top