Skip to content

MarshalDirectiveException: cannot marshal type System.Single[,] for Android/Oculus #65

@JustinHornsby

Description

@JustinHornsby

When built as an APK (Oculus Pro), the SimpleInletScaleObject.cs script throws an error:
MarshalDirectiveException: cannot marshal type System.Single[,].

It works fine in the editor as well as PC VR, but standalone version will cause the issue.
I've narrowed it down to SimpleInletScaleObject.cs, Line 35:
uint res = dll.lsl_pull_chunk_f(inlet.obj, data_buffer, timestamp_buffer, (uint)data_buffer.Length, (uint)timestamp_buffer.Length, timeout, ref ec);

The same occurs for the other sample scenes provided by LSL's samples (as of 1.16.0)

I assume this may be more of an issue with Android, but I thought it would be good to bring it to your attention, just in case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions