Open Dragonsmen83 opened 9 years ago
I've had this bug crash my server quite a few times now and it seems to be all related, but different things that cause it.To add bit of detail to the above report, it's crashing because certain things cannot be cast to ComponentMenuSplit (in the function refreshData, you cast in the first line, line 146) as per my error logs. However, I also got a different crash due to an index out of bounds, where index and size were both 1, but the line it's telling me is the 1283 of FlowComponent, where you have a for loop to refresh all components. I believe these two are linked, as they both occurred when I attempted to delete groups(different groups, not the same). My guess would be that your menus.size() or .get() has a bug in it somewhere. If you tried to cast a null object that might explain the failure to cast error as well, but that's just a guess. I'm not sure why one time would tell me out of bounds and the other would tell me cast error. I have a few crash logs/stack traces (2 index out of bounds, 1 where a ComponentMenuResult couldnt be cast to a ComponentMenuSplit, and 1 where a ComponentMenuTargetInventory cannot be case toa ComponentMenuResult) if you'd like me to put them on pastebin. I can also show you some of the groups causing the crashing if you'd like, as I still am using some. I tried to look through your code but I fear it's far too large for me to get any meaningful sort of understanding in a relatively short time.
Thanks for such a neat mod and again let me know if you want any further info!
EDIT: Also, forgot to mention it does not happen with any group, but I can't really tell what exactly makes it happen, as I went into a single player world and coded up fairly similar things and it worked. Perhaps I'll try the exact same setup.
I have found that on the beyond reality pack the server crashes when you delete a group with commands still in it but no problem if you open it and delete them first