Skip to content

wxGUI: Dragging AuiNotebook page raises error [Bug]  #2671

@lindakarlovska

Description

@lindakarlovska

Describe the bug
This problem occurs in Single-Window GUI. The error is raised when a user drag Map Notebook page (for example a user works with several map displays (several tabs) and wants to move the first map display tab to the position of the second tab (change positioning).

To Reproduce
Steps to reproduce the behavior:

  1. Create more map displays
  2. Click on the first map notebook tab and try to drag it somewhere else
  3. The positioning of map display tabs is correctly changed
  4. However, in the Console, you see this error:
    C++ assertion ""win && m_cr"" failed at /home/wxpy/wxPython-
    4.2.0/ext/wxWidgets/src/gtk/overlay.cpp(98) in Init():
    invalid dc for wxOverlay
    Traceback (most recent call last):
    File "/home/linduska/.local/lib/python3.10/site-
    packages/wx/lib/agw/aui/auibook.py", line 2451, in OnMotion

self._drag_image.Move(pos)
wx._core
.
wxAssertionError
:
C++ assertion ""win && m_cr"" failed at /home/wxpy/wxPython-
4.2.0/ext/wxWidgets/src/gtk/overlay.cpp(98) in Init():
invalid dc for wxOverlay

Expected behavior
An error should not be raised.

Screenshots
Screenshot from 2022-11-30 08-48-34

System description (please complete the following information):

  • Operating System: [Ubuntu 22.04.1 LTS]
  • GRASS GIS version [8.3 (main)]
  • wxPython: 4.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUIwxGUI relatedbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions