Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

System.InvalidOperationException: empty stack on ASTBuilder #43

Description

@Miepee

Trying to decomp sword in the sky creates the following stacktrace for obj_menu_Create_0

Failed to decompile code for "gml_Object_obj_menu_Create_0": System.InvalidOperationException: Stack empty.
   at System.Collections.Generic.Stack`1.ThrowForEmptyStack()
   at System.Collections.Generic.Stack`1.Pop()
   at DogScepterLib.Project.GML.Decompiler.ASTBuilder.ExecuteBlock(DecompileContext ctx, Block block, ASTNode current, Stack`1 stack) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTBuilder.cs:line 4
84
   at DogScepterLib.Project.GML.Decompiler.ASTBuilder.BuildFromNode(DecompileContext dctx, ASTNode start, Node baseNode, Stack`1 existingStack) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTBuilder
.cs:line 58
   at DogScepterLib.Project.GML.Decompiler.ASTBuilder.FromContext(DecompileContext ctx) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTBuilder.cs:line 14
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileSegment(GMCode codeEntry, BlockList existingList) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 246
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileWholeEntry(GMCode codeEntry) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 207
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileWholeEntryString(GMCode codeEntry) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 186
   at DogScepterCLI.Commands.DumpCommand.<>c__DisplayClass36_1.<ExecuteAsync>b__0(GMCode elem) in C:\Users\narr\gitrepos\dog-scepter\DogScepterCLI\Commands\DumpCommand.cs:line 199

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdecompilerIssues pertaining to the GML decompiler

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions