[Libreoffice-bugs] [Bug 135138] New: Using CLI assemblies result in Invalid IL code in uno.util.Bootstrap:bootstrap

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jul 26 06:23:57 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=135138

            Bug ID: 135138
           Summary: Using CLI assemblies result in Invalid IL code in
                    uno.util.Bootstrap:bootstrap
           Product: LibreOffice
           Version: 6.4.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Mac OS X (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: sdk
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: peter at willow-media.nl

Description:
When attempting to run a .Net/C# solution on MacOS (with Rider), running with
Mono (.Net 4.8), with the cli assemblies, the follow exception occurs:

```
Invalid IL code in uno.util.Bootstrap:bootstrap (): IL_0036: calli    
0x11000001
```

As far as I can tell, the cli assemblies are .Net 1.0/1.1, which is quite old.
Its unclear to my how these assemblies are created, as a part of .cs files are
in the source. I guess the rest is build from C code?

It would be very interesting to migrate the cli code to .NetStandard 2.0, so
the code could be used in a more up-to-date environment, like Asp.Net Core for
example. 


Steps to Reproduce:
1. Create new CS console or unit test project
2. Add all assemblies to the project
3. Debug a class with "XComponentContext localContext =
uno.util.Bootstrap.bootstrap();" in it

Actual Results:
The following exception occurs:

Invalid IL code in uno.util.Bootstrap:bootstrap (): IL_0036: calli    
0x11000001


Expected Results:
An XComponentContext object would be returned


Reproducible: Always


User Profile Reset: No



Additional Info:
Create an Uno connection to a headless Libreoffice instance

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200726/de63a58c/attachment.htm>


More information about the Libreoffice-bugs mailing list