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

Extraneous warnings for surface dialog under Windows #120

Open
brettbode opened this issue Aug 30, 2020 · 2 comments
Open

Extraneous warnings for surface dialog under Windows #120

brettbode opened this issue Aug 30, 2020 · 2 comments
Assignees
Labels

Comments

@brettbode
Copy link
Owner

Looks like an extraneous alignment flag:

ASSERT INFO:
../src/common/sizer.cpp(2076): assert "!(flags & wxALIGN_CENTRE_VERTICAL)" failed in DoInsert(): Vertical alignment flags are ignored in vertical sizers

BACKTRACE:
[1] wxBoxSizer::DoInsert(unsigned long, wxSizerItem*)
[2] SurfacesWindow::CreateControls() /home/cassio/opt/wxmacmolplt-7.7/src/surfaceswindow.cpp:173
[3] wxWindowBase::Centre(int) /usr/local/include/wx-3.1/wx/window.h:421
[4] SurfacesWindow::SurfacesWindow(MolDisplayWin*, int, wxString const&, wxPoint const&, wxSize const&, long) /home/cassio/opt/wxmacmolplt-7.7/src/surfaceswindow.cpp:94
[5] MolDisplayWin::menuWindowSurfaces(wxCommandEvent&) /home/cassio/opt/wxmacmolplt-7.7/src/MolDisplayWin.cpp:3125
[6] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[7] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[8] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[9] wxEvtHandler::TryHereOnly(wxEvent&)
[10] wxEvtHandler::ProcessEventLocally(wxEvent&)
[11] wxEvtHandler::ProcessEvent(wxEvent&)
[12] wxWindowBase::TryAfter(wxEvent&)
[13] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[14] wxMenuBase::DoProcessEvent(wxMenuBase*, wxEvent&, wxWindow*)
[15] wxMenuBase::SendEvent(int, int)
[16] g_closure_invoke
[17] g_signal_emit_valist
[18] g_signal_emit
[19] gtk_widget_activate
[20] gtk_menu_shell_activate_item
[21] g_signal_emit_valist
[22] g_signal_emit
[23] gtk_main_do_event
[24] g_main_context_dispatch
[25] g_main_loop_run
[26] gtk_main
[27] wxGUIEventLoop::DoRun()
[28] wxEventLoopBase::Run()
[29] wxAppConsoleBase::MainLoop()
[30] wxEntry(int&, wchar_t**)
[31] main /home/cassio/opt/wxmacmolplt-7.7/src/main.cpp:501
[32] __libc_start_main
[33] _start

@brettbode brettbode added the bug label Aug 30, 2020
@Leonard-Reuter
Copy link

Leonard-Reuter commented Jan 20, 2021

I receive the same warning under Ubuntu 20.04.1 LTS, having compiled wxmacmolplt 7.7 with wxWidgets 3.1.4, gtk 3.24.20 and g++ 9.3.0.
There are several more warnings and the program aborts with a seg fault after loading an orbital. I can see the orbital, but as soon as I move the courser over the molecule, the seg fault occurs.
For wxWidgets 3.0.5, there are no warnings, but the seg fault still occurs.

These are all messages:

./src/common/sizer.cpp(2112): assert "!(flags & wxALIGN_CENTRE_VERTICAL)" failed in DoInsert(): Vertical alignment flags are ignored in vertical sizers
./src/common/sizer.cpp(2133): assert "!(flags & wxALIGN_RIGHT)" failed in DoInsert(): Horizontal alignment flags are ignored in horizontal sizers
./src/common/sizer.cpp(2112): assert "!(flags & wxALIGN_CENTRE_VERTICAL)" failed in DoInsert(): Vertical alignment flags are ignored in vertical sizers
./src/common/sizer.cpp(2112): assert "!(flags & wxALIGN_CENTRE_VERTICAL)" failed in DoInsert(): Vertical alignment flags are ignored in vertical sizers
./src/common/sizer.cpp(2112): assert "!(flags & wxALIGN_CENTRE_VERTICAL)" failed in DoInsert(): Vertical alignment flags are ignored in vertical sizers
./src/common/sizer.cpp(2112): assert "!(flags & wxALIGN_CENTRE_VERTICAL)" failed in DoInsert(): Vertical alignment flags are ignored in vertical sizers
./src/common/sizer.cpp(2112): assert "!(flags & wxALIGN_CENTRE_VERTICAL)" failed in DoInsert(): Vertical alignment flags are ignored in vertical sizers
./src/common/sizer.cpp(2150): assert "!(flags & (wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL))" failed in DoInsert(): Vertical alignment flags are ignored with wxEXPAND
./src/common/sizer.cpp(2124): assert "!(flags & (wxALIGN_RIGHT | wxALIGN_CENTRE_HORIZONTAL))" failed in DoInsert(): Horizontal alignment flags are ignored with wxEXPAND
Segmentation fault (core dumped)

This is my ./configure output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLU... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for Ming_init in -lming... no
checking for glewInit in -lGLEW... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking wxWidgets version... 3.1.4
checking for wxWidgets libraries... yes
checking for OpenGL support in wxWidgets... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands

@brettbode
Copy link
Owner Author

Hello,
I believe that the alignment warning issue is resolved in the v7.7.1 release. However, I am not convinced that the segfault was related. If you are still experiencing the issue please provide some more information on the conditions needed to cause the segfault.

@brettbode brettbode self-assigned this Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants