SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.83k stars 913 forks source link

Auto-translate - Thread Exception #8837

Open andwan0 opened 2 months ago

andwan0 commented 2 months ago

On my Mint Linux I can run Subtitle Edit via Mono with no problems. Now running on SteamDeck (ArchLinux). When I goto Auto-translate it gives me:

Windows Forms Thread Exception An application error occurred in Subtitle Edit 4.0.8.0 - 64-bit - Microsoft Windows NT 10.0.18362.0.

Error Message: Object reference not set to an instance of an object

Stack Trace: at System.Windows.Forms.InputLanguage.get_LayoutName() at Nikse.SubtitleEdit.Forms.Translate.AutoTranslate.EvaluateDefaultTargetLanguageCode(System.String defaultSourceLanguage) at Nikse.SubtitleEdit.Forms.Translate.AutoTranslate.SetupLanguageSettings() at Nikse.SubtitleEdit.Forms.Translate.AutoTranslate.nikseComboBoxEngine_SelectedIndexChanged(System.Object sender, System.EventArts e) at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c at System.Reflection.RuntimeMethodInfo.InternalInvoke at System.Reflection.RuntimeMethodInfo.Invoke

:0

https://imgur.com/a/9oEFFMe Screenshot_20240918_191933

tkcofa commented 1 month ago

I have a similar problem Ashampoo_Snap_Tuesday, October 15, 2024_10h44m10s.pdf

andwan0 commented 4 weeks ago

I figured it out. We need to install dotNet runtime in our wine prefix (virtual environment). Just use Winetricks.