Page 1 of 1

CaWE segmentation fault

Posted: 2011-01-09, 19:23
by thambs
my OS is ubuntu 10.04 LTS, 64bit. I download Cafu-src-r210, copile it, but CaWE do not work:

Code: Select all

~/Cafu-src-r210/build/linux2/g++/debug/CaWE ./CaWE 
../src/common/image.cpp(1560): assert "Ok()" failed in GetWidth(): invalid image
../src/common/image.cpp(1567): assert "Ok()" failed in GetHeight(): invalid image
../src/common/image.cpp(1937): assert "Ok()" failed in HasMask(): invalid image
../src/common/image.cpp(1560): assert "Ok()" failed in GetWidth(): invalid image
../src/common/image.cpp(1567): assert "Ok()" failed in GetHeight(): invalid image
../src/common/image.cpp(1819): assert "Ok()" failed in GetAlpha(): invalid image
../src/common/image.cpp(1819): assert "Ok()" failed in GetAlpha(): invalid image
../src/common/image.cpp(1801): assert "Ok()" failed in SetAlpha(): invalid image
zsh: segmentation fault  ./CaWE
how can i get workable CaWE?

Re: CaWE segmentation fault

Posted: 2011-01-09, 20:03
by Carsten
Hi Thambs,
welcome to the Cafu forums! :welcome:
thambs wrote:how can i get workable CaWE?
Please try and run CaWE not from ~/Cafu-src-r210/build/linux2/g++/debug/CaWE, but from ~/Cafu-src-r210:

Code: Select all

~/Cafu-src-r210> build/linux2/g++/debug/CaWE/CaWE
Then it should work (please let us know), but of course we should not experience a segfault only because the working directory was not as expected... assuming it works properly when started from the right working directory, could you please file a related bug report (help/how-to)?

Re: CaWE segmentation fault

Posted: 2011-01-10, 22:13
by thambs
i see. when it was started in Cafu-src-r210 it works. i sent bugreport http://trac.cafu.de/ticket/60

Re: CaWE segmentation fault

Posted: 2011-01-11, 22:17
by Carsten
thambs wrote:when it was started in Cafu-src-r210 it works. i sent bugreport http://trac.cafu.de/ticket/60
ok, :thx: