Opened 6 years ago

Closed 3 years ago

#16765 closed defect (outdated)

wxPython GTK+3: crash when GetHandle() called on wx.Frame if unrealized

Reported by: swt2c Owned by:
Priority: normal Milestone:
Component: wxPython Version: 3.0.2
Keywords: Cc:
Blocked By: Blocking:
Patch: yes

Description

If GetHandle() is called on a wx.Frame before it has been realized, this results in a crash with the GTK+3 implementation. It seems that GDK_WINDOW_XID() is less friendly about dealing with null windows than GDK_WINDOW_XWINDOW(), so we should check the window beforehand.

Patch attached.

Attachments (1)

wxPython-3.0.2.0-getxwindowcrash.patch download (1.2 KB) - added by swt2c 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by swt2c

comment:1 Changed 3 years ago by robind

  • Resolution set to outdated
  • Status changed from new to closed

Closing old Phoenix tickets...

If this is still an issue in wxPython 4.0.0a1 then please open a new issue (or PR) at the wxPython-Phoenix project page on Github: https://github.com/wxWidgets/Phoenix

Note: See TracTickets for help on using tickets.