Auto Layout Crash with saved layouts

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
User avatar
arjanbroeke
Posts: 43
Joined: Tue Jul 17, 2012 7:53 pm
Location: Netherlands
Contact:

Auto Layout Crash with saved layouts

Post by arjanbroeke » Wed Apr 19, 2017 4:09 am

Product, version and build: PS2017 5.4.138
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64-bit
Operating system: Windows 10
32 or 64 bit OS: 64-bit
PowerShell Version: 5.1.14393.953

I've created 3 layouts and saved them. I've changed layouts in the options pane to refer to my 3 layouts.
When debugging, the saved layout will not be shown as saved.

When I start the debug it will look like:
PS2017-Debug-AutoLayout.png
PS2017-Debug-AutoLayout.png (258.06 KiB) Viewed 458 times
But I wanted to see:
PS2017-Debug-Wanted-SavedLayout.png
PS2017-Debug-Wanted-SavedLayout.png (214.21 KiB) Viewed 458 times
When I stop the debugging it will show, when clicking somewhere in the interface will crash the application:
PS2017-After-Debug-Stop.png
PS2017-After-Debug-Stop.png (164.2 KiB) Viewed 458 times
I notice that when I leave the "auto layout" during debug and will stop, it works. But when I drag my output window to the right and then stop the debugging it will crash.

