I am having an issue when trying to add the python code for adding smoke domain. I am not facing any issue trying to add smoke domain manually (i.e in the viewport mode), but the moment I write the code for it in python, Blender crashes. To be precise: bpy.ops.object.quick_smoke() causes my blender to crash. There isn't any complicated geometry in my scene either. Any fix for this?
P.S. I am using Blender 2.82a. The OS I am using is Windows 10 and I don't have a GPU which is compatible although I am using Eevee render engine in this case.