webContents.print and window.print() show printer dialog but they don't do anything

Hello everyone.

I have a problem making my electron print in paper.

i tried webContents.print() and window.print(), they both show the printer dialog but when I choose the printer and print, nothing happens.