It just freezes when I tried drawing on it
You're not giving us any real information, so your report is useless, but I guess that https://docs.krita.org/KritaFAQ#Krita_starts_with_a_black_or_blank_canvas_and_nothing_changes_when_you_try_to_draw.2Fshows_a_black_or_blank_screen_on_my_Windows_system_with_an_Intel_GPU might be the case.