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

[Bug] g.gui.gmodeler: defining relations fails #3862

Closed
pesekon2 opened this issue Jun 17, 2024 · 0 comments · Fixed by #3865
Closed

[Bug] g.gui.gmodeler: defining relations fails #3862

pesekon2 opened this issue Jun 17, 2024 · 0 comments · Fixed by #3865
Assignees
Labels
bug Something isn't working GUI wxGUI related Python Related code is in Python

Comments

@pesekon2
Copy link
Contributor

Describe the bug

If I try to define a relation using the Define relation option from the menu and choose two features (data and module), nothing happens, raising the following error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/wx/lib/ogl/canvas.py", line 276, in OnMouseEvent
    nearest_object.GetEventHandler().OnLeftClick(x, y, keys, attachment)
  File "/home/pesek/workspace/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/canvas.py", line 150, in OnLeftClick
    dlg = ModelRelationDialog(parent=self.frame, shape=rel)
  File "/home/pesek/workspace/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/dialogs.py", line 399, in __init__
    self._layout()
  File "/home/pesek/workspace/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/gmodeler/dialogs.py", line 421, in _layout
    mainSizer.Add(
wx._core.wxAssertionError: C++ assertion "CheckSizerFlags(!((flags) & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL | wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL)))" failed at ./src/common/sizer.cpp(2299) in DoInsert(): wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL | wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL will be ignored in this sizer: wxEXPAND overrides alignment flags in box sizers

DO NOT PANIC !!

If you're an end user running a program not developed by you, please ignore this message, it is harmless, and please try reporting the problem to the program developers.

You may also set WXSUPPRESS_SIZER_FLAGS_CHECK environment variable to suppress all such checks when running this program.

If you're the developer, simply remove this flag from your code to avoid getting this message. You can also call wxSizerFlags::DisableConsistencyChecks() to globally disable all such checks, but this is strongly not recommended.

Expected behavior

Pop up a dialog.

System description

  • Operating System: Linux (Ubuntu)
  • GRASS GIS version: main as of ae7163c
@pesekon2 pesekon2 added bug Something isn't working GUI wxGUI related Python Related code is in Python labels Jun 17, 2024
@pesekon2 pesekon2 self-assigned this Jun 17, 2024
pesekon2 added a commit to pesekon2/grass that referenced this issue Jun 17, 2024
* meanwhile, fix the button size to see them in the default pop-up

fix OSGeo#3862
pesekon2 added a commit that referenced this issue Jun 19, 2024
)

* wxGUI/gmodeler: fix conflicting flags in 'Create relation' dialog
* meanwhile, fix the button size to see them in the default pop-up
* fix #3862
cyliang368 pushed a commit to cyliang368/grass that referenced this issue Jun 22, 2024
…Geo#3865)

* wxGUI/gmodeler: fix conflicting flags in 'Create relation' dialog
* meanwhile, fix the button size to see them in the default pop-up
* fix OSGeo#3862
kritibirda26 pushed a commit to kritibirda26/grass that referenced this issue Jun 29, 2024
…Geo#3865)

* wxGUI/gmodeler: fix conflicting flags in 'Create relation' dialog
* meanwhile, fix the button size to see them in the default pop-up
* fix OSGeo#3862
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related Python Related code is in Python
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant