UpdateEntArea SEGFAULT prevents autogenerated scenarios from being created
I did a fresh install over the weekend. The AV wizard was interrupted a few times (I think due to a quick reload of the router that happened in the background) while I was inputting my rooms. After completing the wizard I noticed none of the auto generated scenarios were created. I think another user had this same problem.
http://forum.linuxmce.org/index.php?topic=9331.0
After poking around in gdb, I discovered the problem. When adding the automatic scenarios, the code first checks to make sure the room isn't of type ROOMTYPE_Unmanaged_CONST. When it looks up the room, it uses PK_EntertainArea instead of FK_Room.
I'm guessing this works for most people as EntertainArea #1 (closed) is the same as Room #1 (closed). I think, due to the AV wizard getting interrupted, that my numbers didn't correspond like that.
A patch that solved this issue for me is attached.