内部エラーが発生。解決方法がわからず

今まで使えていたUipath stadio(version:2019.40)が突然内部エラーが頻発するようになった。

起動したときから内部エラーが発生したポップアップが出力される。
再起動をせず進めれば、プロジェクトを開いて実行できるが、途中で同じく内部エラーが発生する

頻発するようになってから下記を実施したが改善は見られず
・PCの再起動
・Uipath Community Editionの再インストール
・UiPath Enterpriseの再インストール
・アンチウィルスを停止させての実行

以下発生したエラーになります。
エラー1
19.4.0+Branch.master.Sha.0f31d6b182f9ff3ac2d5a909f771720615bdb0b9

内部エラーが発生しました。UiPath Studio を再起動することをお勧めします。

エラー: System.InvalidOperationException: 無制限のサイズまたは NaN を持つ UIElement で、Arrange を呼び出せません。型 ‘System.Windows.Controls.Grid’ の親により、UIElement が起動されます。Arrange は型 ‘System.Windows.Controls.Border’ の要素で呼び出されました。
場所 System.Windows.UIElement.Arrange(Rect finalRect)
場所 System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
場所 System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
場所 System.Windows.UIElement.Arrange(Rect finalRect)
場所 System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
場所 System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
場所 System.Windows.UIElement.Arrange(Rect finalRect)
場所 System.Windows.ContextLayoutManager.UpdateLayout()
場所 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
場所 System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
場所 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
場所 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
場所 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
場所 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233079

19.4.0+Branch.master.Sha.0f31d6b182f9ff3ac2d5a909f771720615bdb0b9

エラー2
内部エラーが発生しました。UiPath Studio を再起動することをお勧めします。

エラー: System.InvalidOperationException: UIElement.Measure(availableSize) を、NaN サイズで呼び出すことはできません。
場所 System.Windows.UIElement.Measure(Size availableSize)
場所 System.Windows.Controls.Grid.MeasureOverride(Size constraint)
場所 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
場所 System.Windows.UIElement.Measure(Size availableSize)
場所 System.Windows.ContextLayoutManager.UpdateLayout()
場所 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
場所 System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
場所 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
場所 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
場所 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
場所 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233079

19.4.0+Branch.master.Sha.0f31d6b182f9ff3ac2d5a909f771720615bdb0b9

エラー3
内部エラーが発生しました。UiPath Studio を再起動することをお勧めします。

エラー: System.InvalidOperationException: 要素 ‘System.Windows.Shapes.Rectangle’ のレイアウト測定上書きは、DesiredSize として NaN 値を戻しません。
場所 System.Windows.UIElement.Measure(Size availableSize)
場所 System.Windows.ContextLayoutManager.UpdateLayout()
場所 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
場所 System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
場所 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
場所 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
場所 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
場所 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233079

エラー4

19.4.0+Branch.master.Sha.0f31d6b182f9ff3ac2d5a909f771720615bdb0b9

内部エラーが発生しました。UiPath Studio を再起動することをお勧めします。

エラー: System.ArgumentException: 幅は正の値でなければなりません。
場所 System.Windows.Size.set_Width(Double value)
場所 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
場所 System.Windows.UIElement.Measure(Size availableSize)
場所 System.Windows.ContextLayoutManager.UpdateLayout()
場所 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
場所 System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
場所 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
場所 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
場所 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
場所 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
場所 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2147024809

19.4.0+Branch.master.Sha.0f31d6b182f9ff3ac2d5a909f771720615bdb0b9

エラー5
パラメーター値は、数値である必要があります。
パラメーター名:paragraphWidth

