# Slow saved layout change

**URL:** <https://resource.dopus.com/t/slow-saved-layout-change/33226>\
**Category:** Help & Support\
**Created:** [August 7, 2019, 3:47pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226 "2019-08-07T15:47:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 7, 2019, 3:47pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/1 "2019-08-07T15:47:02Z")

</div>

17-3960X 64 gigs ram very fast pci-e OS drive Windows 10 Dopus 12.16 x64. A lot of times switching from one saved layout to another is very slow, up to 30 seconds.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 7, 2019, 10:15pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/2 "2019-08-07T22:15:17Z")

</div>

What is in the layouts? Are we talking hundreds of windows and tabs?

Do any of the tabs point to network drives which are not reachable? Those can cause a 30 second timeout in some situations. (We try to avoid it and keep it on background threads, but it's not always possible, nor easy to predict when it will/won't happen.)

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 7, 2019, 10:46pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/3 "2019-08-07T22:46:38Z")

</div>

5 tabs single pane, 6 with dual both with a always on network drive. Works most of the time hangs maybe %30 of the time

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 7, 2019, 10:50pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/4 "2019-08-07T22:50:24Z")

</div>

One thing I'm just noticing when there is a .jpg in the viewer pane is when it takes a while

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 7, 2019, 11:08pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/5 "2019-08-07T23:08:17Z")

</div>

The viewer pane should be blank immediately after loading a layout, unless you have a script doing something.

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 8, 2019, 12:00am UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/6 "2019-08-08T00:00:26Z")

</div>

Yes but if I click a .jpg then it is not blank, that's the purpose of it, then when I switch to a different layout is when it hangs.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 8, 2019, 12:14am UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/7 "2019-08-08T00:14:22Z")

</div>

Are we really talking about Layouts or Styles?

Layouts usually open new windows and either leave or close existing windows. Styles usually changes one existing window.

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 8, 2019, 1:32am UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/8 "2019-08-08T01:32:06Z")

</div>

Layouts...one is a single display with a tree and a viewer pane and 2 is a dual display with a tree and viewer pane spanning 2 monitors

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 8, 2019, 9:28am UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/9 "2019-08-08T09:28:15Z")

</div>

What's the relationship between the old window that has an image shown in the viewer, and the new window that opens as part of the layout?

Is the old window still open after you do that, or is it being closed?

(Or is it being turned into the new "layout" without closing? If so, which command are you using to do that, as it doesn't normally happen with layouts via any of the built-in menus, only with styles.)

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 8, 2019, 1:53pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/10 "2019-08-08T13:53:03Z")

</div>

[dave@dmtl.net](mailto:dave@dmtl.net)

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 8, 2019, 1:57pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/11 "2019-08-08T13:57:54Z")

</div>

![Layout%201](https://resource.dopus.com/uploads/default/original/3X/d/c/dc56e01bdc6fdc731e40d6ce5bdff6ce0933af4a.jpeg) ![Layout%202](https://resource.dopus.com/uploads/default/original/3X/4/8/48b59ac17feadd4d52e96c00b89b5541c19ea2ff.jpeg)  
This is getting a little tiresome. When I switch between the 2 layouts shown with a jpg in the viewer pane it hangs. That's as simple as I can make it.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 8, 2019, 2:10pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/12 "2019-08-08T14:10:59Z")

</div>

What are you clicking to switch between them?

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 8, 2019, 2:38pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/13 "2019-08-08T14:38:29Z")

</div>

Settings/Lister Layouts/ then choosing one of my saved layouts

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 8, 2019, 4:07pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/14 "2019-08-08T16:07:09Z")

</div>

Thanks. It's very odd if having a jpeg loaded into the viewer is a factor when using that menu, since the old window would just be closed completely before the new one is opened (assuming the layout is configured to close old windows).

Would it be possible to generate some [manually created dumps](https://resource.dopus.com/t/crash-dumps-for-bug-reports/8861) while the delay is happening? We should be able to look at those and see where in the code the delay is happening.

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 8, 2019, 7:09pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/15 "2019-08-08T19:09:30Z")

</div>

Here is a link _[link removed]_. I'm on satellite so it would not upload here. It's not real critical. If I remember to put something other than an image in the viewer pane it won't hang.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 8, 2019, 8:56pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/16 "2019-08-08T20:56:39Z")

</div>

Thanks for the dumps! Unfortunately, it looks like nothing much was happening in the process at the time they were taken. All of our threads were idle and waiting for user input. (There are some other threads created by Windows, but most of those look the same, and none stand out as meaningful.)

* * *

If you want to, a Process Monitor log might reveal a filesystem operation that is taking a long time: [Process Monitor instructions](https://resource.dopus.com/t/process-monitor-instructions/27806)

* * *

Looking at the screenshots, the layout is opening into a folder which has a large archive and a large installer/exe in it. Those could trigger lengthy virus scans when Opus inspects the files or asks for their icons, which can freeze the process (depending on how the antivirus scanner works). I wonder if you would see the same issue if the layout pointed to different/empty folders, or if any archives/exe files were moved out of the starting folders.

That wouldn't explain why it only seems to happen if the viewer is showing a JPG, though. That aspect is a mystery to me as it should not affect anything.

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 8, 2019, 10:22pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/17 "2019-08-08T22:22:37Z")

</div>

Thanks for everything but as I said It's not real critical. I'll just live with it. If I remember to put something other than an image in the viewer pane before switching layouts it won't hang. I just thought if it was something simple I would like it fixed.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 9, 2019, 9:18pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/18 "2019-08-09T21:18:08Z")

</div>

I looked at this again this evening and was able to reproduce the problem.

A fix will be in the next beta.

Thanks for sticking with it. The info above helped track down what was happening.

---

<div class="post-metadata">

**Author:** ![Hammerhead](https://resource.dopus.com/user_avatar/resource.dopus.com/hammerhead/32/33084_2.png) [@Hammerhead](https://resource.dopus.com/u/Hammerhead)\
**Post date:** [August 9, 2019, 11:15pm UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/19 "2019-08-09T23:15:40Z")

</div>

Thanks a lot. Looking forward to the fix.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 10, 2019, 1:59am UTC](https://resource.dopus.com/t/slow-saved-layout-change/33226/20 "2019-08-10T01:59:33Z")

</div>

Here's the fix. Let us know if you still see any problems:

> [@Directory Opus 12.16.2 (Beta)](https://resource.dopus.com/t/directory-opus-12-16-2-beta/33251):
>
> [image] Directory Opus 12.16.2 (beta) is now available for all Opus 12 users. This is a preliminary, [beta release](https://resource.dopus.com/t/stable-vs-beta-versions-and-the-automatic-update-checker/4595/1). Translations may not be fully up-to-date and some English text may appear in non-English versions. This is an Opus 12 update. If you …

[Next page](https://resource.dopus.com/t/slow-saved-layout-change/33226.md?page=2)
