Opened 8 months ago

Closed 8 months ago

#16161 closed defect (fixed)

shaped example triggers assertions on linux

Reported by: dgud Owned by: PC
Priority: normal Milestone: 3.0.1
Component: samples Version: 3.0.0
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description

Select transparent window from menu and double click.

Also Third double click says "See through" but is not transparent,
this is the same on Windows 7.

None of the effects work for me either on linux.

Ubuntu 13:10
WX_3_0_BRANCH updated 4/4, git commit 535c8b1b99

Change History (4)

comment:1 Changed 8 months ago by vadz

What is the exact assert?

comment:2 Changed 8 months ago by dgud

First one

ASSERT INFO:

../src/common/wincmn.cpp(1637): assert "(style != wxBG_STYLE_TRANSPARENT)
GetHandle()" failed in SetBackgroundStyle(): wxBG_STYLE_TRANSPARENT style can only be set before Create()-ing the window.

BACKTRACE:
[1] wxWindowBase::SetBackgroundStyle(wxBackgroundStyle)
[2] wxWindow::SetBackgroundStyle(wxBackgroundStyle)
[3] SeeThroughFrame::SeeThroughFrame()
[4] MainFrame::OnShowTransparent(wxCommandEvent&)
[5] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[6] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[7] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[8] wxEvtHandler::TryHereOnly(wxEvent&)
[9] wxEvtHandler::ProcessEventLocally(wxEvent&)
[10] wxEvtHandler::ProcessEvent(wxEvent&)
[11] wxWindowBase::TryAfter(wxEvent&)
[12] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[13] wxMenuBase::SendEvent(int, int)
[14] g_closure_invoke
[15] g_signal_emit_valist
[16] g_signal_emit
[17] g_main_context_dispatch
[18] g_main_loop_run
[19] gtk_main
[20] wxGUIEventLoop::DoRun()
[21] wxEventLoopBase::Run()
[22] wxAppConsoleBase::MainLoop()
[23] wxEntry(int&, wchar_t)
[24] main
[25] libc_start_main
[26] _start

comment:3 Changed 8 months ago by dgud

Second: After double clicking in the rainbow window

ASSERT INFO:
../src/gtk/window.cpp(4055): assert "Assert failure" failed in GTKSendPaintEvents(): unsupported background style

BACKTRACE:
[1] wxWindow::GTKSendPaintEvents(_GdkRegion const*)
[2] g_closure_invoke
[3] g_signal_emit_valist
[4] g_signal_emit
[5] gtk_main_do_event
[6] gdk_window_process_all_updates
[7] g_main_context_dispatch
[8] g_main_loop_run
[9] gtk_main
[10] wxGUIEventLoop::DoRun()
[11] wxEventLoopBase::Run()
[12] wxAppConsoleBase::MainLoop()
[13] wxEntry(int&, wchar_t)
[14] main
[15] libc_start_main
[16] _start

comment:4 Changed 8 months ago by PC

  • Owner set to PC
  • Resolution set to fixed
  • Status changed from new to closed

In 76295:

fix transparent window example

wxBG_STYLE_TRANSPARENT can only be set before window creation.
closes #16161

Note: See TracTickets for help on using tickets.