wǎng​fèi​xīn​jī

to rack one's brains in vain