Is not the first time that I have this problem. The last time that I restored my computer(1 month ago) I did it because this issue.
When windows is starting, the real time shield is disabled and avast icon shows the issue. Usually after 15/20 seconds the shield turns on automatically but sometimes I had to do it manually.
You know that when windows is starting is a critical moment, so the malware can starts while avast is off. This is too bad, im paranoid, the police want to spy me because I live in a area where security is needed and they want spy me, fuck