<div dir="ltr"><div><div>The code looks absolutely normal. The folder /Library/Caches/ should exist; the name suggests its contents would be transient, probably deleted when the app ends.<br><br></div>The filename contains the current date and time, again suggesting a nonce file soon deleted.<br><br></div><div>If you google the heart of the message, <wbr>NSInternalInconsistencyException, you get hits that might be relevant.<br><br>But first, the only image related code is QIcon('exit.png'). That's what might not exist and so can't be cached. Try making the QAction without an icon to see if the issue goes away.<br><br></div><div>Also on Mac, the usual and expected quit accelerator is command-q, not command-e, and the menu item is always Quit or Quit appname.<br><br><br></div></div>