Errors and Freezing on Exit for no apparent reason.

Derek0

New Member
Reaction score
1
Sorry if this was already posted, I don't have time to check.

For no apparent reason, we get random errors during my gameplay of my map. These errors tell me the application had to close and gives me a file path for a file ending in .cpp (C++ file, if I'm not mistaken). The file path is different each time, though they're all .cpp files. They appear to happen for no reason, at random times within my map, usually during the end.

If an error does not occur, the game freezes on defeat, victory, or even when I exit the game. I've had to restart my computer each time I play and nothing is working.

Please help, I g2g right now but I'm hoping I can get an answer by the time I get back :(
 

Sooda

Diversity enchants
Reaction score
318
Your trigger(s) what fire in game end cause desync(s). Some trigger(s) actions cause critical error(s) when ran (Maybe missing or wrongly set up data for actions or wierdly nested loops, etc.). I' m not sure though.
 

Derek0

New Member
Reaction score
1
Your trigger(s) what fire in game end cause desync(s). Some trigger(s) actions cause critical error(s) when ran (Maybe missing or wrongly set up data for actions or wierdly nested loops, etc.). I' m not sure though.
If a trigger causes the critical error, why is it only causing it to one person at a random time for no apparent reason? :(
And how would I fix the desync(s)?
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
try other maps, did this similar problem occur too?

btw did you insteall c++ or c programming softwares in your pc
and you accidentally made the warcraft files are required to be open using
that software

when did this problem occur? recently?
have you tried system restore?
 

Derek0

New Member
Reaction score
1
try other maps, did this similar problem occur too?

btw did you insteall c++ or c programming softwares in your pc
and you accidentally made the warcraft files are required to be open using
that software

when did this problem occur? recently?
have you tried system restore?
No, this problem only occurs with thie one map.

I did not install any c++ anything, and it's happening on my brother's computer as well, and he doesn't even know what c++ is, much less would he install it.

This problem only occurs with this one map, It started when I started testing this map, always with the errors and freezing. It does not happen in any other map.
 

Derek0

New Member
Reaction score
1
After further inspection of my computer, I do have Dev-C++ installed, but my brother has nothing related to C++ on his, and his errors occur more frequently then mine.

Please help, he really wants to play with me and I really want to play with him :(
 

ayumilove

Youtube account suspended! youtube.com/ayumilove8
Reaction score
110
try re-downloading the map, perhaps the map is already corrupted <3



would you like to send a sample of that map here for theHelper.net to inspect?
 

Jazradel

Helping people do more by doing less.
Reaction score
102
The cpp file will be part of warcraft IIIs debugging and not relate to anything else installed on your computer.

Check for:
Pan Camera as Necessary
Infinate Loop
Player that doesn't exist (Player(-1) or something)
 

Derek0

New Member
Reaction score
1
The cpp file will be part of warcraft IIIs debugging and not relate to anything else installed on your computer.

Check for:
Pan Camera as Necessary
Infinate Loop
Player that doesn't exist (Player(-1) or something)
Ok, I will when I get home, though why would an Infinate Loop only boot one person?

Could it have somthing to do with computer stats? My brother's computer is the oldest, and he gets the errors alot, while my laptop is rather newer, and it doesn't get that error as much (It just freezes when I exit all the time).

Also, like I said before, the errors only happen later in the map. It's a Hero Wars style map, and it seems to happen mostly when we push them back almost to their base. I kind of made the map a little too big by accident, and I ended up with 60 or so towers (30 on each side, with 20 out and 10 inside the base for each side), 48 heroes to choose from (24 on each side, in hero arena style) as well as the heroes you create and the item buildings, and not to mension that 400 or so army units that spawn over time. Could the massive ammount of units being displayed on my brother's old computer cause an error like this? Only thing is that he doesn't seem to lag at all before the error...

Oh, and the final thing that's different about my map is that I used AceHart skills customization system (once again, thanks AceHart!) But none of the triggers it uses should be running when my brother gets the error.

I think when I get home I will export the tiggers and objects and remake the whole terrain, making it smaller and all, and hope that that fixes this problem. Is there a way to export reigons?
 

Derek0

New Member
Reaction score
1
Ok, Ok, I got the exact error, and one part of it that my dumb brother forgot to mention stands out.
Program: F:\Program Files\Warcraft III\war3.exe
File: E:\Drive\temp\buildwar3x\engine\Source\Base\CDAllocator.cpp
Line: 152
This application has encountered a critical error.
Not enough storage is available to process this command.

I realize now because of the bolded part up there that it's not a problem with my map, nor Warcraft III, it's a problem with my brother's old computer which doesn't have enough storage left.

Now, how would I go about fixing this? Would I make him close all other running programs? Isn't there a way to set virtual memory higher or something like that? Is there anything in my map I can change to help this?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> did you install c++ or c programming softwares in your pc

This must be the most "unrelated to the problem" question ever asked in these forums...


Anyway, sudden (more or less) lag that happens "near the end" is most likely caused by memory leaks.
It also makes maps take forever to exit.

Alternatively, there might be some trigger that crashes and only runs about that time.
Like something that happens when a particular unit or building dies...
 

Derek0

New Member
Reaction score
1
Anyway, sudden (more or less) lag that happens "near the end" is most likely caused by memory leaks.
It also makes maps take forever to exit.

That sounds alot like my problem, I will try following one of the memory leak tutorials when I get home.

One of the tutorials I read said that Warcraft III cleans up the memory leaks at the end of playing a map. Does that mean there's a JASS command to clean all memory leaks? I don't do much JASS.
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
That sounds alot like my problem, I will try following one of the memory leak tutorials when I get home.

One of the tutorials I read said that Warcraft III cleans up the memory leaks at the end of playing a map. Does that mean there's a JASS command to clean all memory leaks? I don't do much JASS.

Yep, that's why there are JASS tutorials, for memory leaks.

However, there isn't just one command to clean them all up... you have to clean each one up individually.

Here are some of the ways:

call RemoveLocation(udg_VARIABLENAME) (Points)
call DestroyGroup(udg_VARIABLENAME) (Unit Groups)
call DestroyForce(udg_VARIABLENAME) (Player Groups)
call DestroyRect(udg_VARIABLENAME) (Region)

etc.
 

Derek0

New Member
Reaction score
1
However, there isn't just one command to clean them all up... you have to clean each one up individually.

So at the end of the map, all it does is run those for every variable defined?

EDIT: Yeah, I had two triggers that ran every 0.10 seconds that leaks a group leak, so thats 10 a second each, or 20.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top