エラー: System.ArgumentOutOfRangeException: パラメーター値は、数値である必要があります。
パラメーター名:paragraphWidth
場所 MS.Internal.TextFormatting.TextFormatterImp.VerifyTextFormattingArguments(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextRunCache textRunCache)
場所 MS.Internal.TextFormatting.TextFormatterImp.PrepareFormatSettings(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache, Boolean useOptimalBreak, Boolean isSingleLineFormatting, TextFormattingMode textFormattingMode)
場所 MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(TextSource textSource, Int32 firstCharIndex, Int32 lineLength, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
場所 MS.Internal.TextFormatting.TextFormatterImp.FormatLine(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
場所 MS.Internal.Text.Line.Format(Int32 dcp, Double width, TextParagraphProperties lineProperties, TextLineBreak textLineBreak, TextRunCache textRunCache, Boolean showParagraphEllipsis)
場所 System.Windows.Controls.TextBlock.MeasureOverride(Size constraint)
場所 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
場所 System.Windows.UIElement.Measure(Size availableSize)
場所 System.Windows.ContextLayoutManager.UpdateLayout()
場所 System.Windows.UIElement.UpdateLayout()
場所 System.Windows.Interop.HwndSource.SetLayoutSize()
場所 System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
場所 System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
場所 System.Windows.Window.SetRootVisual()
場所 System.Windows.Window.SetRootVisualAndUpdateSTC()
場所 System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
場所 System.Windows.Window.CreateSourceWindow(Boolean duringShow)
場所 System.Windows.Window.CreateSourceWindowDuringShow()
場所 System.Windows.Window.SafeCreateWindowDuringShow()
場所 System.Windows.Window.ShowHelper(Object booleanBox)
場所 System.Windows.Window.Show()
場所 UiPath.Studio.Shell.ShellApplication.SplashScreenService.Show()
場所 UiPath.Studio.Shell.ShellApplication.StudioShellApplication.HandleInit()
場所 UiPath.Studio.Core.StudioApplication.StudioApplication.InternalInit()
場所 UiPath.Studio.Core.StudioApplication.StudioApplication.Start(String args), HResult -2146233086

1 Like

再インストールの際、UiPathが作った様々なファイルの削除は実施されましたか?
最新のCommunity Editionの場合、私も把握していない仕様があるかもしれませんが、
基本的には下記手順でクリーンインストール頂けるかと思います。
こちらお試しください。

1.UiPathアンインストール
2.%programdata%, %localappdata%, %appdata%にあるUiPathフォルダを削除
3.下記ディレクトリのフォルダを削除ください。もしほかのプログラムでnugetを利用しているのであれば、UiPathで使っているパッケージが入っているフォルダを選択し、削除下さい
%temp%\nuget
%userprofile%.nuget\packages
4.下記キャッシュフォルダを削除
%temp%\NuGetScratch
5.パソコンを再起動
6.UiPathを再インストール

ご教授ありがとうございます。

記載されているとおり実施してみましたが、解決しませんでした。
エラーの内容は変わらずでした。エラー2、エラー3が出ました。

引続きいろいろ試してみます

解決しなかったことご報告ありがとうございます。
エラーメッセージの内容を確認したところ
System.Windows.UiElement型の変数がエラーを出しているようですが、
UiPathが動作に使うUiElement型は通常UiPath.Core.UiElementになります。
VariableやArgumentで使っている型でSystem.Windows.UiElementがあれば、
それをUiPath.Core.UiElementに変更してみてエラーが続くか試す価値はあるのではないかと思ってます。

それと再インストールする対象として.netや他のUiPathのソフトウェア要件もご確認ください。

最新のハードウェア要件も念の為。

ご連絡が遅くなりすみません。

Uipath起動時点でエラーが出てしまうため、型を変えるまでに至っていません。
一度PCを初期化しましたが、状況は変わりませんでした。

ソフトウェア、ハードウェア要件については満たしていました。
(エラーが出始める前までは正常に動いていたため問題ないと思っています)

現時点の情報だと多分.netの再インストールなどはされていないと思うので、最新の.net Frameworkをお試しいただけますでしょうか?また、エラーメッセージの内容についてはバラバラなものが出ているということで。
状況は下記のどちらでしょうか。
1.UiPathの内部エラーを無視し続ければある程度使える。
2.UiPathの内部エラーが必ず特定アクションをすると出るため、何も出来ない(たとえばプロジェクトを開く)
3.起動の最中及び、操作をまだ初めていない起動直後にエラーメッセージをクリックすると再度発生する。

検証目的なのであれば、たとえば評価版のWindows 2016 ServerをVMなどに入れていただき、そこにUiPathを入れていただくのもお試しいただければと思っておりますが、
Community版のインストーラーの場合はエンタープライズサポートをしていないため、できることが限られてしまいます。

ちなみに以前Enterprise版をこちらにインストールされたとおっしゃっておりましたが、Enterprise版は問題なく動作されましたでしょうか。

ご連絡ありがとうございます。
実施環境がwindows10で、.netの再インストールができません。
最新版の「Microsoft .NET Framework 4.7.2」が入っていることは確認しております。

状況につきましては、何もしていない状況だと3です。
現時点で、いろいろ試していますが「コントロールパネル→windowsの機能の有効化または無効化→すべて無効」にした場合、1になりました。

エラーについては、体感ですがエラー2が出ることが多いように感じます

Enterprise版についても動作は一緒でした。

すでに.net framework 4.7.2であることをご確認済みと伺いましたが、
念の為こちらのドキュメントの方法でご確認いただき、
インストールされている .NET Framework バージョンを確認する - .NET Framework | Microsoft Learn
その後、インストールされている.net frameworkと同一バージョンのインストーラーを取得いただき、こちらを実行いただき.net frameworkの修復をお試しいただけますでしょうか。
ダウンロードリンクは 4.7.2であればこちらです。
Microsoft .NET Framework 4.7.2 offline installer for Windows

.netを修復しましたが、変わらずエラーがでます。
起動も数回に一回しか正常に起動できない状況になりました。

Windowsのユーザーを新しいのを作って、そちらで正しく動作するかお試しいただけますでしょうか。
ユーザー固有設定のどこかがおかしくなっている可能性があります。

新しいユーザーで試してみましたが、同様のエラーでした。

ウィンドウズはどのバージョンをご使用でしょうか?
また、PCの初期化はどのような手順で行われたか伺えますでしょうか?
たとえばWindows 10であれば下記のページに記載されている区分があります。
どの範囲の初期化でエラーがまだ残っているのかが気になっています。
また、完全な初期化をしてもそちらのPCで治らないというのであれば残念ながら私にできることはございません。申し訳ございません。

windows10を使っています。

手順はそれぞれ試しました。
先に「個人設定のみ削除」で行ない、再インストールをしましたがエラーが出たので
「すべてを削除」を行いました。
できることはないということで承知しました。
別パソコンを使いUipathを使うことにします。。。