# 'NSWindow' ERROR

**URL:** <https://discourse.processing.org/t/nswindow-error/36848>\
**Category:** Development\
**Created:** [May 12, 2022, 3:01pm UTC](https://discourse.processing.org/t/nswindow-error/36848 "2022-05-12T15:01:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mar/32/3199_2.png) [@mar](https://discourse.processing.org/u/mar)\
**Post date:** [May 12, 2022, 3:01pm UTC](https://discourse.processing.org/t/nswindow-error/36848/1 "2022-05-12T15:01:30Z")

</div>

Hello!

I have export my sketch as app for MacOS from P3.5.4 java in macOS 13.6, where it runs well.  
When I I try to run the app on macOS 12 doesn’t works, it comes the follow ERROR:

> Application Specific Information:  
> \*\*\* Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘NSWindow drag regions should only be invalidated on the Main Thread!’
> 
> abort() called
> 
> terminating with uncaught exception of type NSException

Where is the problem? What could I do to solve it?
