tour program crashes

When I run tour program on RedHat Fedora compiled with gcc 3.3.2 it crashes producing following message watershed 4 4 4 4 255 3 3 3 3 255 2 2 2 2 255 1 1 1 1 1 watershedling lena... tour: /usr/local/olena/include/oln/core/abstract/image.hh:105: typename oln::image_traits<Ima>::size_type& oln::abstract::image<Exact>::size() const [with Exact = oln::image2d<ntg::int_u8, mlc::final>]: Assertion `has_impl_()' failed.Aborted Michal

Michal Lijowski <michal@cvu.wustl.edu> writes:
When I run tour program on RedHat Fedora compiled with gcc 3.3.2 it crashes producing following message
watershed 4 4 4 4 255 3 3 3 3 255 2 2 2 2 255 1 1 1 1 1
watershedling lena... tour: /usr/local/olena/include/oln/core/abstract/image.hh:105: typename oln::image_traits<Ima>::size_type& oln::abstract::image<Exact>::size() const [with Exact = oln::image2d<ntg::int_u8, mlc::final>]: Assertion `has_impl_()' failed.Aborted
This error happens when trying to access an empty image. I guess the test image has not been properly loaded. Maybe you tried to compile the demo tour before doing 'make' in the olena root directory. A quick workaround, if don't want to spend a lifetime compiling the whole olena distribution, is to do 'cd olena/img; make'. By the way, olena's io used to be more expressive. Applying the below patch should prevent this kind of disappointment. I really don't know why this line has been commented out, maybe because it is a bit annoying when using olena in a python shell (as it may have its own error reporting). Thanks for your feedback :) -=-=-=-=-= Index: olena/oln/io/image_read.hh --- olena/oln/io/image_read.hh Thu, 07 Aug 2003 02:37:23 +0200 burrus_n (oln/t/45_image_read 1.9 600) +++ olena/oln/io/image_read.hh Fri, 12 Dec 2003 01:45:00 +0100 js (oln/t/45_image_read 1.9 600) @@ -166,7 +166,7 @@ // << std::flush; return true; } - // std::clog << "[unable to read '" << name << "'] " << std::endl; + std::clog << "[unable to read '" << name << "'] " << std::endl; return false; } -=-=-=-=-= -- js@lrde.epita.fr "creating the future" (c) framfab
participants (2)
-
Jean-Sebastien Mouret
-
Michal Lijowski