So it seems that most of the time whenever I try to change layouts in the event editor, I get some sort of crash. So far, this is the second time this has happened to me. The first time that it happened, I had actually gotten layout switching to work initially. Then after a bit of added new code here and there (not even touching the layout switching code btw), it suddenly crashes. I could not for the life of me figure out what was causing it, so I tried manually reverting my project back to a state when it did work by deleting all the new code I had added, which ended up working. Luckily I didn't have to remove much, and everything worked fine after that, but I was still never able to isolate what was actually causing it.
This time however, it's crashed right after I added the "go to layout" event for the first time. But the weird part about this is that even though it crashes most of the time, it will occasionally work. I've tried debugging it and it's telling me the crash is caused by the SpriteFont plugin that I'm using, though I have no idea why that's even the problem.
I've looked around the forums a lot, and it seems that a lot of other people are having trouble with layout switching as well. Though the problem usually ends up being something like having an OR condition run during layout switching, or using transitions. I am doing neither of those. At this point I'm pretty much convinced that this is some bug within CC itself, and not due to poor coding on my part. But I need to know if there's any way to fix/prevent this from happening, since the game I'm working on is going to need a lot of layouts. So just simply avoiding layout switching entirely is out of the question.