Giter Site home page Giter Site logo

Comments (2)

jkotas avatar jkotas commented on August 28, 2024

OpenTK assembly contains invalid IL:

    .method public hidebysig static void 
            ExtGetProgramBinarySource(int32 program,
                                      valuetype OpenTK.Graphics.ES30.All shadertype,
                                      [out] string& source,
                                      [out] int32[] length) cil managed
    {
      .maxstack  7
      .locals init (native int V_0,
               int32 V_1,
               int32& pinned V_2)
      IL_0000:  ldarg.0
      IL_0001:  ldarg.1
      IL_0002:  ldarg.2
      IL_0003:  pop
      IL_0004:  ldarg.3 <- the type of 3rd argument is `int32[]`
      IL_0005:  ldind.i4 <- ldind.i4 on `int32[]` is invalid IL operation
...

(This is just one example. There are more.)

It is crashing the JIT with CORJIT_INTERNALERROR and in turn crashing the compiler.

from corert.

jkotas avatar jkotas commented on August 28, 2024

OpenTK project is using IL generator https://github.com/opentk/opentk/tree/master/src/Generator.Rewrite that seems to be responsible for the invalid IL.

We should look into reporting this error in a better way, but the underlying problem should be fixed in OpenTK project. @Powerlated Could you please open an issue on this in OpenTK project?

from corert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.