Search Issue Tracker
By Design
Votes
0
Found in
2020.1.0a22
2020.1.0f1
2020.2.0a1
Issue ID
1265910
Regression
No
Crash on RegisterPlugin on opening the project
Reproduction steps:
1. Open the User's supplied project
Reproduces on: 2020.1.0a22, 2020.1.2f1, 2020.2.0a1, 2020.2.0a20
Not reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.0a21
First few lines of the stack trace:
0x00007FF69D04807B (Unity) RegisterPlugin
0x00007FF69D042479 (Unity) FindAndLoadUnityPlugin
0x00007FFEB6B82447 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\loader.c:1269] mono_lookup_pinvoke_call
0x00007FFEB6B94E76 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\metadata\marshal.c:8035] mono_marshal_get_native_wrapper
0x00007FFEB6C6C0C2 (mono-2.0-bdwgc) [c:\build\output\unity-technologies\mono\mono\mini\method-to-ir.c:8431] mono_method_to_ir
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (2020.1.X):
The crash here is in code specific to the project - not in Unity or ARCore SDK code. The issue is that this call needs to be made inside of Start() in ScreenCapturer.cs. It cannot be called in the class constructor before plugins are available.
GoogleARCore.Frame.CameraImage.AcquireCameraImageBytes();
Once that call was moved to Start() the editor crash went away and the app ran on a Pixel 3a without issue.