Staredit Network > Forums > SC1 Mapping Tools > Topic: SCMDraft crashing frequently with locations
SCMDraft crashing frequently with locations
Apr 5 2017, 2:25 am
By: perlitzer  

Apr 5 2017, 2:25 am perlitzer Post #1

Blah blah first post blah right place for this blah blah.

My SCMDraft (latest) has had this issue for the longest time. Half the time, it will crash when placing a location, the other half it will crash just by selecting Location in the dropdown. There have not been any conclusive fixes I've found so far, so I'll paste the crash dump file here and hope someone knows how to fix it (since there's no telling for how long the Stormcoast authors have been missing).

Thanks for your cooperation!

Hits: 1 Size: 165.09kb


Apr 5 2017, 2:28 am trgk Post #2

Have you updated to 1.18?

That will cause a crash. ScMDraft 2 is not currently compatiable with 1.18.

Apr 5 2017, 2:36 am perlitzer Post #3

Thanks for the quick reply by the way

I got rid of my old SC directory and configured the profile to make it draw the MPQs from the new directory.

Though I did get 1.18, I've had this problem long before 1.18 was released for ptr so it doesn't seem to be related; I haven't 'corrupted' the map by running it in SC yet regardless lol

edit: SCMdraft also runs just fine in other aspects, no crashes or anything else unrelated to locations/trigedit


Apr 5 2017, 2:54 am jjf28 Post #4

Cartography Artisan

First consider that it might be a problem with the map you're regularly editing rather than a flat out problem with the editor - if you can confirm that's the case then there are "real" fixes you can do.

If not, then there are things you can try but no magic bullet since none of us can go in and actually fix SCMDs code (barring SI if he's still hanging around for remaster thingies), see this and sub-links for things you can try.

Chkdraft's locations and triggers work if using it for that portion would suffice:

TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 5 2017, 2:59 am perlitzer Post #5

Alright thanks for the reply, I'm going to try both using an older ver. of scmdraft and using chkdraft for locations.

Interestingly enough, occasionally when I would put my maps through the normal editor, it seemed to have a 'purifying' effect - even if there weren't any locations on the map to begin with, the locations in scmdraft would become usable again.


Apr 5 2017, 5:37 am NudeRaider Post #6

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

There's a couple of ScmDraft 2 0.8 versions out, and some of them are more instable. But I've lost track of which is which. You can try download a couple from different sources and find out by trial and error.

But you could also go back to the previous version: 0.73 it's still quite powerful, but lacks some of the latest features. However I've found it to be pretty stable.

If just a certain map or a few maps cause the crashes then it's likely string corruption which most often happens when you're changing editors, because of the string recycling of ScmDraft which other editors do not support.
In that case upload the map and I think some people here may be able to fix the corruption (maybe just saving it in ChkDraft?). Or you can use the backup db of ScmD to go back to a stable version and import the changes via SCMIE.

Post has been edited 1 time(s), last time on Apr 5 2017, 5:46 am by NudeRaider.

Apr 5 2017, 1:29 pm Suicidal Insanity Post #7

I see you !

If its reproducible with a particular map, PM me the map, so I can see why it is crashing. If its every map, then it becomes more difficult.

Back when I originally wrote scmdraft I was lazy with parameter validation / error checking :( And didn't know about various useful tools to catch errors (Or they didn't yet exist)

Post has been edited 1 time(s), last time on Apr 5 2017, 1:37 pm by Suicidal Insanity.

Apr 5 2017, 10:24 pm perlitzer Post #8

I've switched to CHKdraft for just locations and am using SCM for everything else.

I opened an example map (wheel of war, melee so it shouldn't have any actual triggers) and clicking Locations went fine, but clicking and dragging to make a new location caused another crash. This doesn't look map related, but something within Trigedit I assume since that's the name of the error box.

Any info you want that is relevant and could help I'd happily give.

Thanks everyone!

Hits: 4 Size: 390.74kb


Apr 6 2017, 2:35 am NudeRaider Post #9

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Check your ScmD program folder for a file called "backupDB.scmdDB". Sometimes this file gets too big (~2GB) and causes crashes throughout. Rename the file and see if the errors persists.
It contains all your previous map versions. So if this file is the cause, make sure you've got everything you need from it before getting rid of it.

Apr 6 2017, 6:36 pm Suicidal Insanity Post #10

I see you !

The trigedit.dmp file is created whenever anything goes wrong, not just trigedit.

You could try changing the size of the window, or scrolling slightly to the left and bottom before creating the location and see if that helps.

I need to find the correct symbols file to take a detailed look at the crash, but its a nullptr deref so I'm not sure why that is triggered by locations immediately.

Apr 8 2017, 2:01 am perlitzer Post #11

I checked the backup and it was about 2.6k kilobytes so it shouldn't be the issue.

As far as I could tell, changing the window size and scrolling in those directions didn't look to do anything.

I was able to get it not to crash as soon as selecting the Locations tab, though, by doing those things.

Thank you for your continued help and support with me on this. SCMDraft is working fine for you right? If there are any files outside my scmdraft directory that could be screwing with something _inside_ the editor let me know.

Thanks again


Apr 8 2017, 8:14 am Suicidal Insanity Post #12

I see you !

I'm pretty sure its a threading or memory corruption caused by scmdraft itself. I've been fixing errors as I find them, but haven't released an updated version.

Apr 9 2017, 2:40 am perlitzer Post #13

Well, wherever you are, whatever you're doing, thank you so much for doing God's work. I really love making campaigns on this thing!

and a parting question - what is your stance so far on Chkdraft? would you work with its author if you ever found any free time if you could?


Apr 9 2017, 3:37 am jjf28 Post #14

Cartography Artisan

Oh my you popped that question,

We've so far had an ok working-relationship, you're always welcome to my concepts and code (MIT Licence - can use however).

We might be able to do more together but we both suffer from a terminal lack of time, and we probably have different priorities with the time we do have (he has an NDA with blizzard, which probably limits how much we can even discuss here, but I assume he's stabilizing SCMDraft and maybe adding a feature or two to keep with Blizzards updates, not trying to reinvent it as an open-source project).

Our codebases might be compatible... we're both in C++; I maintain the CHK sections as byte buffers (to heinermann's constant disapproval) any abstraction is used just for the current call stack and any changes land back in the byte buffers; I use the windows API for the GUI.

I'm up for most anything, except a time commitment ;)

TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 9 2017, 8:18 am Suicidal Insanity Post #15

I see you !

Its not a competition, I'm glad others are also having fun with starcraft.

I haven't taken a look at chkdraft's code yet because I always felt that would be unfair with me not sharing mine. And I never shared mine because it wasn't up to the standards I currently expect my code to have, after 10 years of coding for work. Back when chkdraft was started I started redoing some of the data file classes with the though of sharing them, but work + life happened and then chkdraft had its own versions :(.

If nothing ends up happening with blizzard, maybe we can still see about making a set of base classes for the data / graphics as a start.

Actually scmdraft parses all buffers into custom classes / structs with getters / setters / (And nowadays, some even have events instead of having the UI call into every other part of the UI that is depenent on the settings), only thing that is kept as a byte buffer is

Scmdraft uses win32 API as well, but the oldest windows aren't even done using dialog templates, they were done using a custom window class which creates all sub windows manually and a dialog like custom window proc. Most of those have been replaced by proper dialogs as time went by though.

Apr 10 2017, 9:10 pm perlitzer Post #16

It looks like everyone here is probably in the same boat then; just waiting to see what happens in the future, if eventually anything. I just hope things are going well for the both of you. Looks like there's going to be a lot more mapping coming this summer which is something I can totally get behind.

Also, I haven't always had this problem. It really seems to be hit or miss- locations will work well for a span of time, and then just kinda crap out for some reason. If I can find my old laptop charger I'd like to fire up scmd on there and test it out, because last I know it worked fine.


  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:53 am]
Zergy -- Vrael
Vrael shouted: Zergy when you pay the certificate fee
Let's Encrypt is free and work perfectly fine.
[04:38 pm]
jjf28 -- :payne:
[2022-1-24. : 4:31 pm]
NudeRaider -- I'm pretty sure Devlin would pay for it
[2022-1-24. : 3:32 pm]
Vrael -- Zergy
Zergy shouted: HTTPS support on SEN, when?
when you pay the certificate fee
[2022-1-24. : 12:02 pm]
NudeRaider -- now the spammers are even announcing their presence in the shoutbox. smh
[2022-1-24. : 7:52 am]
MarkPotter -- To participate in forums
[2022-1-24. : 2:55 am]
Ultraviolet -- high effort questions receive high effort responses :cool:
[2022-1-22. : 8:55 pm]
NudeRaider -- I love how everyone obsesses over the topic of Prankenstein. It's a seemingly simple request with many solution, but he was asking about the most elegant one, so everyone is giving their best. Peak SEN imo :)
[2022-1-22. : 4:37 pm]
NudeRaider -- never
[2022-1-22. : 3:59 pm]
Zergy -- HTTPS support on SEN, when?
Please log in to shout.

Members Online: Roy, Oh_Man, MetalGear, UndeadStar, Moose, Zincoshine