Hello,
We got a report from a user of ours about getting an exception at startup when installing a plugin we developed (https://appstore.rws.com/plugin/189/). We could unblock the user by instructing to remove the plugin directories, but I'm looking for a bit more context to understand why/when such error can occur, and what better advice we could give to users.
Attached the stack trace - found these similar references on the forums:
- community.rws.com/.../key-not-found-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-parameter-name-key-when-opening-a-file
- community.rws.com/.../community-advance-display-filter-tabs-color-and-document-structure-are-empty
All seem to relate in some way to installing plugins and part of Trados getting confused.
What I'm interested to learn:
- Is this something that our plugin's configuration could likely cause, and if so is there anything we could do differently?
- Or if this is something that could generally happen when installing a new plugin, any advice on how to prevent it ( like close all projects before plugin install or such )?
- Would this happen consistently, that is if the user would try to install the plugin again, can they expect to run into the same problem, or is it more a one-off?
Why I'm curious about this, is that it is bad user experience to be greeted with this effect after plugin install (especially that it blocks Trados startup too), so I would like to prevent as much as possible.
Thank you for your insights,
Robin
<SDLErrorDetails time="06/02/2023 16:12:50"> <ErrorMessage>Key not found: '03d5422d-8743-43a0-bb8b-8123202f8d8a' Nombre del parámetro: key</ErrorMessage> <Exception> <Type>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type> <ParamName>key</ParamName> <HelpLink /> <Source>Infragistics.Shared</Source> <HResult>-2147024809</HResult> <StackTrace><![CDATA[ en Infragistics.Shared.KeyedSubObjectsCollectionBase.GetItem(String key) en Infragistics.Win.UltraWinTabControl.UltraTabsCollection.get_Item(String key) en Sdl.Desktop.Platform.WinForms.DockingViewContentControl.SetActiveViewPart(IViewPartReference viewPartReference) en Sdl.Desktop.Platform.AbstractViewWithParts.set_ActiveViewPart(IViewPartReference value) en Sdl.TranslationStudio.Editor.EditorService.FocusActiveDocument() en Sdl.TranslationStudio.Editor.EditorService.OpenImpl(IDocumentDescriptor[] descriptors, IAbstractEditor[] editors, IEditorConfiguration[] configurations) en Sdl.TranslationStudio.Editor.EditorService.OpenTranslatableFiles(ITranslatableFile[] translatableFiles, WorkflowStage[] stages) en Sdl.TranslationStudio.Common.Files.FileUtil.OpenTranslatableFiles(IEditorService service, ITranslatableFile[] files, Nullable`1 workflowStage) en Sdl.TranslationStudio.Common.Files.FileListControl.OpenFilesInEditor(List`1 filesToOpenInEditor, Boolean controlKeyPressed) en Sdl.TranslationStudio.Common.Files.FileListControl.OpenFiles(IStudioWindow window, IProjectManagementService projectManagementService, EventArgs e, Boolean controlKeyPressed, ITranslatableTasksHandler tasksHandler, IEventAggregator aggregator) en Sdl.TranslationStudio.Common.Files.FileListControl.HandleDefaultAction(Object sender, EventArgs e) en Sdl.TranslationStudio.Common.Files.FileListControl.ListDefaultAction(Object sender, EventArgs e) en Sdl.Desktop.Common.DataList.OnDefaultAction(EventArgs e) en Sdl.Desktop.Common.DataList.BodyControl.OnDoubleClick(EventArgs e) en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) en System.Windows.Forms.Control.WndProc(Message& m) en System.Windows.Forms.ScrollableControl.WndProc(Message& m) en System.Windows.Forms.ContainerControl.WndProc(Message& m) en System.Windows.Forms.UserControl.WndProc(Message& m) en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)]]></StackTrace> </Exception> <Environment> <ProductName>SDL Trados Studio</ProductName> <ProductVersion>Studio16</ProductVersion> <EntryAssemblyFileVersion>16.1.8.4404</EntryAssemblyFileVersion> <OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem> <ServicePack>NULL</ServicePack> <OperatingSystemLanguage>3082</OperatingSystemLanguage> <CodePage>1252</CodePage> <LoggedOnUser>xxx</LoggedOnUser> <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork> <ComputerName>xxx</ComputerName> <ConnectedToNetwork>True</ConnectedToNetwork> <PhysicalMemory>16645784 MB</PhysicalMemory> </Environment> </SDLErrorDetails>