# I cannot open pages in Perspective sometimes

**URL:** <https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 29, 2024, 11:43pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111 "2024-05-29T23:43:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 29, 2024, 11:43pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/1 "2024-05-29T23:43:31Z")

</div>

I have to close the Designer and open it again in order to open pages in perspective and here the error I get  
I'm using the latest version 8.1.40 (b2024051410) of Ignition and Designer v1.1.40 .

```python
00:38:48.870 [AWT-EventQueue-0] INFO Perspective.Designer.Workspace -- Launching view with DesignerPageParams 'Airport', tab id 'Page/Arrival 2', using base url http://localhost:8088/data/perspective/design
00:38:48.935 [Browser Thread: 440a1acb-7d74-4d89-ba86-c1f466a4b6d6] INFO Perspective.Designer.Workspace -- Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://localhost:8088/data/perspective/fonts/noto-sans-v8-latin-regular.ttf
00:38:49.168 [Browser Thread: 440a1acb-7d74-4d89-ba86-c1f466a4b6d6] INFO Perspective.Designer.Workspace -- Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://localhost:8088/data/perspective/fonts/noto-sans-v8-latin-700.ttf
00:38:49.202 [Browser Thread: 440a1acb-7d74-4d89-ba86-c1f466a4b6d6] ERROR Perspective.Designer.Workspace -- level: LEVEL_ERROR
message: "TypeError: Cannot destructure property \'width\' of \'this.rootViewDefaultSize\' as it is undefined."
line_number: 121
source: "http://localhost:8088/res/perspective/js/react-dom-18.2.0.js"

00:38:49.202 [Browser Thread: 440a1acb-7d74-4d89-ba86-c1f466a4b6d6] ERROR Perspective.Designer.Workspace -- level: LEVEL_ERROR
message: "onerrorLogger: {\"stack\":\"TypeError: Cannot destructure property \'width\' of \'this.rootViewDefaultSize\' as it is undefined.\\n at get selectionDimensionsClientBoundingRect (http://localhost:8088/res/perspective/js/PerspectiveDesigner.1ea4fc945c965fd69d63.js:2:250719)\\n at oe (http://localhost:8088/res/perspective/js/mobx-5.15.7.js:15:5475)\\n at t.computeValue (http://localhost:8088/res/perspective/js/mobx-5.15.7.js:15:11912)\\n at t.trackAndCompute (http://localhost:8088/res/perspective/js/mobx-5.15.7.js:15:11738)\\n at t.get (http://localhost:8088/res/perspective/js/mobx-5.15.7.js:15:10670)\\n at e.read (http://localhost:8088/res/perspective/js/mobx-5.15.7.js:15:39612)\\n at b.get (http://localhost:8088/res/perspective/js/mobx-5.15.7.js:15:41065)\\n at get selectionDimensions (http://localhost:8088/res/perspective/js/PerspectiveDesigner.1ea4fc945c965fd69d63.js:2:251204)\\n at oe (http://localhost:8088/res/perspective/js/mobx-5.15.7.js:15:5475)\\n at t.computeValue (http://localhost:8088/res/perspective/js/mobx-5.15.7.js:15:11912)\",\"message\":\"Cannot destructure property \'width\' of \'this.rootViewDefaultSize\' as it is undefined.\",\"name\":\"TypeError\",\"logData\":{\"msg\":\"Uncaught Exception\",\"errorMsg\":\"Uncaught TypeError: Cannot destructure property \'width\' of \'this.rootViewDefaultSize\' as it is undefined.\",\"url\":\"http://localhost:8088/res/perspective/js/react-dom-18.2.0.js\",\"line number\":198,\"column\":64}}"
line_number: 2
source: "http://localhost:8088/res/perspective/js/PerspectiveClient.4c66478bafda3caeebe1.js"

00:38:49.202 [Browser Thread: 440a1acb-7d74-4d89-ba86-c1f466a4b6d6] ERROR Perspective.Designer.Workspace -- level: LEVEL_ERROR
message: "Uncaught TypeError: Cannot destructure property \'width\' of \'this.rootViewDefaultSize\' as it is undefined."
line_number: 198
source: "http://localhost:8088/res/perspective/js/react-dom-18.2.0.js"

```

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/0/409b168ccbf6697ae7cf89ab580d6a98cb22087f.png)

---

<div class="post-metadata">

