# ERROR: Sorry, we can't open this document for all documents after running infinite while loop and force closing Adobe XD

**URL:** <https://forums.creativeclouddeveloper.com/t/error-sorry-we-cant-open-this-document-for-all-documents-after-running-infinite-while-loop-and-force-closing-adobe-xd/2636>\
**Category:** Adobe XD\
**Tags:** errors\
**Created:** [March 11, 2021, 6:27am UTC](https://forums.creativeclouddeveloper.com/t/error-sorry-we-cant-open-this-document-for-all-documents-after-running-infinite-while-loop-and-force-closing-adobe-xd/2636 "2021-03-11T06:27:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![itsmnthn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/itsmnthn/32/1004_2.png) [@itsmnthn](https://forums.creativeclouddeveloper.com/u/itsmnthn)\
**Post date:** [March 11, 2021, 6:27am UTC](https://forums.creativeclouddeveloper.com/t/error-sorry-we-cant-open-this-document-for-all-documents-after-running-infinite-while-loop-and-force-closing-adobe-xd/2636/1 "2021-03-11T06:27:46Z")

</div>

I was developing a plugin for Adobe XD, I accidentally ran the `while` loop on the plugin load, not realizing and keep running about 3 or 5 mins Adobe XD was unresponsive and then I force quit. After few minutes, I reopened the home with a project list of Adobe XD appears black; when I try opening the document directly with right-click, the document loads around 75% and then shows the error “Sorry, we can’t open the document.” While the developer console shows nothing.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/c/c423728b898940e5eda6dc54498f926f6e46b227.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/6/64cf873e62cc1946eadb1f0c277cb0e2c3ef45f0.jpeg)

---

<div class="post-metadata">

**Author:** ![itsmnthn](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/itsmnthn/32/1004_2.png) [@itsmnthn](https://forums.creativeclouddeveloper.com/u/itsmnthn)\
**Post date:** [March 11, 2021, 6:53am UTC](https://forums.creativeclouddeveloper.com/t/error-sorry-we-cant-open-this-document-for-all-documents-after-running-infinite-while-loop-and-force-closing-adobe-xd/2636/2 "2021-03-11T06:53:55Z")

</div>

Though, restarting mac resolves the issue.

---

<div class="post-metadata">

**Author:** ![kerrishotts](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/kerrishotts/32/8_2.png) [@kerrishotts](https://forums.creativeclouddeveloper.com/u/kerrishotts)\
**Post date:** [March 12, 2021, 5:42pm UTC](https://forums.creativeclouddeveloper.com/t/error-sorry-we-cant-open-this-document-for-all-documents-after-running-infinite-while-loop-and-force-closing-adobe-xd/2636/3 "2021-03-12T17:42:06Z")

</div>

Woah. Glad a restart worked, but odd that it freaked out that way. Is this 100% replicable on your end? (I wonder if there’s a file lock still hanging around that caused the start screen to fail initialization.)
