Hello
I have open a ticket with support, but they cannot help me because the problem is generated by OpenAI Provider for Trados (Studio 2024). This is the ticket (even if the problem at the beginning was another, look at the last comments): https://gateway.sdl.com/communitycasedetail?caseId=500Vm00000BBlLTIA1
Every now and then Studio crashes after opening a file and the culprit is the plugin OpenAI (in the stacktrace, see attached files).
I did many things to try to fix the problem:
- I deleted the prompts in Italian and redid everything in English as I thought maybe this was the problem.
- I deleted all settings and started from scratch in Studio
- I installed Windows from scratch (but I have the same problem also on my laptop, so it should not be related to Windows installation)
- I disabled the Termbase Viewer, as Studio crashes everytime I open a file and the Termbase Viewer tries to load a termbase (a couple of minutes).
- I hid the Termbase Viewer for the same reason.
Nothing was useful. Studio does not crash only when OpenAI Provider is disabled or uninstalled. But I need it to work, as when it does not crash it is a powerful tool to improve productivity.
This did not happen with the last Beta of Studio 2024.
Can somebody help please? Thank you and kind regards,
Angelo
<SDLErrorDetails time="24.07.2024 12:39:06">
<ErrorMessage>Object reference not set to an instance of an object.</ErrorMessage>
<Exception>
<Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
<HelpLink />
<Source>OpenAI.Provider</Source>
<HResult>-2147467261</HResult>
<StackTrace><![CDATA[ at OpenAI.Provider.ViewModel.TranslationViewModel.GetTranslationCacheItem()
at OpenAI.Provider.ViewModel.TranslationViewModel.<>c__DisplayClass134_0.<OnChangeSegment>b__0()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
</Exception>
<Environment>
<ProductName>Trados Studio</ProductName>
<ProductVersion>Studio18</ProductVersion>
<EntryAssemblyFileVersion>18.0.0.1013</EntryAssemblyFileVersion>
<OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
<ServicePack>NULL</ServicePack>
<OperatingSystemLanguage>1040</OperatingSystemLanguage>
<CodePage>1252</CodePage>
<LoggedOnUser>Office2022Win11\angelo.caltagirone</LoggedOnUser>
<DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
<ComputerName>OFFICE2022WIN11</ComputerName>
<ConnectedToNetwork>True</ConnectedToNetwork>
<PhysicalMemory>33257044 MB</PhysicalMemory>
</Environment>
</SDLErrorDetails>
<SDLErrorDetails time="26.07.2024 09:09:21">
<ErrorMessage>Object reference not set to an instance of an object.</ErrorMessage>
<Exception>
<Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
<HelpLink />
<Source>OpenAI.Provider</Source>
<HResult>-2147467261</HResult>
<StackTrace><![CDATA[ at OpenAI.Provider.ViewModel.TranslationViewModel.GetTranslationCacheItem()
at OpenAI.Provider.ViewModel.TranslationViewModel.<>c__DisplayClass134_0.<OnChangeSegment>b__0()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
</Exception>
<Environment>
<ProductName>Trados Studio</ProductName>
<ProductVersion>Studio18</ProductVersion>
<EntryAssemblyFileVersion>18.0.0.1013</EntryAssemblyFileVersion>
<OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
<ServicePack>NULL</ServicePack>
<OperatingSystemLanguage>1040</OperatingSystemLanguage>
<CodePage>1252</CodePage>
<LoggedOnUser>Office2022Win11\angelo.caltagirone</LoggedOnUser>
<DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
<ComputerName>OFFICE2022WIN11</ComputerName>
<ConnectedToNetwork>True</ConnectedToNetwork>
<PhysicalMemory>33257044 MB</PhysicalMemory>
</Environment>
</SDLErrorDetails>
