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

FTL ( Fatal Error ) NullReferenceException encountered #56

Open
Dankri12 opened this issue Apr 14, 2024 · 4 comments
Open

FTL ( Fatal Error ) NullReferenceException encountered #56

Dankri12 opened this issue Apr 14, 2024 · 4 comments

Comments

@Dankri12
Copy link

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

@ChloeDoesThings
Copy link
Contributor

It seems to be an issue with the lifter, I'll try to help you fix this in the morning since it's like 2:48.

@Dankri12
Copy link
Author

It seems to be an issue with the lifter, I'll try to help you fix this in the morning since it's like 2:48.

Sorry didnt see the message until now, Thats great to hear!

ive experienced that im getting the same issue on a lot of other scripts aswell. during a lot of testing it seems i get the error from large or medium scripts. small scripts aint a problem. or i havent discovered any yet

@ChloeDoesThings
Copy link
Contributor

It seems to be an issue with the lifter, I'll try to help you fix this in the morning since it's like 2:48.

Sorry didnt see the message until now, Thats great to hear!

ive experienced that im getting the same issue on a lot of other scripts aswell. during a lot of testing it seems i get the error from large or medium scripts. small scripts aint a problem. or i havent discovered any yet

I'm so sorry I completely forgot to see what the actual issue was.

@Dankri12
Copy link
Author

It seems to be an issue with the lifter, I'll try to help you fix this in the morning since it's like 2:48.

Sorry didnt see the message until now, Thats great to hear!
ive experienced that im getting the same issue on a lot of other scripts aswell. during a lot of testing it seems i get the error from large or medium scripts. small scripts aint a problem. or i havent discovered any yet

I'm so sorry I completely forgot to see what the actual issue was.

No worries, There is no rush. Looking forward to your insights!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants