alexkay / spek

Acoustic spectrum analyser
http://spek.cc
GNU General Public License v3.0
2.59k stars 259 forks source link

icon.IsOk() asserts #286

Open pgera opened 1 year ago

pgera commented 1 year ago

I build the master branch from source on Fedora 38. I get a couple of asserts while opening. The application works fine after I continue past these asserts.

First one: ASSERT INFO: ../src/common/iconbndl.cpp(360): assert ""icon.IsOk()"" failed in AddIcon(): invalid icon

BACKTRACE: [1] wxIconBundle::AddIcon(wxIcon const&) [2] wxIconBundle::wxIconBundle(wxIcon const&) [3] wxArtProvider::GetIconBundle(wxString const&, wxString const&) [4] wxString::ConvertedBuffer::~ConvertedBuffer() /usr/include/wx-3.2/wx/string.h:3605 [5] wxArtProvider::DoGetIconBundle(wxString const&, wxString const&) [6] wxArtProvider::GetIconBundle(wxString const&, wxString const&) [7] SpekWindow::SpekWindow(wxString const&) /home/pgera/src/spek/src/spek-window.cc:62 [8] Spek::OnInit() /home/pgera/src/spek/src/spek.cc:85 [9] wxEntry(int&, wchar_t**) [10] main /home/pgera/src/spek/src/spek.cc:29 [11] __libc_start_main [12] _start

Second one: ASSERT INFO: ../src/common/iconbndl.cpp(360): assert ""icon.IsOk()"" failed in AddIcon(): invalid icon

BACKTRACE: [1] wxIconBundle::AddIcon(wxIcon const&) [2] wxIconBundle::wxIconBundle(wxIcon const&) [3] wxArtProvider::GetIconBundle(wxString const&, wxString const&) [4] SpekWindow::SpekWindow(wxString const&) /home/pgera/src/spek/src/spek-window.cc:62 [5] Spek::OnInit() /home/pgera/src/spek/src/spek.cc:85 [6] wxEntry(int&, wchar_t**) [7] main /home/pgera/src/spek/src/spek.cc:29 [8] __libc_start_main [9] _start

reverbel commented 9 months ago

The same thing happens with spek built from the 0.8.5 tarball (https://github.com/alexkay/spek/releases/download/v0.8.5/spek-0.8.5.tar.xz) on Ubuntu 23.10 (Mantic):

assert1.txt assert2.txt

Perhaps this has to do with the fact that libwxgtk2.8 and libwxgtk2.8-dev are not available on Ubuntu 23.10, so I used libwxgtk3.2-1 and libwxgtk3.2-dev instead?