Skip to content

FTL ( Fatal Error ) NullReferenceException encountered #56

@Dankri12

Description

@Dankri12

Description of the issue:
When trying to decompile a module script with Unluau, I encounter a NullReferenceException error.

Roblox script by bytecode
input.txt

Steps to Reproduce:

  1. Run Unluau.CLI with the --encoding option on the module script.
Unluau.CLI.exe  --encoding Client -o test\output.txt test\input.txt
  1. Observe the output.

Behavior:
The following warnings and fatal error occur:

[03:10:22 WRN] Encountered unhandled code SETUPVAL, skipping
[03:10:22 WRN] Encountered unhandled code FASTCALL2, skipping
[02:36:31 FTL] Unexpected error; please report here: https://github.com/atrexus/unluau/issues

at Unluau.Lifter.LiftBlock(Function function, Registers registers, Int32 pcStart, Int32 pcStop) in C:\Users\hacking\Downloads\unluau\src\Unluau\Lifter\Lifter.cs:line 554

at Unluau.Lifter.LiftBlock(Function function, Registers registers, Int32 pcStart, Int32 pcStop) in C:\Users\hacking\Downloads\unluau\src\Unluau\Lifter\Lifter.cs:line 570

at Unluau.Lifter.LiftProgram() in C:\Users\hacking\Downloads\unluau\src\Unluau\Lifter\Lifter.cs:line 38

at Unluau.Decompiler.Decompile() in C:\Users\hacking\Downloads\unluau\src\Unluau\Decompiler.cs:line 48

at Unluau.CLI.Program.RunOptions(Options options) in C:\Users\hacking\Downloads\unluau\src\Unluau.CLI\Program.cs:line 119

Environment:

  1. OS:
    windows 10

  2. Unluau version:
    Unluau 1.0.9-alpha

  3. .NET version:
    8.0.203

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions