[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [MoM] FAST test suite issues



Hello Andreas,

Thanks for taking the time to build this.

> test cases: 221 |  32 passed | 189 failed
> assertions: 385 | 196 passed | 189 failed

This is a good sign :). I've now managed to replicate this.

> what():  Unable to open directory /usr/share/fonts/truetype/ubuntu

Ahh. I installed ttf-ubuntu-font-family instead, which I guess is a
subset of the package you installed. This is a depends of libfast-data,
because you would need libfast-data to run the libfast-examples anyways
(I forgot to depend libfast-examples to libfast-data so I will commit
this shortly).

> $ LC_ALL=C /usr/lib/fast/OpenIGTLinkServer

I can actually execute OpenIGTLinkServer just fine too and does not
throw cl* issue, which makes me think this server binary does not use
cl, or if it does, not to the length of functionality compared to the
other binaries that are more "client side".

Apart from OpenIGTLinkServer executing just fine and not the test suite
itself, it seems like you are getting the exact issues that I am
getting. clGetPlatformIDs should ever throw an error only if it cannot
find a GPU / rendering-capable device or probably experiences some
trouble. Just to confirm, are you sure you have whatever graphical
driver / CPU or GPU SDK installed? Note that I am on a VM that barely
has any passthrough of any sort / limited SSE.

Other than that, I think we are very close and just stuck with this one
error. Was curious if my patching was faulty so I cloned upstream and
built directly, but the error persists for me. Moreover, I will think of
what to do next.

Kind regards & thanks for the logs,
Shayan Doust

On 05/09/2019 06:46, Andreas Tille wrote:
> Hi Shayan,
> 
> I've now tested what my desktop has build yesterday. :-)
> 
> On Mon, Sep 02, 2019 at 12:57:55AM +0100, Shayan Doust wrote:
>>
>> I also see no reason why the test suite will not work now. As far as the
>> binary executes for me (until the opencl limitation), I see no asset-
>> related assertion or error. Curious to see if we get a success with testing.
> 
> I was running `sh debian/tests/run-unit-test 2>&1 | tee > fast_test.log`
> and attached this log here.  The end of this log is
> 
> ...
> INFO: QApp already exists..
> INFO: Device manager initialize..
> -------------------------------------------------------------------------------
> Pipeline C
> -------------------------------------------------------------------------------
> /build/fast-3.0.0~rc3+ds/source/FAST/Tests/Benchmarks.cpp:167
> ...............................................................................
> 
> /build/fast-3.0.0~rc3+ds/source/FAST/Tests/Benchmarks.cpp:167: FAILED:
> due to unexpected exception with message:
>   clGetPlatformIDs
> 
> ===============================================================================
> test cases: 221 |  32 passed | 189 failed
> assertions: 385 | 196 passed | 189 failed
> 
> 
> So at least not everything you did is failing. ;-)
> 
> I also tried to simply call the server:
> 
> $ LC_ALL=C /usr/lib/fast/OpenIGTLinkServer
> WARNING: Unable to open the configuration file /usr/fast_configuration.txt. Using defaults instead.
> terminate called after throwing an instance of 'fast::Exception'
>   what():  Unable to open directory /usr/share/fonts/truetype/ubuntu
> Abgebrochen
> 
> (Sorry for the German locale - I've set LC_ALL=C but it did not helped)
> 
> After installing fonts-ubuntu I've got a graphical interface.  So
> I just added fonts-ubuntu to Depends of libfast0 (may be it would
> be sufficient to add it to fast binary package but I think it does
> not harm inside the library) as well as Build-Depends (I'm not fully
> sure whether this is really needed but might not harm as well).
> 
> Unfortunately the installation of fonts-ubuntu does not change much
> in the test suite.  I repeated it and here is the diff of the logs:
> 
> --- fast_test.log       2019-09-05 07:25:40.037252840 +0200
> +++ fast_test_2.log     2019-09-05 07:40:21.076277590 +0200
> @@ -2,6 +2,10 @@
>  Invoking testFAST
>  INFO: Creating new QApp
>  WARNING: Unable to open the configuration file /usr/fast_configuration.txt. Using defaults instead.
> +INFO: Creating new GL context for computation thread
> +WARNING: Your system uses comma as decimal point.
> +WARNING: This will now be changed to dot to avoid any comma related bugs.
> +INFO: Device manager initialize..
>  
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  testFAST is a Catch v1.5.9 host application.
> @@ -15,12 +19,9 @@
>  
>  /build/fast-3.0.0~rc3+ds/source/FAST/Algorithms/AirwaySegmentation/airwaySegmentationTests.cpp:49: FAILED:
>  due to unexpected exception with message:
> -  Unable to open directory /usr/share/fonts/truetype/ubuntu
> +  clGetPlatformIDs
>  
>  INFO: QApp already exists..
> -INFO: Creating new GL context for computation thread
> -WARNING: Your system uses comma as decimal point.
> -WARNING: This will now be changed to dot to avoid any comma related bugs.
>  INFO: Device manager initialize..
>  -------------------------------------------------------------------------------
>  Block matching 2D
> 
> 
> Its basically that some locale related things (dot -> comma) are
> showing up at different places and that the exception about the
> fonts changed.  I'm a bit worried about
> 
>    fast_configuration.txt
> 
> Configuration files should be in /etc/fast/fast_configuration.txt.  You
> should probably patch the code to seek there and we should also provide
> some configuration file there.  However, I doubt that those test suite
> errors are occuring due to missing configuration.
> 
> That's all I can say for now.
> 
> Thanks again for your work
> 
>     Andreas.
> 

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: