Avast restarts Firefox?

Windows 7 Ultimate SP1 64-bit
Program version: 19.2.2364 with latest definitions.

https://i.imgur.com/0YrqMH0.jpg

At random times I get this message and when I click OK Firefox restarts itself. I actually reinstalled Avast making the message gone but the random restarts still happen just without the prompt. What can be done to fix this?

Repair Avast:
Control Panel> Program and Features (Add/remove program)>Select Avast> Select Repair. Reboot when completed
https://www.avast.com/faq.php?article=AVKB204
If Repair doesn’t fix the problem, try the following:
Clean Install of Avast:
https://goo.gl/4Ptzkf

Sorry for the delayed reply but I tried both steps and I still get the same problem, I guess it’s Firefox causing it I’ll try re-installing thanks.

Hi cloudSVR
Try to update to new vps version and restart Firefox.
CloseBrowser is one of exported functions from bcuengin.dll.

If the issue will happen again please zip bcuengin.dll as cloudSVR_3_13_2019_bcuengin.dll.zip and upload to ftp://ftp.avast.com/incoming

Which version of firefox you have 65.0.2.6995 and is it x86 of x64?
Thank you for report !

Hi,
I have the same problem since start of March 2019 (approximately)
I have had the message shown by cloudSVR but now with the last versions of avast and firefox, i haven’t the message anymore
When i had the message i could see that bcuengine.dll was launched by avastsvc through rundll32.
As soon as i clicked on the ok button, firefox was closed.

Twice a day, every 12 hours approximately, firefox closes and restarts (sometimes it doesn’t restart)
I uninstalled avast (using avast uninstall tool) and reinstalled it but the problem is still here.
I tried deactivating all firefox extensions, i also tried to deactivate all avast agents but the problem was still here.
If i use google chrome and define it as default browser instead of firefox, there is no such behaviour.

My current versions :
Windows 7 professionnal 64 bits (up to date)
avast 19.4.2374 (version 19.4.4318.455)
vps 190423-0
firefox 66.0.3 (64 bits)