But it happens when i scan all the files. Now it doesn't happen when it is done.
Please be specific.
What happens when you scan all the files (crash? number of open files goes up?)
What doesn't happen? When what is done?
By scan all the files, do you mean using "Update library"?
If number of open files goes up while doing it, what is the highest number you see (and is it assigned to kodi.bin).
Does the number go down again?