App crashes when using bonds on SDK 15


I'm having a problem with the use of bonds since I migrated from SDK 13.1 to 15.0. The problem is that the function gscm_local_db_cache_update() in the gatts_cache_manager returns NRF_ERROR_DATA_SIZE. I didn't have that problem at all in SDK 15. The crash happens on connection.

I've been looking around in the forum and this thread looks promising but I can't tell what the solution or the problem is.

Can anyone point me in the right direction?