**Author:** ![amy.sudibyo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amy.sudibyo/32/38659_2.png) [@amy.sudibyo](https://forum.inductiveautomation.com/u/amy.sudibyo)\
**Post date:** [May 30, 2024, 1:27am UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/2 "2024-05-30T01:27:50Z")

</div>

Please edit your post to specify the exact version rather than 'latest version' as this will help people who come across this thread later down the track. Do you mean 8.1.40 or the 8.1.41 emergency release?

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [May 30, 2024, 1:41am UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/3 "2024-05-30T01:41:34Z")

</div>

Looks like `this.rootViewDefaultSize.width` is undefined

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 30, 2024, 7:41am UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/4 "2024-05-30T07:41:17Z")

</div>

Technical note: you're opening a **view** , not a page.

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 12:35pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/5 "2024-05-30T12:35:37Z")

</div>

I have included the version of both Igntion and the Designer.

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 12:36pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/6 "2024-05-30T12:36:33Z")

</div>

Yes the view

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [May 30, 2024, 12:39pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/7 "2024-05-30T12:39:06Z")

</div>

Upgrade to 8.1.41. 8.1.40 was pulled as seen here  
[Ignition 8.1.41 (Emergency Release) is available for download - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/ignition-8-1-41-emergency-release-is-available-for-download/91089)

EDIT:  
Well the emergency release was for VoIP, so not your issue here.

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 12:40pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/8 "2024-05-30T12:40:44Z")

</div>

For more details. I have an embeded component which uses a template of an svg. The component have two parameters: width and height which are binded to the position width and height to make it easier to resize since the svg is a vector. But I don't see this could be the issue !

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 12:41pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/9 "2024-05-30T12:41:58Z")

</div>

Okay. I will upgrade to 8.1.41 and see if it solves the issue.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [May 30, 2024, 12:42pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/10 "2024-05-30T12:42:29Z")

</div>

It probably won't seeing as I didn't originally know it was for a VoIP issue.

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 12:46pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/11 "2024-05-30T12:46:50Z")

</div>

Well, It doesn't say much. Do you have any idea where to look at ?

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 12:48pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/12 "2024-05-30T12:48:58Z")

</div>

Yeah. It seems a React issue but I don't have much info to debug it or to know exactly what causes the view to crash and not to open. it only opens if I close the Designer and reopen it again but I won't solve the problem forever

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [May 30, 2024, 12:55pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/13 "2024-05-30T12:55:23Z")

</div>

> [@Wassef\_Bouchrit](#):
>
> The component have two parameters: width and height which are binded to the position width and height

Post your Binding configuration.

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 1:02pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/14 "2024-05-30T13:02:47Z")

</div>

So the template has two paramters width and height and the svg position width and height are binded to those params as follows  
width: view.params.width  
height: view.params.height

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 1:12pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/15 "2024-05-30T13:12:12Z")

</div>

BTW, I start to get this issue in version 8.1.33 which I tried with an old project that is done in version 8.1.12.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [May 30, 2024, 1:14pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/16 "2024-05-30T13:14:46Z")

</div>

> [@andrew.budaiev](#):
>
> this.rootViewDefaultSize.width

Where are you using this `this.rootViewDefaultSize.width`? Maybe post your view JSON

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 1:26pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/17 "2024-05-30T13:26:29Z")

</div>

> [@dkhayes117](#):
>
> this.rootViewDefaultSize

I don't have this.rootViewDefaultSize.width in json files I looked inside all of the json files

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [May 30, 2024, 1:58pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/18 "2024-05-30T13:58:29Z")

</div>

Hmm, yeah that makes sense as the error messages show them coming from Javascript files not the project itself. I'm not sure where to go from here. Maybe remove the bindings, save, then recreate them?

---

<div class="post-metadata">

**Author:** ![Wassef\_Bouchrit](https://avatars.discourse-cdn.com/v4/letter/w/85e7bf/32.png) [@Wassef\_Bouchrit](https://forum.inductiveautomation.com/u/Wassef_Bouchrit)\
**Post date:** [May 30, 2024, 4:59pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/19 "2024-05-30T16:59:44Z")

</div>

I rolled back to version 8.1.12 and the Designer 1.1.12 and it works. I don't know It seems the newer version has issues with views in the Designer. I guess there is something wrong with React as I shared the log above..I won't to rollback to the previous version because I'm missing alot of features in the newer version but I'll finish the job then update it to the newer one. I think that's the only way around for now.

I started this project with version 8.1.33

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [May 30, 2024, 5:33pm UTC](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111/20 "2024-05-30T17:33:13Z")

</div>

I would get in touch with support. You can provide a gateway backup/logs and they will be able to get to the bottom of it.

[Next page](https://forum.inductiveautomation.com/t/i-cannot-open-pages-in-perspective-sometimes/91111.md?page=2)
