Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X Error of failed request: BadWindow (invalid Window parameter) when deleting rows/columns #4

Open
Shima1371 opened this issue Feb 23, 2023 · 0 comments

Comments

@Shima1371
Copy link

Shima1371 commented Feb 23, 2023

When I tried to reduce the grid size, I got the message "Rows/columns will be deleted from right/top. Continue?" Whether I clicked OK or Cancel, the viewer crashed and I got the following error message:

X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  15 (X_QueryTree)
  Resource id in failed request:  0x200141
  Serial number of failed request:  37632
  Current serial number in output stream:  37632

I solved this problem in the following way from

gui_master = Tk()
gui_master.title('EvoGym Design Interface GUI')

main_env = env.Env()
main_viewer = viewer.Viewer('EvoGym Design Interface')
gui_viewer = gui.GUI(gui_master, main_viewer.window_data)

to

main_env = env.Env()
main_viewer = viewer.Viewer('EvoGym Design Interface')

gui_master = Tk()
gui_master.title('EvoGym Design Interface GUI')
gui_viewer = gui.GUI(gui_master, main_viewer.window_data

In viewer.py, glfw.init() needed to be in before Tk().
I used the following link as a reference:
https://stackoverflow.com/questions/71649848/badwindow-crash-in-tkinter-after-calling-glfw-init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant