Pages

Saturday, October 30, 2010

Memory leaks or why maps probably crash on older hardware

As i promised, i coded a little tool to see what is the situation of the local variables which are not nulled. The tool was coded in 2-3 hours tops and it doesn`t do miracles but shows an estimated count of the memory leaks in a JASS script. I will probably need to walk manually trough every leaking function and see if nulling is needed. I can do that automatically ofc, but the outcome will be unknown... so i prefer manual editing. Also some of the found leaks are not actually leaks, hence the manual editing. Extremely painful, boring and tough job :(
But i guess (and hope) that fixing 90% of the memory leaks will fix most of the crashes caused on computers with obsolete hardware (less RAM for example). I have people who reported to me that after upgrading their PCs they have a lot less crashes than before.

Note: if u can`t see the images but only a small frame, u are using Firefox with Adblock. Turn off Adblock for a moment and refresh, or click with right button on the frame (left from the image) and pick This frame->Show only this frame (or Open this frame in New Window).

21 comments:

  1. I have Firefox with Adblock Plus and can see the images without disabling it.

    Do I get a cookie? :D

    ReplyDelete
  2. Good Day PBMN! Could you give us the specific minimum hardware requirements for the new ai map to run smoothly? Coz' I have older pc too!:(

    ReplyDelete
  3. @Overflow :P ur Adblock is broken :D haha

    @Ullysis i guess if u have the min requirements of WC3.. u`ll be OK. But having more RAM will be even better :) it always helps!

    ReplyDelete
  4. Works fine with me, I am using Google Chrome.

    ReplyDelete
  5. Hey there!
    can u make the Ai low in last hit?
    jus my suggestion.

    Sry 4 my English!

    ReplyDelete
  6. Well i have AdBlock too and i can see the images without disabling it :p, as for the memory leaks i don't know, i never encountered a single crash in the latest ai release, not a single one, 2gb ram on pentium 4 3.0ghz desktop.

    ReplyDelete
  7. Hi PBMN,

    U are my hero XD.... By far you are my favorite AI map maker. They improvement you made in one or two map is beating what previous map developer have made. You really made this enjoyable to the masses.. And for that I really adore you. But the most important thing here is try to enjoy making the map rather than thinking this as a burden to you. Dont pay too much heed to the cry babies which keep spamming on threads asking for latest map. For me I am always looking forward to your maps as I am sure it always have good suprises in it. I love what you have done so far in 667c revd. Hope more great release from you soon. Peace

    ReplyDelete
  8. Hey PBMN, can you enable RSS so we can easily follow the blog?

    Please? [:

    ReplyDelete
  9. Nice words Abdul, thank you.
    Djota, i put some RSS addon... tell me if it works for you.

    ReplyDelete
  10. Hello again PBMN!

    Yesterday Icefrog posted the link of Dota 2 Q&A. In the Q&A, it was mentioned that there will be an ai substitute if somebody leaves or disconnected during the game. Do you have any part of this "ai substitute" in DoTA 2? Sorry to ask you about this, but I have a strong feeling that you are indeed part of it since you are the most active and visible ai map maker of DoTA.

    ReplyDelete
  11. P.S.-and also harreke releases his 6.68ai test map today.

    ReplyDelete
  12. Works perfeclty, now tabbed in my firefox! Thank you!!

    PS: I have adblock and firefox, but I can see the images [:

    ReplyDelete
  13. Hi PBMN
    just a suggestion :)...
    - how about adding Akasha (QoP) sonic wave's cooldown with aghanim scepter (lvl 16- 40 seconds) from 6.69 to 6.68c ai so that the ai Akasha can spam her ultimate to creep waves attacking the towers ( maybe limit of 10-12 creeps at sonic wave's aoe before ai cast it) or to heroes. It will be very cool with dagon and shiva's guard item build. Of course the ai akasha should chase the low health enemy heroes with blink with care. Thanks for rev.2d ai map!! i really enjoyed playing with ai now coz they're smarter.

    ReplyDelete
  14. Ullysis can u suggest harreke to fix -oui command? Its not working well in his current map but doing great with PBMN's map.Oh n PBMN ur bot spam skills too much >.<

    ReplyDelete
  15. i don't really understand about harreke's AI map,AI hero just went to the same lane,they start the game at level 25,didn't buy anythin, and did "play the game"..i mean they just sit there doing nothing...but its great to hear something from harreke,but it would nicer if someone could explain to me briefly about his map

    ReplyDelete
  16. @Game: Sorry to disappoint 'coz it's only in Chinese forum in playdota.com that you could reach Harreke, and i don't know how to speak/read/write Mandarin Language 'coz am not Chinese:D

    Better wait for PBMN's ai version of 6.68 map, it's a lot better thou.

    ReplyDelete
  17. Ai map will release b'fore next month?
    sry 4 asking this!
    (:

    ReplyDelete
  18. Yeah man ... hope you release it before nxt month, its good if its a next year present though :p

    ReplyDelete
  19. Just Zulhatta...
    I think, it will release on Chrismas as present for us..
    :D

    ReplyDelete
  20. I have written a program in Linux. It will run as a module. How can check for memory leaks in it?

    Thanks
    Brad Fallon

    ReplyDelete