Page 1 of 1

menu builder crash

Posted: Tue Aug 27, 2024 3:22 am
by neville
Just got a crash in OxTLite when working with the Menu Builder tool. This is with a legacy Livecode stack, but I am 90% sure I had used MenuBuilder before successfully with this stack in OxTLite.

Just now it wouldn't let me edit the current menubar (which was "menubar 2"). The menubar items displayed correctly, but greyed out, everything was disabled. I created a new menubar, called "menubar 1". That enabled all items. Then selected my "menubar 2". All those items now enabled and I could edit it, seemingly successfully. Then tried to delete "menubar 1". Fatal crash of OXT. When I relaunched, menubar 2 was no longer editable; the stack hadn't saved so the changes I had made were gone, and menubar 1 was also absent.

Have changes been made to the Menu Builder stuff, or could this be an old LC bug?

Re: menu builder crash

Posted: Tue Aug 27, 2024 6:30 am
by tperry2x
I've made no changes to the menu builder stack as of yet. I was thinking of completely remaking it, but that was going to be a job for a future update.

What platform and OS version are you using Neville?
Many thanks.

Re: menu builder crash

Posted: Tue Aug 27, 2024 7:55 am
by neville
That's MacOS Ventura, on a MacAir.

I haven't searched the LC Quality Control for this yet, but it sounds like it is an old bug we have inherited. I'll look for a workaround. My latest suspicion that

put the editmenus of this stack -> false

may have something to do with it

Re: menu builder crash

Posted: Tue Aug 27, 2024 8:22 am
by neville
No, setting the editmenus works correctly (hiding the menu and raising the stack on a Mac) but the Menu Builder still doesnt work with it set to either true or false, everything except the New and Edit buttons is disabled. With New I can create a new menu, but deleting that then crashes the IDE.

A good possibility is my copy of the Menu Builder stack has been corrupted somehow (so the bug lies in how it got corrupted.) I will next try re-installing OxTLite (hmm maybe just the Menu Manager if I can track it down). But not now

Re: menu builder crash

Posted: Thu Aug 29, 2024 12:16 pm
by neville
No idea what caused the Menu Builder problem but I fixed it by :
creating a new stack
opening MenuBuilder to create a new menubar for the new stack - MB worked correctly.
close the stack
MenuBuilder now opens with my original stack with items enabled, no crashes.

Re: menu builder crash

Posted: Thu Aug 29, 2024 2:35 pm
by tperry2x
There's some kind of bug there somewhere, but the menu builder is something I want to look into at some point anyway. I'm glad it's resolved for you at the moment, but I'd still like to find out why it has this weirdness.

Re: menu builder crash

Posted: Fri Aug 30, 2024 3:01 am
by OpenXTalkPaul
tperry2x wrote: Thu Aug 29, 2024 2:35 pm There's some kind of bug there somewhere, but the menu builder is something I want to look into at some point anyway. I'm glad it's resolved for you at the moment, but I'd still like to find out why it has this weirdness.
The menu builder has always been kind of weird I think. Personally I don't use it, I usually just copy-paste an existing menu and then modify it to suite the project. I probably would use custom menus more often if the tool for their construction was less wierd. TerryL's work on that helped a bit but I'd like to try out some other ideas for a menu building tool.