eviacam icon indicating copy to clipboard operation
eviacam copied to clipboard

Assertion on startup: assert "wxDynamicCast(ptr, T)" failed in wxCheckCast(): wxStaticCast() used incorrectly

Open LordAro opened this issue 8 years ago • 1 comments

On Arch Linux, with: wxgtk: 3.0.2 opencv: 3.2.0

With the following backtrace:

ASSERT INFO:
/usr/include/wx-3.0/wx/object.h(160): assert "wxDynamicCast(ptr, T)" failed in wxCheckCast(): wxStaticCast() used incorrectly

BACKTRACE:
[1] wxToggleButton* wxCheckCast<wxToggleButton>(void const*, wxToggleButton*) /usr/include/wx-3.0/wx/object.h:160
[2] CClickWindowText::CreateControls(wxString const&) /home/lordaro/dev/eviacam/src/clickwindowtext.cpp:72
[3] CClickWindow::Create(wxWindow*, wxString const&) /home/lordaro/dev/eviacam/src/clickwindow.cpp:61
[4] CClickWindowText::CClickWindowText(wxWindow*, wxString const&) /home/lordaro/dev/eviacam/src/clickwindowtext.cpp:52
[5] wxString::ConvertedBuffer<char>::~ConvertedBuffer() /usr/include/wx-3.0/wx/string.h:3490
[6] CDwellClick::EnableVisualAlerts(bool) /home/lordaro/dev/eviacam/src/dwellclick.cpp:203
[7] CPointerAction::CPointerAction() /home/lordaro/dev/eviacam/src/pointeraction.cpp:43
[8] CViacamController::Initialize() /home/lordaro/dev/eviacam/src/viacamcontroller.cpp:292
[9] EViacamApp::OnInit() /home/lordaro/dev/eviacam/src/eviacamapp.cpp:176
[10] wxEntry(int&, wchar_t**)
[11] main /home/lordaro/dev/eviacam/src/eviacamapp.cpp:82
[12] __libc_start_main
[13] _start

LordAro avatar Apr 29 '17 18:04 LordAro

This usually happens when you try to run eviacam without installing it because is unable to find some files. To solve it try for instance:

./configure --prefix=/usr/local make make install /usr/local/bin/eviacam

cmauri avatar Feb 13 '18 19:02 cmauri