assert "IsOpened()" failed in GetFirst() when running in debug mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Hugin |
Fix Released
|
Undecided
|
Unassigned |
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/
BACKTRACE:
[1] wxDir::
[2] MainFrame:
[3] huginApp::OnInit() /home/sean/
[4] wxAppConsoleBas
[5] wxEntry(int&, wchar_t**)
[6] main /home/sean/
[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.)
Changed in hugin: | |
milestone: | none → 2015.0beta1 |
status: | Fix Committed → Fix Released |
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.)