Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Bug: Testing in IL2CPP throws strange error on startup #40

Open
2 tasks done
applejag opened this issue Jan 19, 2020 · 0 comments
Open
2 tasks done

Bug: Testing in IL2CPP throws strange error on startup #40

applejag opened this issue Jan 19, 2020 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@applejag
Copy link
Owner

applejag commented Jan 19, 2020

Expected behavior

When running playmode tests in standalone with Unity Test Framework when targeting Windows using IL2CPP as scripting backend that the built client starts and begins running tests without any user interaction.

Actual behavior

When built testing player starts a popup is shown with an error.

2020-01-19 13_20_25-Window

  • Clicking "Ignore" actually just ignores the error and the tests starts running.
  • Clicking "Retry" results in an error that stops the execution.

I've experienced this error for a long while now. Have not spent the time to backtrack when it appeared. At least since september 2019 I think, when the package still was at 12.0.101

This error does not appear on any other IL2CPP builds, only when building Newtonsoft.Json-for-Unity.Tests

Steps to reproduce

  • Open the Newtonsoft.Json-for-Unity.Tests project within the repo
  • In "Project Settings", change the "Scripting Backend" to "IL2CPP"
  • Open the Test Runner window
  • With "PlayMode" tab selected, click "Run all in player (StandaloneWindows)"
  • Watch it compile
  • Once started, see the error message pop up

Details

Host machine OS running Unity Editor 👉 Windows 10 Pro 10.0.18363

Unity build target 👉 Windows standalone, with IL2CPP as scripting backend

Newtonsoft.Json-for-Unity package version 👉 12.0.301

I was using Unity version 👉 2018.4.14f1, 2019.2.11f1

Checklist

  • Shutdown Unity, deleted the /Library folder, opened project again in Unity, and problem still remains.
  • Checked to be using latest version of the package.
@applejag applejag added bug Something isn't working help wanted Extra attention is needed labels Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant