What you see
- The game closes a few seconds into the loading screen, often with no error dialog.
- Or a crash dialog appears, such as
FATAL ERRORwithACCESS_VIOLATION. - The same map may load on an older patch, or for a friend on another build.
This application has encountered a critical error: FATAL ERROR! Program: ...\war3.exe Exception: 0xC0000005 (ACCESS_VIOLATION)
Why it happens
War3Log.txt does not record the crash itself, so timing is your best clue. A crash on the loading bar points at data the game reads while loading (object data tables, imported files, the map info) and at code that runs during map initialisation.
SLK tables on 3.0. Maps that carry unit or ability data as SLK tables, common for maps made with KKWE, YDWE or w3x2lni, can close on the loading screen on 3.0.x. Map makers report two triggers: a leftover file column in UnitUI.slk or ItemData.slk, and any column in AbilityData.slk the game does not know, such as DataA7. A stray */ in an imported FDF file now aborts loading too. These are map-maker reports, not confirmed by Blizzard.
Model names with an extra dot. On 3.0.0 an import named like my_model_1.0.mdx failed to load or crashed. The 3.0.1 notes say this is fixed.
Handles created too early. Creating units, quests, multiboards or regions inside a JASS globals block crashes on load. Registering mouse events during initialisation can crash right after the loading screen, but only some of the time.
Very long object-data strings. A tooltip of about 1024 bytes stored directly in object data crashed the loading screen in a 2018 test on a 1.28-era client; today's limit is unverified. Non-English text reaches it at half the characters, because the limit counts bytes.
How to fix it
- Note the exact moment: during the bar, at the end of it, or when the first unit appears.
- Back up the map, extract it with an MPQ tool and look for
Units\*.slktables. Remove thefilecolumn fromUnitUI.slkandItemData.slk, and delete anyAbilityData.slkcolumn the stock table does not have. Converting the map back to normal object data is the durable fix. - Fix unmatched
*/comment closers in imported FDF files. - Rename imports that have a second dot (
model_1_0.mdx) and update every object field and script path that points at them. - Move handle creation out of
globalsinto code that runs after the game starts, for example from a 0 second timer. Register mouse events then too. - Keep object-data strings well under 1024 bytes. Opening and re-saving the map in the editor moves long tooltips into
war3map.wts. - If none of this applies, bisect: disable triggers in groups until the crash stops.
How WC3 Map Doctor detects it
- ErrorsA handle-creating native runs in the globals block, which crashes the game on load or on save.CRASH-globals-handle-create
- WarningsA mouse event is registered during map initialisation, which can crash Reforged 2.0.3 and later (some live maps do it and run).CRASH-mouse-event-init
- SevereAn imported model or texture has a second dot in its file name, which fails to load or crashes on 3.0.BRK-dotted-import-path
- WarningsAn import overrides a game data table or script at its stock path (Units, Splats, UI, Doodads or Scripts), which 3.0 reads differently.PERF-A05
- ErrorsThe map info format version is newer than the target build can read (v39 needs 3.0.0, v33 2.0.3, v31 1.32, v28 1.31).W3I-version-vs-patch
Operations that fix it on a copy
- compat.import-names Give imported files names Warcraft III 3.0 can load
- compat.fdf-comments Remove stray comment closers from imported .fdf files
An SLK repair operation is being built and is not offered yet.
Sources
Written in our own words from our lab notes; these are the pages behind them.
- forumBlizzard forums: Patch 3.0.0 crashes custom maps that use SLK data
- forumBlizzard forums: SLK abilities past level 6 crash the game
- forumHive Workshop: Warcraft III 3.0 bugs and issues
- publishedBlizzard: Warcraft III Reforged Forsaken Kingdom patch notes (3.0.0 and 3.0.1)
- authorjassdoc: annotated common.j and Blizzard.j
- authorWurstScript issue 618: object editing natives crash the game on loading
- forumHive Workshop: Warcraft 3 error crash