SEG FAULT with XIOS and PSOURCE_NCFILE

Hello,
i am using the croco from master branch.
When activating Psource_ncfile and XIOS i got a seg fault (in pre_step3d_tile_ ) at time step 0

With only one or the other it works !

Any idea ?

thanks !

I got 71 rivers in my config and Msrc was set to 30 in my param.h : that was it !

so now, why the use of xios make the code to crash and why undef xios let it run ??? why not simply an explicit error message ?