Skip to content

Error occured while executing the command: Cannot show a window with a closed owner (Linux) #260

@OMGhixD-OG

Description

@OMGhixD-OG

Describe the bug
Whenever i attempt to use Creature Script, add an action and after clicking the first action "for instance SELF", the window will close but the followup window(s) will not appear.

Version (commit hash)
Please include what was the WoW Database Editor version (commit hash). If you downloaded binary, open file COMMIT_HASH from the main folder and paste the content in the issue description

If you have built the binary yourself, check commit hash with git rev-parse HEAD

To Reproduce
Steps to reproduce the behavior:

  1. Be on Linux
  2. Open program with ( sudo ./WoWDatabaseEditorCore.Avalonia
  3. Click Creature Script and find your creature (Magmadar in my case)
  4. Click Add Event -> Add whichever.
  5. Click Add Action -> Click Whatever -> Error pops up and window closes.

Expected behavior
It should continue to the followup window(s)

Screenshots
If applicable, add screenshots to help explain your problem.
Image

Error from Console
[23:25:43 ERR] Error in BeforeBuildApp at C:\projects\wowdatabaseeditor\BaseDesktopLoader\Program.cs:79
System.InvalidOperationException: Cannot show a window with a closed owner.
at Avalonia.Controls.Window.EnsureParentStateBeforeShow(Window owner)
at Avalonia.Controls.Window.ShowCore[TResult](Window owner, Boolean modal)
at Avalonia.Controls.Window.ShowDialog[TResult](Window owner)
at WoWDatabaseEditorCore.Avalonia.Managers.WindowManager.<>c__DisplayClass9_0.<g__inner|1>d.MoveNext() in C:\projects\wowdatabaseeditor\WoWDatabaseEditorCore.Avalonia\Managers\WindowManager.cs:line 341
--- End of stack trace from previous location ---
at WDE.SmartScriptEditor.Data.SmartTypeListProvider.Get(SmartType type, Func2 predicate, List1 customItems) in C:\projects\wowdatabaseeditor\WDE.SmartScriptEditor\Data\SmartTypeListProvider.cs:line 36
at WDE.SmartScriptEditor.Editor.ViewModels.SmartScriptEditorViewModel.ShowActionPicker(SmartEvent parentEvent, Nullable1 sourceId, Boolean showCommentMetaAction) in C:\projects\wowdatabaseeditor\WDE.SmartScriptEditor\Editor\ViewModels\SmartScriptEditorViewModel.cs:line 2252 at WDE.SmartScriptEditor.Editor.ViewModels.SmartScriptEditorViewModel.AddActionWizard(SmartEvent e) in C:\projects\wowdatabaseeditor\WDE.SmartScriptEditor\Editor\ViewModels\SmartScriptEditorViewModel.cs:line 1982 at WDE.SmartScriptEditor.Editor.ViewModels.SmartScriptEditorViewModel.AddActionCommand(NewActionViewModel obj, Boolean openActionPickerInstantly) in C:\projects\wowdatabaseeditor\WDE.SmartScriptEditor\Editor\ViewModels\SmartScriptEditorViewModel.cs:line 1931 at WDE.SmartScriptEditor.Editor.ViewModels.SmartScriptEditorViewModel.<>c__DisplayClass65_0.<<-ctor>g__NewAction|41>d.MoveNext() in C:\projects\wowdatabaseeditor\WDE.SmartScriptEditor\Editor\ViewModels\SmartScriptEditorViewModel.cs:line 1166 --- End of stack trace from previous location --- at AsyncAwaitBestPractices.SafeFireAndForgetExtensions.HandleSafeFireAndForget[TException](Task task, Boolean continueOnCapturedContext, Action1 onException)

OS: Linux Manjaro (Arch Based - Shouldnt really matter but..)
Kernel Version: 6.12.44
Dotnet Version: 8.0.302

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions