Search Issue Tracker
Active
Under Consideration for 6000.4.X
Votes
0
Found in
6000.3.4f1
6000.4.0b5
Issue ID
UUM-132467
Regression
No
Error “MissingReferenceException: The object of type 'Unity.Services.Analytics.AnalyticsContainer' has been destroyed but you are still trying to access it.“ is present when using EndUserConsent.SetConsentState()
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/TestScene.unity” Scene
3. Enter the Play Mode
4. Press the Button with text “Init”
5. Observe the Console
6. Press the Button with text “Enable Consent”
7. Repeat step 5
8. Exit the Play Mode
9. Enter the Play Mode
10. Repeat step 4
9. Press the Button with text “Enable Consent”
Expected result: No Errors exist
Actual result: Error “MissingReferenceException: The object of type 'Unity.Services.Analytics.AnalyticsContainer' has been destroyed but you are still trying to access it.“ is present
Reproducible with: 6000.3.5f1, 6000.4.0b5
Could not test with: 6000.0.66f1, 6000.5.0a5 (Assets\ConsentTester.cs(4,19): error CS0234: The type or namespace name 'UnityConsent' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?))
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- Reproducible when pressing the Button with text “Disable Consent”
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment