question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid CIL/Null reference exception on call to paket.exe

See original GitHub issue

Description

For some reason our CI for Hopac started failing with:

System.NullReferenceException: Object reference not set to an instance of an object from https://travis-ci.org/Hopac/Hopac/jobs/430883446#L1829

…and…

/home/travis/build/Hopac/Hopac/.paket/Paket.Restore.targets(81,5): error MSB3073: The command “mono --runtime=v4.0.30319 “/home/travis/build/Hopac/Hopac/.paket/paket.exe” restore” exited with code 1. [/home/travis/build/Hopac/Hopac/Benchmarks/ThreadRing/ThreadRing.fsproj]

For code https://github.com/Hopac/Hopac/commits/master

Repro steps

Please provide the steps required to reproduce the problem

language: csharp
sudo: false  # use the new container-based Travis infrastructure
install:
  - export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.7.1/
env: CONFIGS=Release
os: linux
dotnet: 2.1.402

matrix:
  include:
    - mono: latest
  exclude:
    - env: CONFIGS=Release

script: ./run tests

for the above code base.

Expected behavior

Not to crash.

Actual behavior

Internal error somewhere in mono 5.14.

Known workarounds

Since we don’t have any caches declared in the travis file, I don’t see why this started happening and is happening on every run now. I can run it all locally just fine with mono 5.14.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
matthidcommented, Sep 21, 2018

dotnet tool install --tool-path ".paket" Paket --version 5.182.0-alpha001 --add-source https://api.nuget.org/v3/index.json

probably more stable than running with mono. Thanks to @enricosada

0reactions
hafcommented, Nov 20, 2018

Closing because this issue is not actionable from Paket’s side AFAIK.

Read more comments on GitHub >

github_iconTop Results From Across the Web

All builds went red since worker v4 · Issue #9923 · travis-ci/ ...
Error in `/usr/bin/mono': realloc(): invalid next size: ... Invalid CIL/Null reference exception on call to paket.exe fsprojects/Paket#3369.
Read more >
Learn how to use paket
You edit the paket.dependencies and paket.references files by hand as needed. When you run a paket command, it will generate the paket.lock file....
Read more >
Getting Started with Paket – Part 1 - The Cockney Coder
In this case, just create the references file with the entry for Newtonsoft.Json, and call paket install. This time, we won't need to...
Read more >
Untitled
Output proper message when SUSEConnect is called without parameters ... The BitKeeper completion used the wrong set of commands * Completion for python...
Read more >
Untitled
Cleanup spec file: * Drop pre systemd support * Run spec-cleaner - Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found