Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Question Crash report API on and greyed out

Discussion in 'Editor & General Support' started by James15478, May 11, 2021.

  1. James15478

    James15478

    Joined:
    Apr 2, 2013
    Posts:
    91
    Hello!

    I noticed in my version control that "Enable CrashReport API" to be on, and I'm not sure why, as I don't recall changing anything. When I look at it it's greyed out, so I can't uncheck it. It stay greyed out and checked no matter what I choose for On .Net UnhandledException or Log Obj-C Uncought Exceptions.

    Does anyone know why it's greyed out and I can't uncheck it?

    Thanks!


    upload_2021-5-11_16-45-18.png
     
  2. thecloudkeeper

    thecloudkeeper

    Joined:
    Sep 21, 2021
    Posts:
    28
    I'm bumping this thread because this is also greyed out for me. I need to disable this to unblock my own error collection.

    Anyone know why this is greyed out?
     
  3. sd_trent

    sd_trent

    Joined:
    Jul 1, 2017
    Posts:
    37
    Bumping this as well. I'm trying to enable Backtrace.io and I need this setting disable but its also grayed out for me.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,696
  5. sd_trent

    sd_trent

    Joined:
    Jul 1, 2017
    Posts:
    37
    Hi there, thanks for getting back to me. How do I disable the crash reporting service? I looked at the installed services I have in my project and I don't see it.
    Screenshot 2024-02-02 at 5.03.46 PM.png
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,696
    I'm not entirely sure, try calling `UnityEditor.CrashReporting.CrashReportingSettings.enabled = false` from an editor script.
     
  7. sd_trent

    sd_trent

    Joined:
    Jul 1, 2017
    Posts:
    37
    Alright, so good new/bad news...

    Running that line of code while the editor is playing ungrays the "Enable CrashReport API" and allows me to uncheck it to turn it off. However, the moment I stop running the editor or try to make a build while the editor is running, it immediately rechecks itself and grays out again.

    I feel like we're getting close, any ideas?
     
  8. sd_trent

    sd_trent

    Joined:
    Jul 1, 2017
    Posts:
    37
    Hallelujah! I figured it out.

    Long story short, you need to add Unity Cloud Diagnostics to your project and then remove it. That will give you access to the Enable CrashReport API checkbox.

    1) In the editor go to Window -> General -> Services
    2) Add Cloud Diagnostics
    3) Select "Configure" in the upper right.
    3) Select your organization name (should be your Unity Login name)
    4) Select create new cloud project.
    5) Go to https://cloud.unity.com/
    6) Find the project you just made and archive/delete it
    7) Go back to the unity editor and disable Cloud Diagnostics in the services section in project settings
    8) Go to Window -> General -> Services and remove Cloud Diagnostics
     
  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,696
    I'm glad you found a workaround! I'll raise this internally, something seems to be broken.
     
    sd_trent likes this.