Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added check for managed stack frame #1298

Closed
wants to merge 898 commits into from

Conversation

scott-ferguson-unity
Copy link

@scott-ferguson-unity scott-ferguson-unity commented May 26, 2020

Ensure we have a managed stack frame before access.

mderoy and others added 30 commits February 13, 2019 15:53
…ializer-fix

Fix serialization issue with DataContractJsonSerializer UseSimpleDictionaryFormat (case 1070667)
…dfile-blocking

Fix interrupting blocking file IO on Windows.
…etthreadcontext

Bump bdwgc submodule to get fix for GetThreadContext (case 1114668)
…8285

Break out of outter loop once file is found. (case 1118285)
…9657

[corlib] Allow DM with an extra param to have the first one bound to …
The format string was incorrect in this case, which leads to this crash
in Unity:

https://crashes.hq.unity3d.com/crashes/5aa00d01b4db11000de20c8e?versions_range=2018.3.5..2019.2.99&date_start=&date_end=&source=

Simply remove the unused `%s` format specifier here.
Update to latest bee (be3d27e00f2f)
Use bokken runner for windows builds
joncham and others added 12 commits May 1, 2020 15:34
…loffset-to-stepevent

Add iloffset to stepevent
Changes to use artifacts from stevedore unity-internal
* When we try to call a method to get the async_id to do an async debug and we are trying to do this in a generic method like this:

async Task<T> ExecuteAsync_Broken<T>()
 {
            await Task.Delay(2);
            return default;
  }

We need to inflate the generic type before call the method or we will get the error:  Could not execute the method because the containing type 'System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[T_REF]’, is not fully instantiated.

Fixes mono#17549
Fixes mono#17569

Cherry-picked by Alex Thibodeau -- some light massaging required
* Removing some asserts and returning err_invalid_argument with an error message when it's possible.

* if we don't find method get_ObjectIdForDebugger we try to find the property Task to continue async debug.

Cherry-picked by Alex Thibodeau with some moderate changes
…1280

mono debugger remove some asserts and fixing an error for async debug of a generic (fixes case 1241280)
…1344

Adding check to avoid processing pdbs that have zero sequence points …
…rrays. Fixes gh mono#6266 (mono#7038)

Add System.Collections.Generic include to objects.cs
…5903

[runtime] Magic interfaces requires the complex stelemref to handle a…
@joncham
Copy link
Member

joncham commented May 26, 2020

@scott-ferguson-unity note this is the file in the Mono repo. There is a copy in the IL2CPP repo.

@scott-ferguson-unity
Copy link
Author

I assumed everything in external in IL2CPP was a submodule and/or stevedore artifact.

This PR won't hurt anything, but should I take out the case number since landing this won't fix the case?

@joncham
Copy link
Member

joncham commented May 27, 2020

@scott-ferguson-unity case number is fine to leave in.

@joshpeterson
Copy link

This PR won't hurt anything, but should I take out the case number since landing this won't fix the case?

Doesn't this correct case 1250002? I confused.

Also, should we back port this fix?

jechter and others added 4 commits May 27, 2020 14:55
* update bdwgc

* Expose mono_gc_start_incremental_collection API

* switch bdwgc repo back to unity-master branch
…-array-marking-stack-limit

Avoid exceeding the mark stack limit (case 1235202)
Ensure we have an managed stack frame before access.
@scott-ferguson-unity scott-ferguson-unity changed the title Added check for managed stack frame (case 1250002) Added check for managed stack frame May 28, 2020
@scott-ferguson-unity
Copy link
Author

This PR doesn't actually fix 1250002, since the user's issue as a bug in VS2019. I've landed a fix in the IL2CPP repo for this crash.

Do we need to make the same change here? Is there any reason to backport it?

@unity-cla-assistant
Copy link
Collaborator

unity-cla-assistant commented May 19, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 4 committers have signed the CLA.

✅ ashwinimurt
❌ vargaz
❌ thaystg
❌ kumpera
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet