Skip to content

Segmentation fault with buttonbox and fileopenbox #227

@dimitri-eckert

Description

@dimitri-eckert

I get segfaults when I use a combination of easygui.fileopenbox() and easygui.buttonbox()

A minimal reproducible example would be:

`import easygui

easygui.fileopenbox()
easygui.buttonbox()
easygui.fileopenbox()`

When I run this program the fileopenbox opens normally and I can select a file. Then the buttonbox appears, but when I click one of the boxes the program crashes an throws most of the times "Segmentation fault: 11" sometimes it throws "Trace/BPT trap: 5".
When I add some print-statements:
`import easygui

print("1")
easygui.fileopenbox()
print("2")
easygui.buttonbox()
print("3")
easygui.fileopenbox()
print("4")`

The output is:
1
2
3

So the crash happens when the program gets to the second fileopenbox() command.

I am using Python 3.12.0 and easygui 0.98.3 on MacOS 14.6.1 (23G93) with M1 chip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions