unoplatform / Uno.Wasm.Bootstrap

A simple nuget package to run C# code in a WASM-compatible browser
Other
367 stars 57 forks source link

Crash on calling function pointer with VFFFF #603

Open Beyley opened 1 year ago

Beyley commented 1 year ago

Upon trying to call a function pointer (specificaly for glClear), i get an error CANNOT HANDLE INTERP ICALL SIG VFFFF Reproduction: https://github.com/Beyley/UnoPInvoke

jeromelaban commented 1 year ago

Is this issue related to this comment https://github.com/unoplatform/uno/discussions/10293#discussioncomment-4030608 ?

GitHub
[Uno.Wasm.Bootstrap] RuntimeError on P/Invoke into SDL · Discussion #10293 · unoplatform/uno
In my long journey into proper P/Invoke on WASM support in Silk.NET, ive gotten the code compiling and launched, with the generator using P/Invoke internally, specifically [System.Runtime.InteropSe...
Beyley commented 1 year ago

Is this issue related to this comment unoplatform/uno#10293 (comment) ?

GitHub[Uno.Wasm.Bootstrap] RuntimeError on P/Invoke into SDL · Discussion #10293 · unoplatform/unoIn my long journey into proper P/Invoke on WASM support in Silk.NET, ive gotten the code compiling and launched, with the generator using P/Invoke internally, specifically [System.Runtime.InteropSe...

It is unrelated, i was able to bypass the linked issue by compiling for net 5, where our source generators do put the missing attribute, ill have a polyfill added for netstandard 2, but for now (back to this specific issue) we are stuck being unable to call gl functions, as the thing that generates the interp icalls isnt being filled in on all the GL functions, as they are function pointers gotten from SDL, then called