I've got the following crash details (Unhandled exception has occurred in your application):
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at DevExpress.XtraBars.Docking2010.Views.Tabbed.DocumentInfo.DevExpress.XtraTab.IXtraTabPage.get_Appearance()
at DevExpress.XtraTab.ViewInfo.BaseTabPageViewInfo.get_PageAppearance()
at DevExpress.XtraTab.ViewInfo.BaseTabPageViewInfo.GetPageAppearance(ObjectState state, DefaultBoolean isActive)
at DevExpress.XtraTab.ViewInfo.BaseTabPageViewInfo.UpdatePaintAppearance()
at DevExpress.XtraTab.ViewInfo.BaseTabHeaderViewInfo.UpdatePageStates()
at DevExpress.XtraTab.ViewInfo.BaseTabControlViewInfo.OnHotTrackedPageChanged(IXtraTabPage prevPage)
at DevExpress.XtraTab.ViewInfo.BaseTabHandler.OnMouseEnter(EventArgs e)
at DevExpress.Utils.Controls.BaseHandler.UpdateMouseHere(MouseEventArgs e)
at DevExpress.XtraTab.ViewInfo.BaseTabHandler.OnMouseMove(MouseEventArgs e)
at DevExpress.Utils.Controls.BaseHandler.ProcessEvent(EventType etype, Object args)
at DevExpress.XtraBars.Docking2010.Dragging.DocumentManagerUIViewUIInteractionListener.OnMouseMove(MouseButtons buttons, LayoutElementHitInfo hitInfo)
at DevExpress.XtraBars.Docking2010.DragEngine.UIInteractionService.DoMouseMove(MouseButtons buttons, LayoutElementHitInfo hitInfo)
at DevExpress.XtraBars.Docking2010.DragEngine.UIInteractionService.CheckResetPrevHandlerMoveInfo(LayoutElementHitInfo hitInfo, MouseEventArgs ea)
at DevExpress.XtraBars.Docking2010.DragEngine.UIInteractionService.ProcessMouseMove(LayoutElementHitInfo moveInfo, MouseEventArgs ea)
at DevExpress.XtraBars.Docking2010.DragEngine.UIInteractionService.ProcessMouseOverride(IUIView view, MouseEventType eventType, MouseEventArgs ea)
at DevExpress.XtraBars.Docking2010.DragEngine.UIService.ProcessMouse(IUIView view, MouseEventType eventType, MouseEventArgs ea)
at DevExpress.XtraBars.Docking2010.DragEngine.UIViewAdapter.ProcessMouseEvent(IUIView view, MouseEventType eventType, MouseEventArgs ea)
at DevExpress.XtraBars.Docking2010.DragEngine.MouseEventSubscriber`1.RootUIElementMouseMove(Object sender, MouseEventArgs e)
at System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.MdiClient.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
PowerShell Studio
Assembly Version: 5.4.138.0
Win32 Version: 5.4.138.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/PowerShell%20Studio.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
DevExpress.XtraBars.v16.2
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.XtraBars.v16.2.DLL
----------------------------------------
DevExpress.Utils.v16.2
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.Utils.v16.2.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DevExpress.XtraEditors.v16.2
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.XtraEditors.v16.2.DLL
----------------------------------------
DevExpress.Data.v16.2
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.Data.v16.2.DLL
----------------------------------------
DevExpress.XtraGrid.v16.2
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.XtraGrid.v16.2.DLL
----------------------------------------
ActiproSoftware.Shared.WinForms
Assembly Version: 16.1.330.0
Win32 Version: 16.1.330.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.Shared.WinForms/16.1.330.0__c27e062d3c1a4763/ActiproSoftware.Shared.WinForms.dll
----------------------------------------
ActiproSoftware.SyntaxEditor.WinForms
Assembly Version: 16.1.330.0
Win32 Version: 16.1.330.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/ActiproSoftware.SyntaxEditor.WinForms/16.1.330.0__c27e062d3c1a4763/ActiproSoftware.SyntaxEditor.WinForms.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
DevExpress.XtraCharts.v16.2.UI
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.XtraCharts.v16.2.UI.DLL
----------------------------------------
DevExpress.XtraCharts.v16.2
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.XtraCharts.v16.2.DLL
----------------------------------------
DevExpress.Charts.v16.2.Core
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.Charts.v16.2.Core.DLL
----------------------------------------
DevExpress.Printing.v16.2.Core
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.Printing.v16.2.Core.DLL
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.WindowsAPICodePack.Shell
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/Microsoft.WindowsAPICodePack.Shell.DLL
----------------------------------------
DevExpress.XtraTreeList.v16.2
Assembly Version: 16.2.3.0
Win32 Version: 16.2.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/DevExpress.XtraTreeList.v16.2.DLL
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
PSSyntaxCheck
Assembly Version: 1.0.3.0
Win32 Version: 1.0.3.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/PSSyntaxCheck.DLL
----------------------------------------
PSSyntaxCheckV3
Assembly Version: 1.3.6.0
Win32 Version: 1.3.6.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/PSSyntaxCheckV3.DLL
----------------------------------------
PrimalSQL.Common
Assembly Version: 1.1.12.0
Win32 Version: 1.1.12.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/PrimalSQL.Common.DLL
----------------------------------------
System.ServiceProcess
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Microsoft.WindowsAPICodePack
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/Microsoft.WindowsAPICodePack.DLL
----------------------------------------
{98ccbb23-6eb3-4699-9d34-36aec1dd170e}
Assembly Version: 0.0.0.0
Win32 Version: 5.4.138.0
CodeBase: file:///C:/Program%20Files/SAPIEN%20Technologies,%20Inc/PowerShell%20Studio%202017/PowerShell%20Studio.exe
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
System.Data.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
UIAutomationClient
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClient/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClient.dll
----------------------------------------
UIAutomationTypes
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
System.Management.Automation
Assembly Version: 3.0.0.0
Win32 Version: 10.0.15063.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management.Automation/v4.0_3.0.0.0__31bf3856ad364e35/System.Management.Automation.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
Microsoft.Management.Infrastructure
Assembly Version: 1.0.0.0
Win32 Version: 10.0.15063.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.Management.Infrastructure/v4.0_1.0.0.0__31bf3856ad364e35/Microsoft.Management.Infrastructure.dll
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.DirectoryServices
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll
----------------------------------------
WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

User avatar
davidc
Posts: 4813
Joined: Thu Aug 18, 2011 4:56 am

Re: Auto Layout Crash with saved layouts

Post by davidc » Wed Apr 19, 2017 8:00 am

Please zip and attach the custom layout files you created. You can find them in the following folder:

C:\Users\(username)\AppData\Roaming\SAPIEN\PowerShell Studio 2017\Layouts

Also include a screenshot of the layout settings are you using in Option->Panels->Auto layout

Thank you,
David
SAPIEN Technologies, Inc.

User avatar
arjanbroeke
Posts: 43
Joined: Tue Jul 17, 2012 7:53 pm
Location: Netherlands
Contact:

Re: Auto Layout Crash with saved layouts

Post by arjanbroeke » Thu Apr 20, 2017 2:48 am

Hi David,

here are the requested layout files and the layout settings:
PS2017-AutoLayout-Settings.png
PS2017-AutoLayout-Settings.png (13.63 KiB) Viewed 424 times
Cheers,
Arjan
Attachments
Layouts.zip
(8.03 KiB) Downloaded 13 times

User avatar
davidc
Posts: 4813
Joined: Thu Aug 18, 2011 4:56 am

Re: Auto Layout Crash with saved layouts

Post by davidc » Thu Apr 20, 2017 8:15 am

Thank you for uploading the files. I attempted to recreate the issue using the latest service release and was unable to. Please update to version 5.4.139 (released today) and let us know if the issue persists on your end.
David
SAPIEN Technologies, Inc.

User avatar
arjanbroeke
Posts: 43
Joined: Tue Jul 17, 2012 7:53 pm
Location: Netherlands
Contact:

Re: Auto Layout Crash with saved layouts

Post by arjanbroeke » Thu Apr 20, 2017 12:56 pm

Hi David,

I've updated to the 5.4.139 version and retried. But I've noticed the following.

I debug te script. On the stop at the breakpoint, I drag the "Output" tab to the rightside of the screen. The I save the layout to be Arjan-ScriptRun.
When I then continue the script and let it completely finish, the layout will return to "normal", Arjan-ScriptEdit.

When debugging again, the output window is not on the rightside, as saved. When I now on the stop at the breakpoint, drag the output to the right again, save the layout, and STOP the debugging, it will "freeze"

I've added a pdf with the according screenprints and readded the layouts.

Cheers,
Arjan
Attachments
Layouts.5.4.139.zip
(8.06 KiB) Downloaded 13 times
PS2017-Layouts.pdf
(578.96 KiB) Downloaded 14 times

User avatar
davidc
Posts: 4813
Joined: Thu Aug 18, 2011 4:56 am

Re: Auto Layout Crash with saved layouts

Post by davidc » Thu Apr 20, 2017 1:11 pm

Ok, I believe the issue is related to having the panel docked as a document tab. When you save the layout, it will not restore the document tab group. I recommend docking those panels to the right side instead.

Try this version:
Arjan-ScriptRun.zip
(3.32 KiB) Downloaded 16 times
David
SAPIEN Technologies, Inc.

User avatar
arjanbroeke
Posts: 43
Joined: Tue Jul 17, 2012 7:53 pm
Location: Netherlands
Contact:

Re: Auto Layout Crash with saved layouts

Post by arjanbroeke » Fri Apr 21, 2017 12:41 am

Hi David,

thanks for the update, this solves my issue :D

Cheers,
Arjan