Skip to content

Lua Runtime Exception stack frame data missing #199

@Shaka-Rule

Description

@Shaka-Rule

I have some lua code, which indexes on a null, and throws an error. Which is expected.

I catch this in c#, and inspect the exception object.
It contains the state, traceback, stackframes, ...
When i run some standard lua getinfo, or getlocal functions, i'm not able to get any info on the frame the code actually threw on.
So i cant get the source name, or linenumber from it.
(I can get the line number from the error message , but the filename is incorrect, it shows the root chunk name i think).

Alse, the frame before the frame that errored, does give me info, but its in a weird state. The linenumber is always 1. And the local names are always (*temporary).(The values of those locals are correct tho).

The frame before that shows info fine.

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