Have you tried reducing your own code to see if some part of it results in the same error? If you can narrow it down sufficiently to a reproducible example that can be posted here, it would be easier...