hugin-devs team mailing list archive
-
hugin-devs team
-
Mailing list archive
-
Message #05686
[Bug 1434932] Re: assert "IsOpened()" failed in GetFirst() when running in debug mode
Thanks. Committed a slightly modified version.
We are using spaces for indentation, no tabs. (There are some place
where tabs are still used. But I try to keep at spaces.)
** Changed in: hugin
Status: New => Fix Committed
--
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1434932
Title:
assert "IsOpened()" failed in GetFirst() when running in debug mode
Status in Hugin - Panorama Tools GUI:
Fix Committed
Bug description:
When compiling in debug mode and running from the build directory, an
assertion is triggered due to the missing plugins directory.
ASSERT INFO:
./src/unix/dir.cpp(275): assert "IsOpened()" failed in GetFirst(): must wxDir::Open() first
BACKTRACE:
[1] wxDir::GetFirst(wxString*, wxString const&, int) const
[2] MainFrame::MainFrame(wxWindow*, HuginBase::Panorama&) /home/sean/pkg/hugin-hg/src/hugin/src/hugin1/hugin/MainFrame.cpp:371
[3] huginApp::OnInit() /home/sean/pkg/hugin-hg/src/hugin/src/hugin1/hugin/huginApp.cpp:315
[4] wxAppConsoleBase::CallOnInit() /usr/include/wx-3.0/wx/app.h:93
[5] wxEntry(int&, wchar_t**)
[6] main /home/sean/pkg/hugin-hg/src/hugin/src/hugin1/hugin/huginApp.cpp:118
[7] __libc_start_main
[8] _start
The attached patch fixes the issue by checking whether the dir open
succeeded before attempting to access it. (I used hg diff this time,
let me know if it's formatted right.)
To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1434932/+subscriptions
References