cmauri / eviacam

webcam based mouse emulator
GNU General Public License v3.0
143 stars 37 forks source link

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

Open LordAro opened 7 years ago

LordAro commented 7 years ago

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
cmauri commented 6 years ago

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