Grubuntu / PieMenu

Fork of PieMenu, with some improvements
8 stars 4 forks source link

SIGSEGV when creating a new pie #34

Closed hasecilu closed 6 months ago

hasecilu commented 7 months ago

Since I had some parameter from mdkus version I decided to start from zero deleting PieMenu parameters.

Now when I try to create a new menu when switching to it in the GUI to add the commands FreeCAD crashes both when using new menu and copy current menu. In the parameters there is no update on IndexList.

Maybe we would need to enable some kind of console debugging with: FreeCAD.Console.PrintMessage().

Could you try to create a new menu? Tested on 0.21.2 and 0.22.dev versions.

Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3e710) [0x7d1c5025c710]
#1  /usr/lib/libQt5Core.so.5(+0x39bcb0) [0x7d1c50b9bcb0]
Grubuntu commented 7 months ago

No problem noted here on a new installation (new user.cfg file). I tried on 0.21 and 0.22.

Do you have the 3 menus created by default during a new installation? Capture d’écran (80)

hasecilu commented 7 months ago

Yes, they work fine, only I noted that (maybe because of the crash) values for pie and button sizes resets to default.

Just when I click on "WBs" the crahs happens.

I'm on Arch Linux

Edit: Not only with the new menu I tried changing to Sketcher and PartDesign menus and the crash also happens. Edit2: Also tried deleting user.cfg file, same result.

image

Grubuntu commented 7 months ago

Try to write in the parameters via command line to see if it is not a write permission problem:

paramPath = "User parameter:BaseApp/PieMenu"
paramGet = App.ParamGet(paramPath)
paramGet.SetString("Test", "Test_Ok")

After, check with Tools >Edit parmeters... to check if the string "Test_Ok" was written well Capture d’écran (81)

restart Freecad and check again that the value is still present in the parameters.

hasecilu commented 7 months ago

That's not the problem, it appears. In W10 seems to no be problems. Could be something Linux related or something specific to my system. Maybe if someone could test on other Linux systems. I'll try previous versions.

hasecilu commented 7 months ago

The crashes appear almost inmediately, list of good commits:

Edit: I ran git bisect and it shows a2378a2374c6f5b2ed8dbb447d89e8d6d063c09e as the problem but I don't know how is it related.

On main the commit history is this and crashes: image When creating a new branch based on f50b533f looks like this: image

Grubuntu commented 6 months ago

Try to comment each lines contains and see if it works again:

comboShape.addItem(" ") # Add separator
comboShape.model().item(comboShape.count()-1).setEnabled(False)  # Disable the separator 
hasecilu commented 6 months ago

I tried proposed changes during several minutes and crash don't occur, when bug is present in less than 10[s] already crashed.

I was able to change sizes, add elements, move them, interact with UI elements and use PieMenu.