Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in OnSymbolUpdate after adding parameter #478

Open
pixtur opened this issue Oct 16, 2024 · 0 comments
Open

Crash in OnSymbolUpdate after adding parameter #478

pixtur opened this issue Oct 16, 2024 · 0 comments
Labels
bug An issue that should be fixed. main-branch

Comments

@pixtur
Copy link
Collaborator

pixtur commented Oct 16, 2024

Steps (maybe not reproducable)

  • on Debug...
  • Add Vec2 parameter "Test"
  • Remove Test
  • Add Vec3 parameter "Test"

-> Exception

    private void OnSymbolUpdated(Symbol symbol)
    {
        var filePathHandler = FilePathHandlers[symbol.Id];

        if (symbol != filePathHandler.Symbol)
        {
            throw new Exception("Symbol mismatch when updating symbol files");
        }

image

System.Exception: Symbol mismatch when updating symbol files
   at T3.Editor.UiModel.EditableSymbolProject.OnSymbolUpdated(Symbol symbol) in C:\Users\pixtur\dev\tooll\t3-main\Editor\UiModel\EditableSymbolProject.FileHandling.cs:line 77
   at T3.Core.Model.SymbolPackage.LoadSymbols(Boolean parallel, List`1& newlyRead, List`1& allNewSymbols) in C:\Users\pixtur\dev\tooll\t3-main\Core\Model\SymbolPackage.cs:line 174
   at T3.Editor.Compilation.ProjectSetup.UpdateSymbolPackages(PackageWithReleaseInfo[] packages) in C:\Users\pixtur\dev\tooll\t3-main\Editor\Compilation\ProjectSetup.cs:line 238
   at T3.Editor.Compilation.ProjectSetup.UpdateSymbolPackage[T](T project) in C:\Users\pixtur\dev\tooll\t3-main\Editor\Compilation\ProjectSetup.cs:line 179
   at T3.Editor.UiModel.EditableSymbolProject.TryRecompileWithNewSource(Symbol symbol, String newSource) in C:\Users\pixtur\dev\tooll\t3-main\Editor\UiModel\EditableSymbolProject.Recompilation.cs:line 115
   at T3.Editor.UiModel.EditableSymbolProject.UpdateSymbolWithNewSource(Symbol symbol, String newSource, String& reason) in C:\Users\pixtur\dev\tooll\t3-main\Editor\UiModel\EditableSymbolProject.Recompilation.cs:line 144
   at T3.Editor.UiModel.EditableSymbolProject.RecompileSymbol(Symbol symbol, String newSource, Boolean flagDependentOpsAsModified, String& reason) in C:\Users\pixtur\dev\tooll\t3-main\Editor\UiModel\EditableSymbolProject.Recompilation.cs:line 408
   at T3.Editor.Gui.Graph.Modification.InputsAndOutputs.AddInputToSymbol(String inputName, Boolean multiInput, Type inputType, Symbol symbol) in C:\Users\pixtur\dev\tooll\t3-main\Editor\Gui\Graph\Modification\InputsAndOutputs.cs:line 225
   at T3.Editor.Gui.Graph.Dialogs.AddInputDialog.Draw(Symbol symbol) in C:\Users\pixtur\dev\tooll\t3-main\Editor\Gui\Graph\Dialogs\AddInputDialog.cs:line 30
   at T3.Editor.Gui.Graph.GraphCanvas.DrawGraph(ImDrawListPtr drawList, GraphDrawingFlags drawingFlags, Boolean preventInteractions, Single graphOpacity) in C:\Users\pixtur\dev\tooll\t3-main\Editor\Gui\Graph\GraphCanvas.cs:line 358
   at T3.Editor.Gui.Graph.GraphWindow.DrawContent() in C:\Users\pixtur\dev\tooll\t3-main\Editor\Gui\Graph\GraphWindow.cs:line 176
   at T3.Editor.Gui.Windows.Window.Draw() in C:\Users\pixtur\dev\tooll\t3-main\Editor\Gui\Windows\Window.cs:line 52
   at T3.Editor.Gui.Windows.Layouts.WindowManager.Draw() in C:\Users\pixtur\dev\tooll\t3-main\Editor\Gui\Windows\Layouts\WindowManager.cs:line 38
   at T3.Editor.Gui.T3Ui.ProcessFrame() in C:\Users\pixtur\dev\tooll\t3-main\Editor\Gui\T3UI.cs:line 117
   at T3.Editor.Gui.WindowsUiContentDrawer.RenderCallback() in C:\Users\pixtur\dev\tooll\t3-main\Editor\Gui\WindowsUiContentDrawer.cs:line 158
   at T3.Editor.App.AppWindow.<>c__DisplayClass38_0.<RunRenderLoop>b__0() in C:\Users\pixtur\dev\tooll\t3-main\Editor\App\AppWindow.cs:line 110
   at SharpDX.Windows.RenderLoop.Run(Control form, RenderCallback renderCallback, Boolean useApplicationDoEvents)
   at T3.Editor.App.AppWindow.RunRenderLoop(Action callback) in C:\Users\pixtur\dev\tooll\t3-main\Editor\App\AppWindow.cs:line 110
   at T3.Editor.Program.Main(String[] args) in C:\Users\pixtur\dev\tooll\t3-main\Editor\Program.cs:line 190
@pixtur pixtur added bug An issue that should be fixed. main-branch labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that should be fixed. main-branch
Projects
None yet
Development

No branches or pull requests

2 participants
@pixtur and others